Subject: Re: man pages & style guide
To: J.T. Conklin <jconklin@netcom.com>
From: Don Lewis <gdonl@gv.ssi1.com>
List: current-users
Date: 03/07/1996 14:26:06
On Mar 7, 1:11pm, Julian Bean wrote:
} Subject: Re: man pages & style guide
}
} So, *never* have any #defines before system header files, unless you know exactly what
} you are doing.
You can't avoid this if you ever use -Dxxx=yyy on the cc command line.
} It could have horrible consequences in many ways:
}
} #define pid_t void
} #include <sys/types.h>
}
} Or even,
}
} #define rabbit_t double
} #include <sys/types.h>
}
} Which works absolutely fine until someone tries to port your code to some obscure
} operating system which has a rabbit_t in its sys/types.h
In this case you get what you deserve. POSIX reserves the entire name_t
namespace for itself, not that I agree with this and despite all the
code I've seen that impinges on this space.
--- Truck