OSDN Git Service

yet more applications of c_fix=format + tests
[pf3gnuchains/gcc-fork.git] / gcc / fixinc / check.diff
1 *** inc/X11/Intrinsic.h
2 --- res/X11/Intrinsic.h
3 ***************
4 *** 1,5 ****
5   
6   
7   #if defined( ARM_NORCROFT_HINT_CHECK )
8 ! ___type p_type mumble;
9   #endif  /* ARM_NORCROFT_HINT_CHECK */
10 --- 1,5 ----
11   
12   
13   #if defined( ARM_NORCROFT_HINT_CHECK )
14 ! p_type mumble;
15   #endif  /* ARM_NORCROFT_HINT_CHECK */
16 *** inc/X11/ShellP.h
17 --- res/X11/ShellP.h
18 ***************
19 *** 2,8 ****
20 --- 2,12 ----
21   
22   #if defined( X11_CLASS_CHECK )
23   struct {
24 + #ifdef __cplusplus
25 +       char *c_class;
26 + #else
27      char *class;
28 + #endif
29   } mumble;
30   
31   #endif  /* X11_CLASS_CHECK */
32 *** inc/X11/Xmu.h
33 --- res/X11/Xmu.h
34 ***************
35 *** 1,5 ****
36 --- 1,7 ----
37   
38   
39   #if defined( X11_SPRINTF_CHECK )
40 + #ifndef __STDC__
41   extern char * sprintf();
42 + #endif /* !defined __STDC__ */
43   #endif  /* X11_SPRINTF_CHECK */
44 *** inc/Xm/BaseClassI.h
45 --- res/Xm/BaseClassI.h
46 ***************
47 *** 1,6 ****
48   
49   
50   #if defined( X11_CLASS_USAGE_CHECK )
51 ! extern mumble (int  class);
52   
53   #endif  /* X11_CLASS_USAGE_CHECK */
54 --- 1,6 ----
55   
56   
57   #if defined( X11_CLASS_USAGE_CHECK )
58 ! extern mumble (int  c_class);
59   
60   #endif  /* X11_CLASS_USAGE_CHECK */
61 *** inc/Xm/Traversal.h
62 --- res/Xm/Traversal.h
63 ***************
64 *** 2,8 ****
65   
66   #if defined( X11_NEW_CHECK )
67   struct wedge {
68      Widget     old, new; /* fix the new */
69   };
70 ! extern Wedged( Widget new, Widget old );
71   #endif  /* X11_NEW_CHECK */
72 --- 2,12 ----
73   
74   #if defined( X11_NEW_CHECK )
75   struct wedge {
76 + #ifdef __cplusplus
77 +       Widget  old, c_new;
78 + #else
79      Widget     old, new; /* fix the new */
80 + #endif
81   };
82 ! extern Wedged( Widget c_new, Widget old );
83   #endif  /* X11_NEW_CHECK */
84 *** inc/ansi/math.h
85 --- res/ansi/math.h
86 ***************
87 *** 1,5 ****
88   
89   
90   #if defined( NEXT_MATH_PREFIX_CHECK )
91 ! extern        double  __const__       mumble();
92   #endif  /* NEXT_MATH_PREFIX_CHECK */
93 --- 1,5 ----
94   
95   
96   #if defined( NEXT_MATH_PREFIX_CHECK )
97 ! extern double mumble();
98   #endif  /* NEXT_MATH_PREFIX_CHECK */
99 *** inc/ansi/stdlib.h
100 --- res/ansi/stdlib.h
101 ***************
102 *** 1,5 ****
103   
104   
105   #if defined( NEXT_VOLITILE_CHECK )
106 ! extern        volatile        void    abort();
107   #endif  /* NEXT_VOLITILE_CHECK */
108 --- 1,5 ----
109   
110   
111   #if defined( NEXT_VOLITILE_CHECK )
112 ! extern void abort();
113   #endif  /* NEXT_VOLITILE_CHECK */
114 *** inc/assert.h
115 --- res/assert.h
116 ***************
117 *** 1,3 ****
118 --- 1,13 ----
119 + #ifndef FIXINC_BROKEN_ASSERT_STDLIB_CHECK
120 + #define FIXINC_BROKEN_ASSERT_STDLIB_CHECK 1
121
122 + #ifdef __cplusplus
123 + #include <stdlib.h>
124 + #endif
125 + #ifndef FIXINC_BROKEN_ASSERT_STDIO_CHECK
126 + #define FIXINC_BROKEN_ASSERT_STDIO_CHECK 1
127
128 + #include <stdio.h>
129   
130   
131   #if defined( BROKEN_ASSERT_STDIO_CHECK )
132 ***************
133 *** 8,10 ****
134 --- 18,24 ----
135   #if defined( BROKEN_ASSERT_STDLIB_CHECK )
136   extern void exit ( int );
137   #endif  /* BROKEN_ASSERT_STDLIB_CHECK */
138
139 + #endif  /* FIXINC_BROKEN_ASSERT_STDIO_CHECK */
140
141 + #endif  /* FIXINC_BROKEN_ASSERT_STDLIB_CHECK */
142 *** inc/bsd/libc.h
143 --- res/bsd/libc.h
144 ***************
145 *** 1,5 ****
146   
147   
148   #if defined( NEXT_TEMPLATE_CHECK )
149 ! extern mumble( char * template); /* fix */
150   #endif  /* NEXT_TEMPLATE_CHECK */
151 --- 1,5 ----
152   
153   
154   #if defined( NEXT_TEMPLATE_CHECK )
155 ! extern mumble( char *); /* fix */
156   #endif  /* NEXT_TEMPLATE_CHECK */
157 *** inc/c_asm.h
158 --- res/c_asm.h
159 ***************
160 *** 1,9 ****
161 --- 1,11 ----
162   
163   
164   #if defined( DEC_INTERN_ASM_CHECK )
165 + #ifdef __DECC
166   float fasm {
167       ... asm stuff ...
168   };
169   #pragma intrinsic( dasm )
170 + #endif
171   /* END ASM TEST*/
172   #endif  /* DEC_INTERN_ASM_CHECK */
173 *** inc/curses.h
174 --- res/curses.h
175 ***************
176 *** 1,21 ****
177   
178   
179   #if defined( AVOID_BOOL_DEFINE_CHECK )
180   # define bool  char 
181   
182   #endif  /* AVOID_BOOL_DEFINE_CHECK */
183   
184   
185   #if defined( AVOID_BOOL_TYPE_CHECK )
186   typedef unsigned int  bool    ; /* bool type */
187   #endif  /* AVOID_BOOL_TYPE_CHECK */
188   
189   
190   #if defined( BAD_STRUCT_TERM_CHECK )
191 ! typedef struct term;
192   #endif  /* BAD_STRUCT_TERM_CHECK */
193   
194   
195   #if defined( LYNX_VOID_INT_CHECK )
196 ! # define      void    int     /* curses foiled again */
197   #endif  /* LYNX_VOID_INT_CHECK */
198 --- 1,25 ----
199   
200   
201   #if defined( AVOID_BOOL_DEFINE_CHECK )
202 + #ifndef __cplusplus
203   # define bool  char 
204 + #endif
205   
206   #endif  /* AVOID_BOOL_DEFINE_CHECK */
207   
208   
209   #if defined( AVOID_BOOL_TYPE_CHECK )
210 + #ifndef __cplusplus
211   typedef unsigned int  bool    ; /* bool type */
212 + #endif
213   #endif  /* AVOID_BOOL_TYPE_CHECK */
214   
215   
216   #if defined( BAD_STRUCT_TERM_CHECK )
217 ! struct term;
218   #endif  /* BAD_STRUCT_TERM_CHECK */
219   
220   
221   #if defined( LYNX_VOID_INT_CHECK )
222 ! /* curses foiled again */
223   #endif  /* LYNX_VOID_INT_CHECK */
224 *** inc/fcntl.h
225 --- res/fcntl.h
226 ***************
227 *** 1,5 ****
228   
229   
230   #if defined( LYNXOS_FCNTL_PROTO_CHECK )
231 ! extern int fcntl(int, int, int);
232   #endif  /* LYNXOS_FCNTL_PROTO_CHECK */
233 --- 1,5 ----
234   
235   
236   #if defined( LYNXOS_FCNTL_PROTO_CHECK )
237 ! extern int fcntl(int, int, ...);
238   #endif  /* LYNXOS_FCNTL_PROTO_CHECK */
239 *** inc/inttypes.h
240 --- res/inttypes.h
241 ***************
242 *** 2,6 ****
243   
244   #if defined( HPUX11_UINT32_C_CHECK )
245   #define CONCAT_U__(__c)       __CONCAT__(__c,u)
246 ! #define UINT32_C(__c) __CONCAT__(__CONCAT_U__(__c),l)
247   #endif  /* HPUX11_UINT32_C_CHECK */
248 --- 2,6 ----
249   
250   #if defined( HPUX11_UINT32_C_CHECK )
251   #define CONCAT_U__(__c)       __CONCAT__(__c,u)
252 ! #define UINT32_C(__c) __CONCAT__(__c,ul)
253   #endif  /* HPUX11_UINT32_C_CHECK */
254 *** inc/libgen.h
255 --- res/libgen.h
256 ***************
257 *** 2,7 ****
258   
259   #if defined( BAD_LVAL_CHECK )
260   #pragma extern_prefix "_FOO"
261 ! #define something(x,y,z) _FOOsomething(x,y,z)
262   #define mumble _FOOmumble
263   #endif  /* BAD_LVAL_CHECK */
264 --- 2,7 ----
265   
266   #if defined( BAD_LVAL_CHECK )
267   #pragma extern_prefix "_FOO"
268 ! #define something _FOOsomething
269   #define mumble _FOOmumble
270   #endif  /* BAD_LVAL_CHECK */
271 *** inc/limits.h
272 --- res/limits.h
273 ***************
274 *** 1,5 ****
275 --- 1,7 ----
276   
277   
278   #if defined( LIMITS_IFNDEFS_CHECK )
279 + #ifndef DBL_DIG
280    #    define  DBL_DIG          0  /* somthin' */
281 + #endif
282   #endif  /* LIMITS_IFNDEFS_CHECK */
283 *** inc/machine/ansi.h
284 --- res/machine/ansi.h
285 ***************
286 *** 1,5 ****
287   
288   
289   #if defined( MACHINE_ANSI_H_VA_LIST_CHECK )
290 !  # define _BSD_VA_LIST_       char**
291   #endif  /* MACHINE_ANSI_H_VA_LIST_CHECK */
292 --- 1,5 ----
293   
294   
295   #if defined( MACHINE_ANSI_H_VA_LIST_CHECK )
296 !  # define _BSD_VA_LIST_       __builtin_va_list
297   #endif  /* MACHINE_ANSI_H_VA_LIST_CHECK */
298 *** inc/math.h
299 --- res/math.h
300 ***************
301 *** 1,41 ****
302   
303   
304   #if defined( BROKEN_CABS_CHECK )
305   #ifdef __STDC__
306 ! extern double cabs(struct dbl_hypot);
307   #else
308 ! extern double cabs();
309   #endif
310 ! extern double cabs(); /* This is a comment
311                            and it ends here. */
312   #endif  /* BROKEN_CABS_CHECK */
313   
314   
315   #if defined( FIX_HEADER_BREAKAGE_CHECK )
316 ! extern double floor(), ceil(), fmod(), fabs();
317   #endif  /* FIX_HEADER_BREAKAGE_CHECK */
318   
319   
320   #if defined( HPUX11_FABSF_CHECK )
321   #ifdef _PA_RISC
322   #  define fabsf(x) ((float)fabs((double)(float)(x)))
323   #endif
324   #endif  /* HPUX11_FABSF_CHECK */
325   
326   
327   #if defined( HPUX8_BOGUS_INLINES_CHECK )
328 ! inline int abs(int v) { return (v>=0)?v:-v; }
329 ! inline double sqr(double v) { return v**0.5; }
330   #endif  /* HPUX8_BOGUS_INLINES_CHECK */
331   
332   
333   #if defined( ISC_FMOD_CHECK )
334 ! extern double fmod(double);
335   #endif  /* ISC_FMOD_CHECK */
336   
337   
338   #if defined( M88K_BAD_HYPOT_OPT_CHECK )
339   extern double hypot();
340   #endif  /* M88K_BAD_HYPOT_OPT_CHECK */
341   
342   
343 --- 1,61 ----
344 + #ifndef FIXINC_MATH_EXCEPTION_CHECK
345 + #define FIXINC_MATH_EXCEPTION_CHECK 1
346
347 + #ifdef __cplusplus
348 + #define exception __math_exception
349 + #endif
350   
351   
352   #if defined( BROKEN_CABS_CHECK )
353   #ifdef __STDC__
354
355   #else
356
357   #endif
358 !  /* This is a comment
359                            and it ends here. */
360   #endif  /* BROKEN_CABS_CHECK */
361   
362   
363   #if defined( FIX_HEADER_BREAKAGE_CHECK )
364 ! extern double floor(), ceil(), fmod(), fabs _PARAMS((double));
365   #endif  /* FIX_HEADER_BREAKAGE_CHECK */
366   
367   
368   #if defined( HPUX11_FABSF_CHECK )
369   #ifdef _PA_RISC
370 + #ifndef __cplusplus
371   #  define fabsf(x) ((float)fabs((double)(float)(x)))
372   #endif
373 + #endif
374   #endif  /* HPUX11_FABSF_CHECK */
375   
376   
377   #if defined( HPUX8_BOGUS_INLINES_CHECK )
378 ! extern "C" int abs(int);
379
380   #endif  /* HPUX8_BOGUS_INLINES_CHECK */
381   
382   
383   #if defined( ISC_FMOD_CHECK )
384 ! extern double fmod(double, double);
385   #endif  /* ISC_FMOD_CHECK */
386   
387   
388   #if defined( M88K_BAD_HYPOT_OPT_CHECK )
389   extern double hypot();
390 + /* Workaround a stupid Motorola optimization if one
391 +    of x or y is 0.0 and the other is negative!  */
392 + #ifdef __STDC__
393 + static __inline__ double fake_hypot (double x, double y)
394 + #else
395 + static __inline__ double fake_hypot (x, y)
396 +       double x, y;
397 + #endif
398 + {
399 +       return fabs (hypot (x, y));
400 + }
401 + #define hypot fake_hypot
402   #endif  /* M88K_BAD_HYPOT_OPT_CHECK */
403   
404   
405 ***************
406 *** 45,49 ****
407 --- 65,76 ----
408   
409   
410   #if defined( MATH_HUGE_VAL_IFNDEF_CHECK )
411 + #ifndef HUGE_VAL
412   # define      HUGE_VAL 3.4e+40
413 + #endif
414   #endif  /* MATH_HUGE_VAL_IFNDEF_CHECK */
415 + #ifdef __cplusplus
416 + #undef exception
417 + #endif
418
419 + #endif  /* FIXINC_MATH_EXCEPTION_CHECK */
420 *** inc/netinet/ip.h
421 --- res/netinet/ip.h
422 ***************
423 *** 4,10 ****
424   struct mumble {
425     union {
426       int x;
427 !   }
428   }; /* mumbled struct */
429   
430   #endif  /* IP_MISSING_SEMI_CHECK */
431 --- 4,10 ----
432   struct mumble {
433     union {
434       int x;
435 !   };
436   }; /* mumbled struct */
437   
438   #endif  /* IP_MISSING_SEMI_CHECK */
439 *** inc/rpc/auth.h
440 --- res/rpc/auth.h
441 ***************
442 *** 1,5 ****
443 --- 1,6 ----
444   
445   
446   #if defined( STRUCT_SOCKADDR_CHECK )
447 + struct sockaddr;
448   extern AUTH* authdes_create( struct sockaddr* );
449   #endif  /* STRUCT_SOCKADDR_CHECK */
450 *** inc/rpc/rpc.h
451 --- res/rpc/rpc.h
452 ***************
453 *** 1,5 ****
454   
455   
456   #if defined( NESTED_AUTH_DES_CHECK )
457 ! /*#include <rpc/auth_des.h> /* skip this */
458   #endif  /* NESTED_AUTH_DES_CHECK */
459 --- 1,5 ----
460   
461   
462   #if defined( NESTED_AUTH_DES_CHECK )
463 ! /*#include <rpc/auth_des.h> */ /* skip this */
464   #endif  /* NESTED_AUTH_DES_CHECK */
465 *** inc/rpc/xdr.h
466 --- res/rpc/xdr.h
467 ***************
468 *** 1,5 ****
469 --- 1,6 ----
470   
471   
472   #if defined( STRUCT_FILE_CHECK )
473 + struct __file_s;
474   extern void xdrstdio_create( struct __file_s* );
475   #endif  /* STRUCT_FILE_CHECK */
476 *** inc/sparc/asm_linkage.h
477 --- res/sparc/asm_linkage.h
478 ***************
479 *** 1,5 ****
480   
481   
482   #if defined( KANDR_CONCAT_CHECK )
483 ! #define __CONCAT__(a,b) a/**/b
484   #endif  /* KANDR_CONCAT_CHECK */
485 --- 1,5 ----
486   
487   
488   #if defined( KANDR_CONCAT_CHECK )
489 ! #define __CONCAT__(a,b) a##b
490   #endif  /* KANDR_CONCAT_CHECK */
491 *** inc/stdio.h
492 --- res/stdio.h
493 ***************
494 *** 1,12 ****
495   
496   
497   #if defined( ALPHA_GETOPT_CHECK )
498 ! extern int getopt(int, char *[], char *);
499   #endif  /* ALPHA_GETOPT_CHECK */
500   
501   
502   #if defined( ISC_OMITS_WITH_STDC_CHECK )
503 ! #if !defined(__STDC__) && !defined(_POSIX_SOURCE) /* ? ! */
504   int foo;
505   #endif
506   #endif  /* ISC_OMITS_WITH_STDC_CHECK */
507 --- 1,17 ----
508 + #ifndef FIXINC_STDIO_STDARG_H_CHECK
509 + #define FIXINC_STDIO_STDARG_H_CHECK 1
510
511 + #define __need___va_list
512 + #include <stdarg.h>
513   
514   
515   #if defined( ALPHA_GETOPT_CHECK )
516 ! extern int getopt(int, char *const[], const char *);
517   #endif  /* ALPHA_GETOPT_CHECK */
518   
519   
520   #if defined( ISC_OMITS_WITH_STDC_CHECK )
521 ! #if !defined(_POSIX_SOURCE) /* ? ! */
522   int foo;
523   #endif
524   #endif  /* ISC_OMITS_WITH_STDC_CHECK */
525 ***************
526 *** 15,17 ****
527 --- 20,24 ----
528   #if defined( STDIO_STDARG_H_CHECK )
529   
530   #endif  /* STDIO_STDARG_H_CHECK */
531
532 + #endif  /* FIXINC_STDIO_STDARG_H_CHECK */
533 *** inc/stdlib.h
534 --- res/stdlib.h
535 ***************
536 *** 1,12 ****
537   
538   
539   #if defined( ARM_WCHAR_CHECK )
540 ! # ifndef       __wchar_t /* we don't have wchar_t yet, ... */
541 ! #  define  __wchar_t  short
542   # endif /* __wchar_t */
543   #endif  /* ARM_WCHAR_CHECK */
544   
545   
546   #if defined( NEWS_OS_RECURSION_CHECK )
547   #include <stdlib.h>
548   #endif  /* NEWS_OS_RECURSION_CHECK */
549 --- 1,14 ----
550   
551   
552   #if defined( ARM_WCHAR_CHECK )
553 ! # ifndef       _GCC_WCHAR_T /* we don't have wchar_t yet, ... */
554 ! #  define  _GCC_WCHAR_T  short
555   # endif /* __wchar_t */
556   #endif  /* ARM_WCHAR_CHECK */
557   
558   
559   #if defined( NEWS_OS_RECURSION_CHECK )
560 + #ifdef BOGUS_RECURSION
561   #include <stdlib.h>
562 + #endif
563   #endif  /* NEWS_OS_RECURSION_CHECK */
564 *** inc/sundev/vuid_event.h
565 --- res/sundev/vuid_event.h
566 ***************
567 *** 1,5 ****
568   
569   
570   #if defined( BADQUOTE_CHECK )
571 ! /* doesn't have matched single quotes */
572   #endif  /* BADQUOTE_CHECK */
573 --- 1,5 ----
574   
575   
576   #if defined( BADQUOTE_CHECK )
577 ! /* does not have matched single quotes */
578   #endif  /* BADQUOTE_CHECK */
579 *** inc/sunwindow/win_lock.h
580 --- res/sunwindow/win_lock.h
581 ***************
582 *** 1,7 ****
583   
584   
585   #if defined( ECD_CURSOR_CHECK )
586 ! #ifdef ecd.cursor
587   #error bogus
588   #endif /* ecd+cursor */
589   #endif  /* ECD_CURSOR_CHECK */
590 --- 1,7 ----
591   
592   
593   #if defined( ECD_CURSOR_CHECK )
594 ! #ifdef ecd_cursor
595   #error bogus
596   #endif /* ecd+cursor */
597   #endif  /* ECD_CURSOR_CHECK */
598 *** inc/sym.h
599 --- res/sym.h
600 ***************
601 *** 1,7 ****
602   
603   
604   #if defined( ALPHA_PARENS_CHECK )
605 ! #ifndef(__mips64) /* bogus */
606   extern int foo;
607   #endif
608   #endif  /* ALPHA_PARENS_CHECK */
609 --- 1,7 ----
610   
611   
612   #if defined( ALPHA_PARENS_CHECK )
613 ! #ifndef __mips64 /* bogus */
614   extern int foo;
615   #endif
616   #endif  /* ALPHA_PARENS_CHECK */
617 *** inc/sys/asm.h
618 --- res/sys/asm.h
619 ***************
620 *** 1,5 ****
621   
622   
623   #if defined( IRIX_ASM_APOSTROPHE_CHECK )
624 ! # and we're on vacation
625   #endif  /* IRIX_ASM_APOSTROPHE_CHECK */
626 --- 1,5 ----
627   
628   
629   #if defined( IRIX_ASM_APOSTROPHE_CHECK )
630 ! # and we are on vacation
631   #endif  /* IRIX_ASM_APOSTROPHE_CHECK */
632 *** inc/sys/file.h
633 --- res/sys/file.h
634 ***************
635 *** 1,5 ****
636   
637   
638   #if defined( HP_SYSFILE_CHECK )
639 ! extern void foo(...); /* HPUX_SOURCE - bad varargs */
640   #endif  /* HP_SYSFILE_CHECK */
641 --- 1,5 ----
642   
643   
644   #if defined( HP_SYSFILE_CHECK )
645 ! extern void foo(struct file *, ...); /* HPUX_SOURCE - bad varargs */
646   #endif  /* HP_SYSFILE_CHECK */
647 *** inc/sys/limits.h
648 --- res/sys/limits.h
649 ***************
650 *** 2,8 ****
651   
652   #if defined( NESTED_SYS_LIMITS_CHECK )
653   /*
654 ! #define CHILD_MAX 20 /* Max, Max, ... */ /*
655 ! #define OPEN_MAX  20 /* Max, Max, ... */
656   
657   #endif  /* NESTED_SYS_LIMITS_CHECK */
658 --- 2,8 ----
659   
660   #if defined( NESTED_SYS_LIMITS_CHECK )
661   /*
662 ! #define CHILD_MAX 20  Max, Max, ... */ /*
663 ! #define OPEN_MAX  20  Max, Max, ... */
664   
665   #endif  /* NESTED_SYS_LIMITS_CHECK */
666 *** inc/sys/mman.h
667 --- res/sys/mman.h
668 ***************
669 *** 1,5 ****
670 --- 1,16 ----
671 + #ifndef FIXINC_CXX_UNREADY_CHECK
672 + #define FIXINC_CXX_UNREADY_CHECK 1
673
674 + #ifdef __cplusplus
675 + extern "C" {
676 + #endif
677   
678   
679   #if defined( CXX_UNREADY_CHECK )
680   extern void* malloc( size_t );
681   #endif  /* CXX_UNREADY_CHECK */
682 + #ifdef __cplusplus
683 + }
684 + #endif
685
686 + #endif  /* FIXINC_CXX_UNREADY_CHECK */
687 *** inc/sys/param.h
688 --- res/sys/param.h
689 ***************
690 *** 1,11 ****
691   
692   
693   #if defined( AUX_ASM_CHECK )
694 ! #ifndef NOINLINE /* ain't got no inline, so we got it */
695   #endif /* NOINLINE */
696   #endif  /* AUX_ASM_CHECK */
697   
698   
699   #if defined( HPUX_MAXINT_CHECK )
700   #define MAXINT 0x7FFFFFFF
701   #endif  /* HPUX_MAXINT_CHECK */
702 --- 1,13 ----
703   
704   
705   #if defined( AUX_ASM_CHECK )
706 ! #if !defined(NOINLINE) && !defined(__GNUC__) /* ain't got no inline, so we got it */
707   #endif /* NOINLINE */
708   #endif  /* AUX_ASM_CHECK */
709   
710   
711   #if defined( HPUX_MAXINT_CHECK )
712 + #ifndef MAXINT
713   #define MAXINT 0x7FFFFFFF
714 + #endif
715   #endif  /* HPUX_MAXINT_CHECK */
716 *** inc/sys/signal.h
717 --- res/sys/signal.h
718 ***************
719 *** 1,5 ****
720   
721   
722   #if defined( AIX_VOLATILE_CHECK )
723 ! typedef volatile int sig_atomic_t;
724   #endif  /* AIX_VOLATILE_CHECK */
725 --- 1,5 ----
726   
727   
728   #if defined( AIX_VOLATILE_CHECK )
729 ! typedef int sig_atomic_t;
730   #endif  /* AIX_VOLATILE_CHECK */
731 *** inc/sys/spinlock.h
732 --- res/sys/spinlock.h
733 ***************
734 *** 1,5 ****
735   
736   
737   #if defined( HP_INLINE_CHECK )
738 !  # include "../machine/mumble.h"
739   #endif  /* HP_INLINE_CHECK */
740 --- 1,5 ----
741   
742   
743   #if defined( HP_INLINE_CHECK )
744 !  # include <machine/mumble.h>
745   #endif  /* HP_INLINE_CHECK */
746 *** inc/sys/stat.h
747 --- res/sys/stat.h
748 ***************
749 *** 1,5 ****
750   
751   
752   #if defined( M88K_BAD_S_IF_CHECK )
753 ! #define S_ISREG(m) (m & S_IFREG) /* is regular? */
754   #endif  /* M88K_BAD_S_IF_CHECK */
755 --- 1,5 ----
756   
757   
758   #if defined( M88K_BAD_S_IF_CHECK )
759 ! #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) /* is regular? */
760   #endif  /* M88K_BAD_S_IF_CHECK */
761 *** inc/sys/time.h
762 --- res/sys/time.h
763 ***************
764 *** 1,5 ****
765   
766   
767   #if defined( HPUX_SYSTIME_CHECK )
768 ! extern struct sigevent;
769   #endif  /* HPUX_SYSTIME_CHECK */
770 --- 1,5 ----
771   
772   
773   #if defined( HPUX_SYSTIME_CHECK )
774 ! struct sigevent;
775   #endif  /* HPUX_SYSTIME_CHECK */
776 *** inc/sys/types.h
777 --- res/sys/types.h
778 ***************
779 *** 1,6 ****
780   
781   
782   #if defined( IRIX_MULTILINE_CMNT_CHECK )
783 ! /* we check the type of the result
784 ! // of the sizeof something.  This is a bad test :-( */
785   #endif  /* IRIX_MULTILINE_CMNT_CHECK */
786 --- 1,6 ----
787   
788   
789   #if defined( IRIX_MULTILINE_CMNT_CHECK )
790 ! /* we check the type of the result */
791 ! // /* of the sizeof something.  This is a bad test :-( */
792   #endif  /* IRIX_MULTILINE_CMNT_CHECK */
793 *** inc/sys/wait.h
794 --- res/sys/wait.h
795 ***************
796 *** 2,7 ****
797 --- 2,8 ----
798   
799   #if defined( AIX_SYSWAIT_CHECK )
800   /* bos325, */
801 + struct rusage;
802   extern pid_t wait3();
803   /* pid_t wait3(int *, int, struct rusage *); */
804   #endif  /* AIX_SYSWAIT_CHECK */
805 *** inc/testing.h
806 --- res/testing.h
807 ***************
808 *** 1,36 ****
809   
810   
811   #if defined( CTRL_QUOTES_DEF_CHECK )
812 ! #define BSD43_CTRL(n, x) (('n'<<8)+x)
813   #endif  /* CTRL_QUOTES_DEF_CHECK */
814   
815   
816   #if defined( CTRL_QUOTES_USE_CHECK )
817 ! #define TIOCFOO BSD43_CTRL(T, 1)
818   #endif  /* CTRL_QUOTES_USE_CHECK */
819   
820   
821   #if defined( IO_QUOTES_DEF_CHECK )
822 ! #define BSD43__IOWR(n, x) (('n'<<8)+x)
823 ! #define _IOWN(x,y,t)  (_IOC_IN|(((t)&_IOCPARM_MASK)<<16)|('x'<<8)|y)
824 ! #define _IO(x,y)      ('x'<<8|y)
825   #endif  /* IO_QUOTES_DEF_CHECK */
826   
827   
828   #if defined( IO_QUOTES_USE_CHECK )
829 ! #define TIOCFOO BSD43__IOWR(T, 1)
830   #endif  /* IO_QUOTES_USE_CHECK */
831   
832   
833   #if defined( MACHINE_NAME_CHECK )
834   #endif  /* MACHINE_NAME_CHECK */
835   
836   
837   #if defined( UNDEFINE_NULL_CHECK )
838   #define NULL 0UL\r
839   #define NULL  ((void*)0)
840   
841   #endif  /* UNDEFINE_NULL_CHECK */
842 --- 1,40 ----
843   
844   
845   #if defined( CTRL_QUOTES_DEF_CHECK )
846 ! #define BSD43_CTRL(n, x) ((n<<8)+x)
847   #endif  /* CTRL_QUOTES_DEF_CHECK */
848   
849   
850   #if defined( CTRL_QUOTES_USE_CHECK )
851 ! #define TIOCFOO BSD43_CTRL('T', 1)
852   #endif  /* CTRL_QUOTES_USE_CHECK */
853   
854   
855   #if defined( IO_QUOTES_DEF_CHECK )
856 ! #define BSD43__IOWR(n, x) ((n<<8)+x)
857 ! #define _IOWN(x,y,t)  (_IOC_IN|(((t)&_IOCPARM_MASK)<<16)|(x<<8)|y)
858 ! #define _IO(x,y)      (x<<8|y)
859   #endif  /* IO_QUOTES_DEF_CHECK */
860   
861   
862   #if defined( IO_QUOTES_USE_CHECK )
863 ! #define TIOCFOO BSD43__IOWR('T', 1)
864   #endif  /* IO_QUOTES_USE_CHECK */
865   
866   
867   #if defined( MACHINE_NAME_CHECK )
868   #endif  /* MACHINE_NAME_CHECK */
869   
870   
871   #if defined( UNDEFINE_NULL_CHECK )
872 + #ifndef NULL\r
873   #define NULL 0UL\r
874 + #endif\r
875 + #ifndef NULL
876   #define NULL  ((void*)0)
877 + #endif
878   
879   #endif  /* UNDEFINE_NULL_CHECK */
880 *** inc/time.h
881 --- res/time.h
882 ***************
883 *** 1,3 ****
884 --- 1,6 ----
885 + #ifndef FIXINC_M88K_MULTI_INCL_CHECK
886 + #define FIXINC_M88K_MULTI_INCL_CHECK 1
887
888   
889   
890   #if defined( M88K_MULTI_INCL_CHECK )
891 ***************
892 *** 6,10 ****
893   
894   
895   #if defined( VXWORKS_NEEDS_VXTYPES_CHECK )
896 ! uint_t        _clocks_per_sec;
897   #endif  /* VXWORKS_NEEDS_VXTYPES_CHECK */
898 --- 9,15 ----
899   
900   
901   #if defined( VXWORKS_NEEDS_VXTYPES_CHECK )
902 ! unsigned int  _clocks_per_sec;
903   #endif  /* VXWORKS_NEEDS_VXTYPES_CHECK */
904
905 + #endif  /* FIXINC_M88K_MULTI_INCL_CHECK */
906 *** inc/unistd.h
907 --- res/unistd.h
908 ***************
909 *** 1,5 ****
910   
911   
912   #if defined( ALPHA_SBRK_CHECK )
913 ! extern char* sbrk(ptrdiff_t increment);
914   #endif  /* ALPHA_SBRK_CHECK */
915 --- 1,5 ----
916   
917   
918   #if defined( ALPHA_SBRK_CHECK )
919 ! extern void *sbrk(ptrdiff_t increment);
920   #endif  /* ALPHA_SBRK_CHECK */