Macro names imbedded in pp-numbers [repost]

Cesar Quiroz quiroz at cs.rochester.edu
Sat Nov 18 07:50:04 AEST 1989


In <1643 at crdos1.crd.ge.COM>, davidsen at crdos1.UUCP (bill davidsen) wrote:
| 	#define F_LIMIT	0x14e
| 
| 	/* and later in the program */
| 	long error_count[F_LIMIT+5];	/* room for quadrant totals */

Aside:  Over-parenthesizing your defines for paranoid reasons would
have saved this program.  Of course, the criticized behavior remains
buggy in the general case.



-- 
                                      Cesar Augusto Quiroz Gonzalez
                                      Department of Computer Science
                                      University of Rochester
                                      Rochester,  NY 14627



More information about the Comp.std.c mailing list