Overview
| Artifact ID: | fc547480b409f4ccbdc2f4665d4651268d1ee113 |
|---|---|
| Ticket: | 845155ffffffffffffffffffffffffffffffffff
Check ANSI C switches |
| User & Date: | elfring on 2003-11-19 14:32:40 |
Changes
- assignee changed to: "mdejong"
- cmimetype changed to: "text/plain"
- comment changed to:
I see that the macro "_ANSI_ARGS_" is used for definitions of function pointers. (File "generic/tcl.h") But I am missing a macro to switch between old style function signature and current ANSI conformance. File "generic/tclAlloc.c": ... char * TclpAlloc(nbytes) unsigned int nbytes;/* Number of bytes to allocate. */ { ... I would prefer this definition. ... void* TclpAlloc(unsigned int nbytes /* Number of bytes to allocate. */) { ... #if defined(__STDC__) || defined(__cplusplus) # undef NO_PROTOTYPES # define FUNCTION_PARMETER_DELIMITER , # define FUNCTION_HEAD(specifiers, name, parameters) specifiers name (parameters) #else # define FUNCTION_PARMETER_DELIMITER ; # define FUNCTION_HEAD(specifiers, name, parameters) specifiers name () parameters #endif #define FUNCTION_PARMETER_JOIN(x, y) x##FUNCTION_PARMETER_DELIMITER y##FUNCTION_PARMETER_DELIMITER => Example: FUNCTION_HEAD(EXTERN void*, TclpRealloc, FUNCTION_PARMETER_JOIN(char *cp, unsigned int nbytes)) - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "elfring"
- subsystem changed to: "52. Portability Support"
- title changed to: "Check ANSI C switches"
- type changed to: "RFE"