Date: Thu, 22 Sep 1994 12:30:57 +22305931 (WAUST) From: Ron Grunwald Subject: Patch files format To: djgpp AT sun DOT soe DOT clarkson DOT edu 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!"