Mail Archives: djgpp/1994/09/22/01:28:41
Hi all,
This is probably a FAQ but I've noticed patches being distributed
in a certain format. Example illustrated below:
*** old/cdefs.h Sat Mar 14 20:08:38 1992
--- cdefs.h Sat Sep 17 23:44:46 1994
***************
*** 1 ****
--- 1,14 ----
+ #undef __P
+ #if defined(__STDC__) || defined(__cplusplus)
#define __P(x) x
+ #else
+ #define __P(x)
+ #endif
+
+ #if defined(__cplusplus)
+ #define __BEGIN_DECLS extern "C" {
+ #define __END_DECLS };
+ #else
+ #define __BEGIN_DECLS
+ #define __END_DECLS
+ #endif
How are these sorts of files applied, and how are they created?
Any suggestions or documentation would be appreciated.
Regards, Ron.
********************************************************************
| Author.............. Ron Grunwald |
| Internet............ rgrunwal AT bluering DOT cowan DOT edu DOT au |
| Phone............... (09)273 8027 or (09)273 8468 |
|------------------------------------------------------------------|
| Department.......... Information Technology |
| Division/Faculty.... Operations and Systems Management |
| Institute........... Edith Cowan University, Churchlands |
| Location............ Perth, Western Australia |
********************************************************************
"I don't have any solution but I certainly admire the problem!"
- Raw text -