Subroutine layout in C

<10000>Ariel Aloni ariel at lznh.UUCP
Sat Jan 7 01:44:22 AEST 1989


In article <2459 at ssc-vax.UUCP> dmg at ssc-vax.UUCP (David Geary) writes:
>
>  Frank is correct, this is exactly what you want to do.  However, I like
>to do the following:
>
>#define PRIVATE static
>#define PUBLIC 
> ...
Sure, this thing has no end, why not :

#define TINY short
#define HUGE long
#define RECORD struct
..... :-)

C is terse and accurate, if you want to invent new keywords for C
please don't abuse CPP, design your own new language.
In your particular example the change of 'static' is very confusing
since 'static' has a different meaning for functions and variables.

ariel

-- 
Ariel A. Aloni                                 att!lznh!ariel



More information about the Comp.lang.c mailing list