[AD] dat2c.c inline fix

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Unfortunately, I used the 'inline' keyword in dat2c.c, not realising 
that MSVC didn't support it. Attached is a patch which changes 'inline' 
to 'INLINE', thus fixing the problem.

Bye for now,
- -- 
Laurence Withers,  lwithers@xxxxxxxxxx
(GnuPG 04A646EA) http://www.lwithers.demon.co.uk/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9ahlUUdhclgSmRuoRAnxMAKCcMAy4zdMQn/Iw+QX1hecQmIZJVwCgno4j
++F1H2A+vOYpAUtMnVJO+t8=
=GIRt
-----END PGP SIGNATURE-----
--- dat2c.c.old	Thu Aug 22 18:25:50 2002
+++ dat2c.c	Mon Aug 26 13:01:42 2002
@@ -145,7 +145,7 @@
  *  Reads options on the commandline, filling out `dat2c' appropriately.
  *  Returns 0 on success.
  */
-static inline int is_arg(const char* arg, const char* t1, const char* t2)
+static INLINE int is_arg(const char* arg, const char* t1, const char* t2)
 {
     return !(strcmp(arg, t1) && strcmp(arg, t2));
 }
@@ -511,7 +511,7 @@
  *
  *  Both $string c$ and $data$ enclose their data in double quotes.
  */
-static inline void _cwrite_esc_char(FILE* fp, int ch)
+static INLINE void _cwrite_esc_char(FILE* fp, int ch)
 {
     putc('\\', fp);
     switch(ch) {
@@ -553,7 +553,7 @@
     }
 }
 
-inline void _cwrite_esc(FILE* fp, const unsigned char* data, int amt)
+static INLINE void _cwrite_esc(FILE* fp, const unsigned char* data, int amt)
 {
     const unsigned char* rd = 0;
     int was_num_escape = 0, was_trigraph_char = 0;
@@ -609,7 +609,7 @@
 
 enum dat2c_file { C, H };
 
-inline void cwrite(struct dat2c* dat2c, enum dat2c_file x, 
+static INLINE void cwrite(struct dat2c* dat2c, enum dat2c_file x, 
     const char* fmt, ...)
 {
     FILE* fp = 0;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/