Mercurial > hg > xemacs-beta
comparison lwlib/lwlib.c @ 118:7d55a9ba150c r20-1b11
Import from CVS: tag r20-1b11
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:24:17 +0200 |
parents | 1ce6082ce73f |
children | b980b6286996 |
comparison
equal
deleted
inserted
replaced
117:578fd4947a72 | 118:7d55a9ba150c |
---|---|
34 | 34 |
35 #if defined(__GNUC__) && !defined(alloca) | 35 #if defined(__GNUC__) && !defined(alloca) |
36 #define alloca __builtin_alloca | 36 #define alloca __builtin_alloca |
37 #endif | 37 #endif |
38 | 38 |
39 #if ((!__GNUC__) && !defined(__hpux)) && !defined(_AIX) && !defined (_SCO_DS) && !defined (__USLC__) && !defined(sinix) | 39 #if ((!__GNUC__) && !defined(__hpux)) && !defined(_AIX) && !defined (_SCO_DS) && !defined (__USLC__) && !defined(sinix) && !defined(WINDOWSNT) |
40 #include <alloca.h> | 40 #include <alloca.h> |
41 #endif | 41 #endif |
42 | |
43 #ifdef WINDOWSNT | |
44 /* NT has an _alloca function prototyped in malloc.h --marcpa */ | |
45 #include <malloc.h> | |
46 #endif | |
47 | |
42 | 48 |
43 #ifdef __SUNPRO_C | 49 #ifdef __SUNPRO_C |
44 void *__builtin_alloca (unsigned int); | 50 void *__builtin_alloca (unsigned int); |
45 #endif | 51 #endif |
46 | 52 |
474 { | 480 { |
475 if (!!s1 ^ !!s2) return True; | 481 if (!!s1 ^ !!s2) return True; |
476 return (s1 && s2) ? strcmp (s1, s2) : s1 ? False : !!s2; | 482 return (s1 && s2) ? strcmp (s1, s2) : s1 ? False : !!s2; |
477 } | 483 } |
478 | 484 |
485 #ifndef WINDOWSNT | |
479 static change_type | 486 static change_type |
480 max (change_type i1, change_type i2) | 487 max (change_type i1, change_type i2) |
481 { | 488 { |
482 return (int)i1 > (int)i2 ? i1 : i2; | 489 return (int)i1 > (int)i2 ? i1 : i2; |
483 } | 490 } |
491 #endif | |
484 | 492 |
485 | 493 |
486 #if 0 | 494 #if 0 |
487 # define EXPLAIN(name, oc, nc, desc, a1, a2) \ | 495 # define EXPLAIN(name, oc, nc, desc, a1, a2) \ |
488 printf ("Change: \"%s\"\tmax(%s=%d,%s=%d)\t%s %d %d\n", \ | 496 printf ("Change: \"%s\"\tmax(%s=%d,%s=%d)\t%s %d %d\n", \ |