pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

transformations.c


From: John Darrington
Subject: transformations.c
Date: Sat, 30 Jun 2007 13:56:24 +0800
User-agent: Mutt/1.5.13 (2006-08-11)

The following confuses me:

/* Executes the given CHAIN of transformations on C,
   passing *CASE_NR as the case number.
   If a transformation modifies *CASE_NR, it will affect the case
   number passed to following transformations.
   ... */
enum trns_result
trns_chain_execute (struct trns_chain *chain, enum trns_result start,
                    struct ccase *c, const size_t *case_nr)

How can *case_nr be modified if it's const ?  
Wouldn't it make more sense for this function to have the sig:

enum trns_result
trns_chain_execute (struct trns_chain *chain, enum trns_result start,
                    struct ccase *c, casenumber case_nr);

??

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.


Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]