comparison lwlib/lwlib.c @ 2:ac2d302a0011 r19-15b2

Import from CVS: tag r19-15b2
author cvs
date Mon, 13 Aug 2007 08:46:35 +0200
parents 376386a54a3c
children bcdc7deadc19
comparison
equal deleted inserted replaced
1:c0c6a60d29db 2:ac2d302a0011
33 33
34 #if defined(__GNUC__) && !defined(alloca) 34 #if defined(__GNUC__) && !defined(alloca)
35 #define alloca __builtin_alloca 35 #define alloca __builtin_alloca
36 #endif 36 #endif
37 37
38 #if ((!__GNUC__) && !defined(__hpux)) && !defined(_AIX) && !defined (_SCO_DS) && !defined (__USLC__) 38 #if ((!__GNUC__) && !defined(__hpux)) && !defined(_AIX) && !defined (_SCO_DS) && !defined (__USLC__) && !defined(sinix)
39 #include <alloca.h> 39 #include <alloca.h>
40 #endif 40 #endif
41 41
42 #ifdef __SUNPRO_C 42 #ifdef __SUNPRO_C
43 void *__builtin_alloca (unsigned int); 43 void *__builtin_alloca (unsigned int);
473 { 473 {
474 if (!!s1 ^ !!s2) return True; 474 if (!!s1 ^ !!s2) return True;
475 return (s1 && s2) ? strcmp (s1, s2) : s1 ? False : !!s2; 475 return (s1 && s2) ? strcmp (s1, s2) : s1 ? False : !!s2;
476 } 476 }
477 477
478 static int 478 static change_type
479 max (int i1, int i2) 479 max (change_type i1, change_type i2)
480 { 480 {
481 return i1 > i2 ? i1 : i2; 481 return (int)i1 > (int)i2 ? i1 : i2;
482 } 482 }
483 483
484 484
485 #if 0 485 #if 0
486 # define EXPLAIN(name, oc, nc, desc, a1, a2) \ 486 # define EXPLAIN(name, oc, nc, desc, a1, a2) \