fixincl.x 135 KB
Newer Older
korbb's avatar
korbb committed
1
/*
korbb's avatar
korbb committed
2
 *  DO NOT EDIT THIS FILE - it has been generated
korbb's avatar
korbb committed
3 4 5 6 7
 *
 * Install modified versions of certain ANSI-incompatible system header
 * files which are fixed to work correctly with ANSI C and placed in a
 * directory that GNU C will search.
 *
8
 * This file contains 118 fixup descriptions.
korbb's avatar
korbb committed
9 10 11
 *
 * See README-fixinc for more information.
 *
12 13
 *  inclhack copyright (c) 1998, 1999, 2000
 *  The Free Software Foundation, Inc.
korbb's avatar
korbb committed
14
 *
korbb's avatar
korbb committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
 *  inclhack is free software.
 *  
 *  You may redistribute it and/or modify it under the terms of the
 *  GNU General Public License, as published by the Free Software
 *  Foundation; either version 2, or (at your option) any later version.
 *  
 *  inclhack is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *  See the GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with inclhack.  See the file "COPYING".  If not,
 *  write to:  The Free Software Foundation, Inc.,
 *             59 Temple Place - Suite 330,
 *             Boston,  MA  02111-1307, USA.
31 32 33
 */

/* * * * * * * * * * * * * * * * * * * * * * * * * *
korbb's avatar
korbb committed
34
 *
korbb's avatar
korbb committed
35
 *  Description of Aaa_Ki_Iface fix
korbb's avatar
korbb committed
36
 */
korbb's avatar
korbb committed
37 38
#define AAA_KI_IFACE_FIXIDX              0
tSCC zAaa_Ki_IfaceName[] =
39 40
     "AAA_ki_iface";

korbb's avatar
korbb committed
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
/*
 *  File name selection pattern
 */
tSCC zAaa_Ki_IfaceList[] =
  "|sys/ki_iface.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzAaa_Ki_IfaceMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zAaa_Ki_IfaceSelect0[] =
       "These definitions are for HP Internal developers";

#define    AAA_KI_IFACE_TEST_CT  1
tTestDesc aAaa_Ki_IfaceTests[] = {
  { TT_EGREP,    zAaa_Ki_IfaceSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Aaa_Ki_Iface
 */
const char* apzAaa_Ki_IfacePatch[] = {
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Aaa_Ki fix
 */
#define AAA_KI_FIXIDX                    1
tSCC zAaa_KiName[] =
73 74
     "AAA_ki";

korbb's avatar
korbb committed
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
/*
 *  File name selection pattern
 */
tSCC zAaa_KiList[] =
  "|sys/ki.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzAaa_KiMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zAaa_KiSelect0[] =
       "11.00 HP-UX LP64";

#define    AAA_KI_TEST_CT  1
tTestDesc aAaa_KiTests[] = {
  { TT_EGREP,    zAaa_KiSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Aaa_Ki
 */
const char* apzAaa_KiPatch[] = {
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Aaa_Ki_Calls fix
 */
#define AAA_KI_CALLS_FIXIDX              2
tSCC zAaa_Ki_CallsName[] =
107 108
     "AAA_ki_calls";

korbb's avatar
korbb committed
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
/*
 *  File name selection pattern
 */
tSCC zAaa_Ki_CallsList[] =
  "|sys/ki_calls.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzAaa_Ki_CallsMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zAaa_Ki_CallsSelect0[] =
       "kthread_create_caller_t";

#define    AAA_KI_CALLS_TEST_CT  1
tTestDesc aAaa_Ki_CallsTests[] = {
  { TT_EGREP,    zAaa_Ki_CallsSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Aaa_Ki_Calls
 */
const char* apzAaa_Ki_CallsPatch[] = {
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Aaa_Ki_Defs fix
 */
#define AAA_KI_DEFS_FIXIDX               3
tSCC zAaa_Ki_DefsName[] =
141 142
     "AAA_ki_defs";

korbb's avatar
korbb committed
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
/*
 *  File name selection pattern
 */
tSCC zAaa_Ki_DefsList[] =
  "|sys/ki_defs.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzAaa_Ki_DefsMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zAaa_Ki_DefsSelect0[] =
       "Kernel Instrumentation Definitions";

#define    AAA_KI_DEFS_TEST_CT  1
tTestDesc aAaa_Ki_DefsTests[] = {
  { TT_EGREP,    zAaa_Ki_DefsSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Aaa_Ki_Defs
 */
const char* apzAaa_Ki_DefsPatch[] = {
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Aaa_Bad_Fixes fix
 */
#define AAA_BAD_FIXES_FIXIDX             4
tSCC zAaa_Bad_FixesName[] =
175 176
     "AAA_bad_fixes";

korbb's avatar
korbb committed
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
/*
 *  File name selection pattern
 */
tSCC zAaa_Bad_FixesList[] =
  "|sundev/ipi_error.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzAaa_Bad_FixesMachs (const char**)NULL
#define AAA_BAD_FIXES_TEST_CT  0
#define aAaa_Bad_FixesTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Aaa_Bad_Fixes
 */
const char* apzAaa_Bad_FixesPatch[] = {
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Aaa_Time fix
 */
#define AAA_TIME_FIXIDX                  5
tSCC zAaa_TimeName[] =
201 202
     "AAA_time";

korbb's avatar
korbb committed
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
/*
 *  File name selection pattern
 */
tSCC zAaa_TimeList[] =
  "|sys/time.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzAaa_TimeMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zAaa_TimeSelect0[] =
       "11.0 and later representation of ki time";

#define    AAA_TIME_TEST_CT  1
tTestDesc aAaa_TimeTests[] = {
  { TT_EGREP,    zAaa_TimeSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Aaa_Time
 */
const char* apzAaa_TimePatch[] = {
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Aab_Dgux_Int_Varargs fix
 */
#define AAB_DGUX_INT_VARARGS_FIXIDX      6
tSCC zAab_Dgux_Int_VarargsName[] =
235 236
     "AAB_dgux_int_varargs";

korbb's avatar
korbb committed
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316
/*
 *  File name selection pattern
 */
tSCC zAab_Dgux_Int_VarargsList[] =
  "|_int_varargs.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzAab_Dgux_Int_VarargsMachs (const char**)NULL
#define AAB_DGUX_INT_VARARGS_TEST_CT  0
#define aAab_Dgux_Int_VarargsTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Aab_Dgux_Int_Varargs
 */
const char* apzAab_Dgux_Int_VarargsPatch[] = {
"#ifndef __INT_VARARGS_H\n\
#define __INT_VARARGS_H\n\
\n\
/************************************************************************/\n\
/* _INT_VARARGS.H - Define the common stuff for varargs/stdarg/stdio.   */\n\
/************************************************************************/\n\
\n\
/*\n\
** This file is a DG internal header.  Never include this\n\
** file directly.\n\
*/\n\
\n\
#ifndef ___int_features_h\n\
#include <sys/_int_features.h>\n\
#endif\n\
\n\
#if !(defined(_VA_LIST) || defined(_VA_LIST_))\n\
#define _VA_LIST\n\
#define _VA_LIST_\n\
\n\
#ifdef __LINT__\n\
\n\
#ifdef __STDC__\n\
typedef void * va_list;\n\
#else\n\
typedef char * va_list;\n\
#endif\n\
\n\
#else\n\
#if _M88K_ANY\n\
\n\
#if defined(__DCC__)\n\
\n\
typedef struct {\n\
      int     next_arg;\n\
      int     *mem_ptr;\n\
      int     *reg_ptr;\n\
} va_list;\n\
\n\
#else  /* ! defined(__DCC__) */\n\
\n\
typedef struct {\n\
      int  __va_arg;       /* argument number */\n\
      int *__va_stk;       /* start of args passed on stack */\n\
      int *__va_reg;       /* start of args passed in regs */\n\
} va_list;\n\
\n\
#endif  /* ! defined(__DCC__) */\n\
\n\
#elif _IX86_ANY\n\
\n\
#if defined(__GNUC__) || defined(__STDC__)\n\
typedef void * va_list;\n\
#else\n\
typedef char * va_list;\n\
#endif\n\
\n\
#endif  /*  _IX86_ANY */\n\
\n\
#endif /* __LINT__ */\n\
#endif /*  !(defined(_VA_LIST) || defined(_VA_LIST_)) */\n\
#endif /*  #ifndef __INT_VARARGS_H  */\n",
    (char*)NULL };

korbb's avatar
korbb committed
317 318
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
319
 *  Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
korbb's avatar
korbb committed
320
 */
321 322
#define AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX 7
tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
323 324
     "AAB_fd_zero_asm_posix_types_h";

korbb's avatar
korbb committed
325 326 327
/*
 *  File name selection pattern
 */
328
tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
korbb's avatar
korbb committed
329 330 331 332
  "|asm/posix_types.h|";
/*
 *  Machine/OS name selection pattern
 */
333
tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
334 335
        "i[34567]86-*-linux-gnu*",
        (const char*)NULL };
korbb's avatar
korbb committed
336 337

/*
338
 *  content bypass pattern - skip fix if pattern found
korbb's avatar
korbb committed
339
 */
340 341 342 343 344 345 346 347 348 349 350 351 352
tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
       "} while";

#define    AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT  1
tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
  { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
 */
const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
"/* This file fixes a bug in the __FD_ZERO macro\n\
   for older versions of the Linux kernel. */\n\
korbb's avatar
korbb committed
353 354
#ifndef _POSIX_TYPES_H_WRAPPER\n\
#include <features.h>\n\
355
 #include_next <asm/posix_types.h>\n\
korbb's avatar
korbb committed
356 357 358
\n\
#if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
#undef __FD_ZERO\n\
359 360 361 362 363 364 365 366
#define __FD_ZERO(fdsetp) \\\n\
  do { \\\n\
    int __d0, __d1; \\\n\
\t\t__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
\t\t\t: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
\t\t\t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
\t\t\t  \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
  } while (0)\n\
korbb's avatar
korbb committed
367 368 369 370 371 372 373 374
#endif\n\
\n\
#define _POSIX_TYPES_H_WRAPPER\n\
#endif /* _POSIX_TYPES_H_WRAPPER */\n",
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
375
 *  Description of Aab_Fd_Zero_Gnu_Types_H fix
korbb's avatar
korbb committed
376
 */
377 378
#define AAB_FD_ZERO_GNU_TYPES_H_FIXIDX   8
tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
379 380
     "AAB_fd_zero_gnu_types_h";

korbb's avatar
korbb committed
381 382 383
/*
 *  File name selection pattern
 */
384
tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
korbb's avatar
korbb committed
385 386 387 388
  "|gnu/types.h|";
/*
 *  Machine/OS name selection pattern
 */
389
tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
390 391
        "i[34567]86-*-linux-gnu*",
        (const char*)NULL };
392 393
#define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT  0
#define aAab_Fd_Zero_Gnu_Types_HTests   (tTestDesc*)NULL
korbb's avatar
korbb committed
394 395

/*
396
 *  Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
korbb's avatar
korbb committed
397
 */
398 399
const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
"/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
korbb's avatar
korbb committed
400 401
#ifndef _TYPES_H_WRAPPER\n\
#include <features.h>\n\
402
 #include_next <gnu/types.h>\n\
korbb's avatar
korbb committed
403 404 405
\n\
#if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
#undef __FD_ZERO\n\
406 407 408 409 410 411 412 413
# define __FD_ZERO(fdsetp) \\\n\
  do { \\\n\
    int __d0, __d1; \\\n\
\t__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
        \t: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
        \t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
\t\t  \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
  } while (0)\n\
korbb's avatar
korbb committed
414 415 416 417 418 419 420 421
#endif\n\
\n\
#define _TYPES_H_WRAPPER\n\
#endif /* _TYPES_H_WRAPPER */\n",
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
422
 *  Description of Aab_Fd_Zero_Selectbits_H fix
korbb's avatar
korbb committed
423
 */
424 425
#define AAB_FD_ZERO_SELECTBITS_H_FIXIDX  9
tSCC zAab_Fd_Zero_Selectbits_HName[] =
426 427
     "AAB_fd_zero_selectbits_h";

korbb's avatar
korbb committed
428 429 430
/*
 *  File name selection pattern
 */
431
tSCC zAab_Fd_Zero_Selectbits_HList[] =
korbb's avatar
korbb committed
432 433 434 435
  "|selectbits.h|";
/*
 *  Machine/OS name selection pattern
 */
436
tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
437 438
        "i[34567]86-*-linux-gnu*",
        (const char*)NULL };
439 440
#define AAB_FD_ZERO_SELECTBITS_H_TEST_CT  0
#define aAab_Fd_Zero_Selectbits_HTests   (tTestDesc*)NULL
korbb's avatar
korbb committed
441 442

/*
443
 *  Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
korbb's avatar
korbb committed
444
 */
445 446
const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
"/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
korbb's avatar
korbb committed
447 448
#ifndef _SELECTBITS_H_WRAPPER\n\
#include <features.h>\n\
449
 #include_next <selectbits.h>\n\
korbb's avatar
korbb committed
450
\n\
451 452 453
#if defined(__FD_ZERO) && defined(__GLIBC__) \\\n\
\t&& defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\n\
\t&& __GLIBC_MINOR__ == 0\n\
korbb's avatar
korbb committed
454
#undef __FD_ZERO\n\
455 456 457 458 459 460 461 462 463 464
#define __FD_ZERO(fdsetp) \\\n\
  do { \\\n\
    int __d0, __d1; \\\n\
  __asm__ __volatile__ (\"cld; rep; stosl\" \\\n\
                        : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
                        : \"a\" (0), \"0\" (sizeof (__fd_set) \\\n\
                                        / sizeof (__fd_mask)), \\\n\
                          \"1\" ((__fd_mask *) (fdsetp)) \\\n\
                        : \"memory\"); \\\n\
  } while (0)\n\
korbb's avatar
korbb committed
465 466 467 468 469 470
#endif\n\
\n\
#define _SELECTBITS_H_WRAPPER\n\
#endif /* _SELECTBITS_H_WRAPPER */\n",
    (char*)NULL };

471 472 473 474 475 476
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Aab_Sun_Memcpy fix
 */
#define AAB_SUN_MEMCPY_FIXIDX            10
tSCC zAab_Sun_MemcpyName[] =
477 478
     "AAB_sun_memcpy";

479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523
/*
 *  File name selection pattern
 */
tSCC zAab_Sun_MemcpyList[] =
  "|memory.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzAab_Sun_MemcpyMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zAab_Sun_MemcpySelect0[] =
       "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";

#define    AAB_SUN_MEMCPY_TEST_CT  1
tTestDesc aAab_Sun_MemcpyTests[] = {
  { TT_EGREP,    zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Aab_Sun_Memcpy
 */
const char* apzAab_Sun_MemcpyPatch[] = {
"/* This file was generated by fixincludes */\n\
#ifndef __memory_h__\n\
#define __memory_h__\n\
\n\
#ifdef __STDC__\n\
extern void *memccpy();\n\
extern void *memchr();\n\
extern void *memcpy();\n\
extern void *memset();\n\
#else\n\
extern char *memccpy();\n\
extern char *memchr();\n\
extern char *memcpy();\n\
extern char *memset();\n\
#endif /* __STDC__ */\n\
\n\
extern int memcmp();\n\
\n\
#endif /* __memory_h__ */\n",
    (char*)NULL };

korbb's avatar
korbb committed
524 525 526 527
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Aab_Svr4_Replace_Byteorder fix
 */
528
#define AAB_SVR4_REPLACE_BYTEORDER_FIXIDX 11
korbb's avatar
korbb committed
529
tSCC zAab_Svr4_Replace_ByteorderName[] =
530 531
     "AAB_svr4_replace_byteorder";

korbb's avatar
korbb committed
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620
/*
 *  File name selection pattern
 */
tSCC zAab_Svr4_Replace_ByteorderList[] =
  "|sys/byteorder.h|";
/*
 *  Machine/OS name selection pattern
 */
tSCC* apzAab_Svr4_Replace_ByteorderMachs[] = {
        "*-*-sysv4*",
        "i[34567]86-*-sysv5*",
        "i[34567]86-*-udk*",
        "i[34567]86-*-solaris2.[0-4]",
        "powerpcle-*-solaris2.[0-4]",
        "sparc-*-solaris2.[0-4]",
        (const char*)NULL };
#define AAB_SVR4_REPLACE_BYTEORDER_TEST_CT  0
#define aAab_Svr4_Replace_ByteorderTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Aab_Svr4_Replace_Byteorder
 */
const char* apzAab_Svr4_Replace_ByteorderPatch[] = {
"#ifndef _SYS_BYTEORDER_H\n\
#define _SYS_BYTEORDER_H\n\
\n\
/* Functions to convert `short' and `long' quantities from host byte order\n\
   to (internet) network byte order (i.e. big-endian).\n\
\n\
   Written by Ron Guilmette (rfg@ncd.com).\n\
\n\
   This isn't actually used by GCC.  It is installed by fixinc.svr4.\n\
\n\
   For big-endian machines these functions are essentially no-ops.\n\
\n\
   For little-endian machines, we define the functions using specialized\n\
   asm sequences in cases where doing so yields better code (e.g. i386).  */\n\
\n\
#if !defined (__GNUC__) && !defined (__GNUG__)\n\
#error You lose!  This file is only useful with GNU compilers.\n\
#endif\n\
\n\
#ifndef __BYTE_ORDER__\n\
/* Byte order defines.  These are as defined on UnixWare 1.1, but with\n\
   double underscores added at the front and back.  */\n\
#define __LITTLE_ENDIAN__   1234\n\
#define __BIG_ENDIAN__      4321\n\
#define __PDP_ENDIAN__      3412\n\
#endif\n\
\n\
#ifdef __STDC__\n\
static __inline__ unsigned long htonl (unsigned long);\n\
static __inline__ unsigned short htons (unsigned int);\n\
static __inline__ unsigned long ntohl (unsigned long);\n\
static __inline__ unsigned short ntohs (unsigned int);\n\
#endif /* defined (__STDC__) */\n\
\n\
#if defined (__i386__)\n\
\n\
#ifndef __BYTE_ORDER__\n\
#define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
#endif\n\
\n\
/* Convert a host long to a network long.  */\n\
\n\
/* We must use a new-style function definition, so that this will also\n\
   be valid for C++.  */\n\
static __inline__ unsigned long\n\
htonl (unsigned long __arg)\n\
{\n\
  register unsigned long __result;\n\
\n\
  __asm__ (\"xchg%B0 %b0,%h0\n\
\tror%L0 $16,%0\n\
\txchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
  return __result;\n\
}\n\
\n\
/* Convert a host short to a network short.  */\n\
\n\
static __inline__ unsigned short\n\
htons (unsigned int __arg)\n\
{\n\
  register unsigned short __result;\n\
\n\
  __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
  return __result;\n\
}\n\
\n\
621 622 623
#elif ((defined (__i860__) && !defined (__i860_big_endian__))\t\\\n\
       || defined (__ns32k__) || defined (__vax__)\t\t\\\n\
       || defined (__spur__) || defined (__arm__))\n\
korbb's avatar
korbb committed
624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699
\n\
#ifndef __BYTE_ORDER__\n\
#define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
#endif\n\
\n\
/* For other little-endian machines, using C code is just as efficient as\n\
   using assembly code.  */\n\
\n\
/* Convert a host long to a network long.  */\n\
\n\
static __inline__ unsigned long\n\
htonl (unsigned long __arg)\n\
{\n\
  register unsigned long __result;\n\
\n\
  __result = (__arg >> 24) & 0x000000ff;\n\
  __result |= (__arg >> 8) & 0x0000ff00;\n\
  __result |= (__arg << 8) & 0x00ff0000;\n\
  __result |= (__arg << 24) & 0xff000000;\n\
  return __result;\n\
}\n\
\n\
/* Convert a host short to a network short.  */\n\
\n\
static __inline__ unsigned short\n\
htons (unsigned int __arg)\n\
{\n\
  register unsigned short __result;\n\
\n\
  __result = (__arg << 8) & 0xff00;\n\
  __result |= (__arg >> 8) & 0x00ff;\n\
  return __result;\n\
}\n\
\n\
#else /* must be a big-endian machine */\n\
\n\
#ifndef __BYTE_ORDER__\n\
#define __BYTE_ORDER__ __BIG_ENDIAN__\n\
#endif\n\
\n\
/* Convert a host long to a network long.  */\n\
\n\
static __inline__ unsigned long\n\
htonl (unsigned long __arg)\n\
{\n\
  return __arg;\n\
}\n\
\n\
/* Convert a host short to a network short.  */\n\
\n\
static __inline__ unsigned short\n\
htons (unsigned int __arg)\n\
{\n\
  return __arg;\n\
}\n\
\n\
#endif /* big-endian */\n\
\n\
/* Convert a network long to a host long.  */\n\
\n\
static __inline__ unsigned long\n\
ntohl (unsigned long __arg)\n\
{\n\
  return htonl (__arg);\n\
}\n\
\n\
/* Convert a network short to a host short.  */\n\
\n\
static __inline__ unsigned short\n\
ntohs (unsigned int __arg)\n\
{\n\
  return htons (__arg);\n\
}\n\
#endif\n",
    (char*)NULL };

700 701 702 703 704 705
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Aab_Ultrix_Ansi_Compat fix
 */
#define AAB_ULTRIX_ANSI_COMPAT_FIXIDX    12
tSCC zAab_Ultrix_Ansi_CompatName[] =
706 707
     "AAB_ultrix_ansi_compat";

708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734
/*
 *  File name selection pattern
 */
tSCC zAab_Ultrix_Ansi_CompatList[] =
  "|ansi_compat.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
       "ULTRIX";

#define    AAB_ULTRIX_ANSI_COMPAT_TEST_CT  1
tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
  { TT_EGREP,    zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Aab_Ultrix_Ansi_Compat
 */
const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
"/* This file intentionally left blank.  */\n",
    (char*)NULL };

korbb's avatar
korbb committed
735 736 737 738
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Aix_Syswait fix
 */
739
#define AIX_SYSWAIT_FIXIDX               13
korbb's avatar
korbb committed
740
tSCC zAix_SyswaitName[] =
741 742
     "aix_syswait";

korbb's avatar
korbb committed
743 744 745 746
/*
 *  File name selection pattern
 */
tSCC zAix_SyswaitList[] =
law's avatar
p  
law committed
747
  "|sys/wait.h|";
korbb's avatar
korbb committed
748 749 750 751 752 753
/*
 *  Machine/OS name selection pattern
 */
#define apzAix_SyswaitMachs (const char**)NULL

/*
korbb's avatar
korbb committed
754
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
755 756 757 758 759 760
 */
tSCC zAix_SyswaitSelect0[] =
       "bos325,";

#define    AIX_SYSWAIT_TEST_CT  1
tTestDesc aAix_SyswaitTests[] = {
korbb's avatar
korbb committed
761
  { TT_EGREP,    zAix_SyswaitSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
762 763 764 765 766

/*
 *  Fix Command Arguments for Aix_Syswait
 */
const char* apzAix_SyswaitPatch[] = { "sed",
korbb's avatar
korbb committed
767 768
    "-e", "/^extern pid_t wait3();$/i\\\n\
struct rusage;\n",
korbb's avatar
korbb committed
769 770 771 772
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
773
 *  Description of Aix_Volatile fix
korbb's avatar
korbb committed
774
 */
775
#define AIX_VOLATILE_FIXIDX              14
korbb's avatar
korbb committed
776
tSCC zAix_VolatileName[] =
777 778
     "aix_volatile";

korbb's avatar
korbb committed
779 780 781 782
/*
 *  File name selection pattern
 */
tSCC zAix_VolatileList[] =
law's avatar
p  
law committed
783
  "|sys/signal.h|";
korbb's avatar
korbb committed
784 785 786 787 788 789
/*
 *  Machine/OS name selection pattern
 */
#define apzAix_VolatileMachs (const char**)NULL

/*
korbb's avatar
korbb committed
790
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
791 792 793 794 795 796
 */
tSCC zAix_VolatileSelect0[] =
       "typedef volatile int sig_atomic_t";

#define    AIX_VOLATILE_TEST_CT  1
tTestDesc aAix_VolatileTests[] = {
korbb's avatar
korbb committed
797
  { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
798 799 800 801 802

/*
 *  Fix Command Arguments for Aix_Volatile
 */
const char* apzAix_VolatilePatch[] = { "sed",
korbb's avatar
korbb committed
803
    "-e", "s/typedef volatile int sig_atomic_t/typedef int sig_atomic_t/",
korbb's avatar
korbb committed
804 805 806 807
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
808
 *  Description of Alpha_Getopt fix
korbb's avatar
korbb committed
809
 */
810
#define ALPHA_GETOPT_FIXIDX              15
korbb's avatar
korbb committed
811
tSCC zAlpha_GetoptName[] =
812 813
     "alpha_getopt";

korbb's avatar
korbb committed
814 815 816 817
/*
 *  File name selection pattern
 */
tSCC zAlpha_GetoptList[] =
law's avatar
p  
law committed
818
  "|stdio.h|stdlib.h|";
korbb's avatar
korbb committed
819 820 821 822 823 824
/*
 *  Machine/OS name selection pattern
 */
#define apzAlpha_GetoptMachs (const char**)NULL

/*
korbb's avatar
korbb committed
825
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
826 827
 */
tSCC zAlpha_GetoptSelect0[] =
korbb's avatar
korbb committed
828
       "getopt\\(int, char \\*\\[\\], *char \\*\\)";
korbb's avatar
korbb committed
829 830 831

#define    ALPHA_GETOPT_TEST_CT  1
tTestDesc aAlpha_GetoptTests[] = {
korbb's avatar
korbb committed
832
  { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
833 834 835 836 837

/*
 *  Fix Command Arguments for Alpha_Getopt
 */
const char* apzAlpha_GetoptPatch[] = { "sed",
korbb's avatar
korbb committed
838
    "-e", "s/getopt(int, char \\*\\[\\],[ ]*char \\*)/getopt(int, char *const[], const char *)/",
korbb's avatar
korbb committed
839 840 841 842
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
843
 *  Description of Alpha_Parens fix
korbb's avatar
korbb committed
844
 */
845
#define ALPHA_PARENS_FIXIDX              16
korbb's avatar
korbb committed
846
tSCC zAlpha_ParensName[] =
847 848
     "alpha_parens";

korbb's avatar
korbb committed
849 850 851 852
/*
 *  File name selection pattern
 */
tSCC zAlpha_ParensList[] =
korbb's avatar
korbb committed
853
  "|sym.h|";
korbb's avatar
korbb committed
854 855 856 857 858 859
/*
 *  Machine/OS name selection pattern
 */
#define apzAlpha_ParensMachs (const char**)NULL

/*
korbb's avatar
korbb committed
860
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
861 862 863 864 865 866
 */
tSCC zAlpha_ParensSelect0[] =
       "#ifndef\\(__mips64\\)";

#define    ALPHA_PARENS_TEST_CT  1
tTestDesc aAlpha_ParensTests[] = {
korbb's avatar
korbb committed
867
  { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
868 869 870 871 872

/*
 *  Fix Command Arguments for Alpha_Parens
 */
const char* apzAlpha_ParensPatch[] = { "sed",
korbb's avatar
korbb committed
873
    "-e", "s/#ifndef(__mips64)/#ifndef __mips64/",
korbb's avatar
korbb committed
874 875 876 877
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
878
 *  Description of Alpha_Sbrk fix
korbb's avatar
korbb committed
879
 */
880
#define ALPHA_SBRK_FIXIDX                17
korbb's avatar
korbb committed
881
tSCC zAlpha_SbrkName[] =
882 883
     "alpha_sbrk";

korbb's avatar
korbb committed
884 885 886 887
/*
 *  File name selection pattern
 */
tSCC zAlpha_SbrkList[] =
korbb's avatar
korbb committed
888
  "|unistd.h|";
korbb's avatar
korbb committed
889 890 891 892 893 894
/*
 *  Machine/OS name selection pattern
 */
#define apzAlpha_SbrkMachs (const char**)NULL

/*
korbb's avatar
korbb committed
895
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
896 897 898 899 900 901
 */
tSCC zAlpha_SbrkSelect0[] =
       "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";

#define    ALPHA_SBRK_TEST_CT  1
tTestDesc aAlpha_SbrkTests[] = {
korbb's avatar
korbb committed
902
  { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
903 904 905 906 907

/*
 *  Fix Command Arguments for Alpha_Sbrk
 */
const char* apzAlpha_SbrkPatch[] = { "sed",
korbb's avatar
korbb committed
908
    "-e", "s/char\\([ \t]*\\*[\t ]*sbrk[ \t]*(\\)/void\\1/",
korbb's avatar
korbb committed
909 910 911 912
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
913
 *  Description of Arm_Norcroft_Hint fix
korbb's avatar
korbb committed
914
 */
915
#define ARM_NORCROFT_HINT_FIXIDX         18
korbb's avatar
korbb committed
916
tSCC zArm_Norcroft_HintName[] =
917 918
     "arm_norcroft_hint";

korbb's avatar
korbb committed
919 920 921 922
/*
 *  File name selection pattern
 */
tSCC zArm_Norcroft_HintList[] =
korbb's avatar
korbb committed
923
  "|X11/Intrinsic.h|";
korbb's avatar
korbb committed
924 925 926 927
/*
 *  Machine/OS name selection pattern
 */
#define apzArm_Norcroft_HintMachs (const char**)NULL
928 929 930 931 932 933 934 935 936

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zArm_Norcroft_HintSelect0[] =
       "___type p_type";

#define    ARM_NORCROFT_HINT_TEST_CT  1
tTestDesc aArm_Norcroft_HintTests[] = {
korbb's avatar
korbb committed
937
  { TT_EGREP,    zArm_Norcroft_HintSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
938 939 940 941 942

/*
 *  Fix Command Arguments for Arm_Norcroft_Hint
 */
const char* apzArm_Norcroft_HintPatch[] = { "sed",
korbb's avatar
korbb committed
943
    "-e", "s/___type p_type/p_type/",
korbb's avatar
korbb committed
944 945 946 947
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
948
 *  Description of Arm_Wchar fix
korbb's avatar
korbb committed
949
 */
950
#define ARM_WCHAR_FIXIDX                 19
korbb's avatar
korbb committed
951
tSCC zArm_WcharName[] =
952 953
     "arm_wchar";

korbb's avatar
korbb committed
954 955 956 957
/*
 *  File name selection pattern
 */
tSCC zArm_WcharList[] =
korbb's avatar
korbb committed
958
  "|stdlib.h|";
korbb's avatar
korbb committed
959 960 961 962 963 964
/*
 *  Machine/OS name selection pattern
 */
#define apzArm_WcharMachs (const char**)NULL

/*
korbb's avatar
korbb committed
965
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
966 967 968 969 970 971
 */
tSCC zArm_WcharSelect0[] =
       "#[ \t]*define[ \t]*__wchar_t";

#define    ARM_WCHAR_TEST_CT  1
tTestDesc aArm_WcharTests[] = {
korbb's avatar
korbb committed
972
  { TT_EGREP,    zArm_WcharSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
973 974 975 976 977

/*
 *  Fix Command Arguments for Arm_Wchar
 */
const char* apzArm_WcharPatch[] = { "sed",
korbb's avatar
korbb committed
978 979
    "-e", "s/\\(#[ \t]*ifndef[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/",
    "-e", "s/\\(#[ \t]*define[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/",
korbb's avatar
korbb committed
980 981 982 983
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
984
 *  Description of Aux_Asm fix
korbb's avatar
korbb committed
985
 */
986
#define AUX_ASM_FIXIDX                   20
korbb's avatar
korbb committed
987
tSCC zAux_AsmName[] =
988 989
     "aux_asm";

korbb's avatar
korbb committed
990 991 992 993
/*
 *  File name selection pattern
 */
tSCC zAux_AsmList[] =
korbb's avatar
korbb committed
994
  "|sys/param.h|";
korbb's avatar
korbb committed
995 996 997 998 999 1000
/*
 *  Machine/OS name selection pattern
 */
#define apzAux_AsmMachs (const char**)NULL

/*
korbb's avatar
korbb committed
1001
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
1002 1003 1004 1005 1006 1007
 */
tSCC zAux_AsmSelect0[] =
       "#ifndef NOINLINE";

#define    AUX_ASM_TEST_CT  1
tTestDesc aAux_AsmTests[] = {
korbb's avatar
korbb committed
1008
  { TT_EGREP,    zAux_AsmSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1009 1010 1011 1012 1013

/*
 *  Fix Command Arguments for Aux_Asm
 */
const char* apzAux_AsmPatch[] = { "sed",
korbb's avatar
korbb committed
1014
    "-e", "s|#ifndef NOINLINE|#if !defined(NOINLINE) \\&\\& !defined(__GNUC__)|",
korbb's avatar
korbb committed
1015 1016 1017 1018
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1019
 *  Description of Avoid_Bool fix
korbb's avatar
korbb committed
1020
 */
1021
#define AVOID_BOOL_FIXIDX                21
korbb's avatar
korbb committed
1022
tSCC zAvoid_BoolName[] =
1023 1024
     "avoid_bool";

korbb's avatar
korbb committed
1025 1026 1027 1028
/*
 *  File name selection pattern
 */
tSCC zAvoid_BoolList[] =
korbb's avatar
korbb committed
1029
  "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
korbb's avatar
korbb committed
1030 1031 1032 1033
/*
 *  Machine/OS name selection pattern
 */
#define apzAvoid_BoolMachs (const char**)NULL
1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zAvoid_BoolSelect0[] =
       "char[ \t]+bool|bool[ \t]+char";

/*
 *  content bypass pattern - skip fix if pattern found
 */
tSCC zAvoid_BoolBypass0[] =
       "we must use the C\\+\\+ compiler's type";

#define    AVOID_BOOL_TEST_CT  2
tTestDesc aAvoid_BoolTests[] = {
  { TT_NEGREP,   zAvoid_BoolBypass0, (regex_t*)NULL },
  { TT_EGREP,    zAvoid_BoolSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1051 1052 1053 1054 1055

/*
 *  Fix Command Arguments for Avoid_Bool
 */
const char* apzAvoid_BoolPatch[] = { "sed",
korbb's avatar
korbb committed
1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066
    "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/i\\\n\
#ifndef __cplusplus\n",
    "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/a\\\n\
#endif\n",
    "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/i\\\n\
#ifndef __cplusplus\n",
    "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/a\\\n\
#endif\n",
    "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/i\\\n\
#ifndef __cplusplus\n",
    "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/a\\\n\
1067 1068 1069 1070 1071 1072 1073 1074
#endif\n",
    "-e", "/^typedef[ \t][ \t]*int[ \t][ \t]*bool[ \t]*;/i\\\n\
#ifndef __cplusplus\n",
    "-e", "/^typedef[ \t][ \t]*int[ \t][ \t]*bool[ \t]*;/a\\\n\
#endif\n",
    "-e", "/^[ ]*typedef[ \t][ \t]*unsigned int[ \t][ \t]*bool[ \t]*;/i\\\n\
#ifndef __cplusplus\n",
    "-e", "/^[ ]*typedef[ \t][ \t]*unsigned int[ \t][ \t]*bool[ \t]*;/a\\\n\
korbb's avatar
korbb committed
1075
#endif\n",
korbb's avatar
korbb committed
1076 1077 1078 1079
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1080
 *  Description of Bad_Struct_Term fix
korbb's avatar
korbb committed
1081
 */
1082
#define BAD_STRUCT_TERM_FIXIDX           22
korbb's avatar
korbb committed
1083
tSCC zBad_Struct_TermName[] =
1084 1085
     "bad_struct_term";

korbb's avatar
korbb committed
1086 1087 1088 1089
/*
 *  File name selection pattern
 */
tSCC zBad_Struct_TermList[] =
korbb's avatar
korbb committed
1090
  "|curses.h|";
korbb's avatar
korbb committed
1091 1092 1093 1094 1095 1096
/*
 *  Machine/OS name selection pattern
 */
#define apzBad_Struct_TermMachs (const char**)NULL

/*
korbb's avatar
korbb committed
1097
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
1098 1099 1100 1101 1102 1103
 */
tSCC zBad_Struct_TermSelect0[] =
       "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";

#define    BAD_STRUCT_TERM_TEST_CT  1
tTestDesc aBad_Struct_TermTests[] = {
korbb's avatar
korbb committed
1104
  { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1105 1106 1107 1108 1109

/*
 *  Fix Command Arguments for Bad_Struct_Term
 */
const char* apzBad_Struct_TermPatch[] = { "sed",
korbb's avatar
korbb committed
1110
    "-e", "s/^[ \t]*typedef[ \t][ \t]*\\(struct[ \t][ \t]*term[ \t]*;[ \t]*\\)$/\\1/",
korbb's avatar
korbb committed
1111 1112 1113 1114
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1115
 *  Description of Badquote fix
korbb's avatar
korbb committed
1116
 */
1117
#define BADQUOTE_FIXIDX                  23
korbb's avatar
korbb committed
1118
tSCC zBadquoteName[] =
1119 1120
     "badquote";

korbb's avatar
korbb committed
1121 1122 1123 1124
/*
 *  File name selection pattern
 */
tSCC zBadquoteList[] =
korbb's avatar
korbb committed
1125
  "|sundev/vuid_event.h|";
korbb's avatar
korbb committed
1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136
/*
 *  Machine/OS name selection pattern
 */
#define apzBadquoteMachs (const char**)NULL
#define BADQUOTE_TEST_CT  0
#define aBadquoteTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Badquote
 */
const char* apzBadquotePatch[] = { "sed",
korbb's avatar
korbb committed
1137
    "-e", "s/doesn't/does not/",
korbb's avatar
korbb committed
1138 1139 1140 1141
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1142
 *  Description of Bad_Lval fix
korbb's avatar
korbb committed
1143
 */
1144
#define BAD_LVAL_FIXIDX                  24
korbb's avatar
korbb committed
1145
tSCC zBad_LvalName[] =
1146 1147
     "bad_lval";

korbb's avatar
korbb committed
1148 1149 1150 1151
/*
 *  File name selection pattern
 */
tSCC zBad_LvalList[] =
korbb's avatar
korbb committed
1152
  "|libgen.h|dirent.h|ftw.h|grp.h|ndbm.h|pthread.h|pwd.h|signal.h|standards.h|stdlib.h|string.h|stropts.h|time.h|unistd.h|";
korbb's avatar
korbb committed
1153 1154 1155 1156
/*
 *  Machine/OS name selection pattern
 */
#define apzBad_LvalMachs (const char**)NULL
korbb's avatar
korbb committed
1157 1158 1159 1160 1161

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zBad_LvalSelect0[] =
korbb's avatar
korbb committed
1162
       "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
korbb's avatar
korbb committed
1163 1164 1165 1166

#define    BAD_LVAL_TEST_CT  1
tTestDesc aBad_LvalTests[] = {
  { TT_EGREP,    zBad_LvalSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1167 1168 1169 1170 1171

/*
 *  Fix Command Arguments for Bad_Lval
 */
const char* apzBad_LvalPatch[] = { "sed",
korbb's avatar
korbb committed
1172
    "-e", "s/^[ \t]*#[ \t]*define[ \t]+\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
korbb's avatar
korbb committed
1173 1174 1175 1176
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1177
 *  Description of Broken_Assert_Stdio fix
korbb's avatar
korbb committed
1178
 */
1179
#define BROKEN_ASSERT_STDIO_FIXIDX       25
korbb's avatar
korbb committed
1180
tSCC zBroken_Assert_StdioName[] =
1181 1182
     "broken_assert_stdio";

korbb's avatar
korbb committed
1183 1184 1185 1186
/*
 *  File name selection pattern
 */
tSCC zBroken_Assert_StdioList[] =
korbb's avatar
korbb committed
1187
  "|assert.h|";
korbb's avatar
korbb committed
1188 1189 1190 1191 1192 1193
/*
 *  Machine/OS name selection pattern
 */
#define apzBroken_Assert_StdioMachs (const char**)NULL

/*
korbb's avatar
korbb committed
1194
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
1195 1196 1197 1198 1199
 */
tSCC zBroken_Assert_StdioSelect0[] =
       "stderr";

/*
korbb's avatar
korbb committed
1200
 *  content bypass pattern - skip fix if pattern found
korbb's avatar
korbb committed
1201 1202
 */
tSCC zBroken_Assert_StdioBypass0[] =
korbb's avatar
korbb committed
1203
       "include.*stdio\\.h";
korbb's avatar
korbb committed
1204 1205 1206

#define    BROKEN_ASSERT_STDIO_TEST_CT  2
tTestDesc aBroken_Assert_StdioTests[] = {
korbb's avatar
korbb committed
1207 1208
  { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
  { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1209 1210 1211 1212 1213

/*
 *  Fix Command Arguments for Broken_Assert_Stdio
 */
const char* apzBroken_Assert_StdioPatch[] = { "sed",
korbb's avatar
korbb committed
1214 1215
    "-e", "1i\\\n\
#include <stdio.h>\n",
korbb's avatar
korbb committed
1216 1217 1218 1219
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1220
 *  Description of Broken_Assert_Stdlib fix
korbb's avatar
korbb committed
1221
 */
1222
#define BROKEN_ASSERT_STDLIB_FIXIDX      26
korbb's avatar
korbb committed
1223
tSCC zBroken_Assert_StdlibName[] =
1224 1225
     "broken_assert_stdlib";

korbb's avatar
korbb committed
1226 1227 1228 1229
/*
 *  File name selection pattern
 */
tSCC zBroken_Assert_StdlibList[] =
korbb's avatar
korbb committed
1230
  "|assert.h|";
korbb's avatar
korbb committed
1231 1232 1233 1234 1235 1236
/*
 *  Machine/OS name selection pattern
 */
#define apzBroken_Assert_StdlibMachs (const char**)NULL

/*
korbb's avatar
korbb committed
1237
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
1238 1239 1240 1241 1242
 */
tSCC zBroken_Assert_StdlibSelect0[] =
       "exit *\\(|abort *\\(";

/*
korbb's avatar
korbb committed
1243
 *  content bypass pattern - skip fix if pattern found
korbb's avatar
korbb committed
1244 1245
 */
tSCC zBroken_Assert_StdlibBypass0[] =
korbb's avatar
korbb committed
1246
       "include.*stdlib\\.h";
korbb's avatar
korbb committed
1247 1248 1249

#define    BROKEN_ASSERT_STDLIB_TEST_CT  2
tTestDesc aBroken_Assert_StdlibTests[] = {
korbb's avatar
korbb committed
1250 1251
  { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
  { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1252 1253 1254 1255 1256

/*
 *  Fix Command Arguments for Broken_Assert_Stdlib
 */
const char* apzBroken_Assert_StdlibPatch[] = { "sed",
korbb's avatar
korbb committed
1257 1258 1259 1260
    "-e", "1i\\\n\
#ifdef __cplusplus\\\n\
#include <stdlib.h>\\\n\
#endif\n",
korbb's avatar
korbb committed
1261 1262
    (char*)NULL };

1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Broken_Cabs fix
 */
#define BROKEN_CABS_FIXIDX               27
tSCC zBroken_CabsName[] =
     "broken_cabs";

/*
 *  File name selection pattern
 */
tSCC zBroken_CabsList[] =
  "|math.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzBroken_CabsMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zBroken_CabsSelect0[] =
       "^extern double cabs";

#define    BROKEN_CABS_TEST_CT  1
tTestDesc aBroken_CabsTests[] = {
  { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Broken_Cabs
 */
const char* apzBroken_CabsPatch[] = { "sed",
    "-e", "/^extern double cabs();/d",
    "-e", "/^extern double cabs(struct dbl_hypot);/d",
    (char*)NULL };

korbb's avatar
korbb committed
1299 1300
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1301
 *  Description of Dec_Intern_Asm fix
korbb's avatar
korbb committed
1302
 */
1303
#define DEC_INTERN_ASM_FIXIDX            28
korbb's avatar
korbb committed
1304
tSCC zDec_Intern_AsmName[] =
1305 1306
     "dec_intern_asm";

korbb's avatar
korbb committed
1307 1308 1309 1310
/*
 *  File name selection pattern
 */
tSCC zDec_Intern_AsmList[] =
korbb's avatar
korbb committed
1311
  "|c_asm.h|";
korbb's avatar
korbb committed
1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322
/*
 *  Machine/OS name selection pattern
 */
#define apzDec_Intern_AsmMachs (const char**)NULL
#define DEC_INTERN_ASM_TEST_CT  0
#define aDec_Intern_AsmTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Dec_Intern_Asm
 */
const char* apzDec_Intern_AsmPatch[] = { "sed",
korbb's avatar
korbb committed
1323 1324 1325 1326
    "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
#ifdef __DECC\n",
    "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
#endif\n",
korbb's avatar
korbb committed
1327 1328
    (char*)NULL };

korbb's avatar
korbb committed
1329 1330
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1331
 *  Description of Ecd_Cursor fix
korbb's avatar
korbb committed
1332
 */
1333
#define ECD_CURSOR_FIXIDX                29
korbb's avatar
korbb committed
1334
tSCC zEcd_CursorName[] =
1335 1336
     "ecd_cursor";

korbb's avatar
korbb committed
1337 1338 1339 1340
/*
 *  File name selection pattern
 */
tSCC zEcd_CursorList[] =
korbb's avatar
korbb committed
1341
  "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
korbb's avatar
korbb committed
1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352
/*
 *  Machine/OS name selection pattern
 */
#define apzEcd_CursorMachs (const char**)NULL
#define ECD_CURSOR_TEST_CT  0
#define aEcd_CursorTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Ecd_Cursor
 */
const char* apzEcd_CursorPatch[] = { "sed",
korbb's avatar
korbb committed
1353
    "-e", "s/ecd.cursor/ecd_cursor/",
korbb's avatar
korbb committed
1354 1355 1356 1357
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1358
 *  Description of Hp_Inline fix
korbb's avatar
korbb committed
1359
 */
1360
#define HP_INLINE_FIXIDX                 30
korbb's avatar
korbb committed
1361
tSCC zHp_InlineName[] =
1362 1363
     "hp_inline";

korbb's avatar
korbb committed
1364 1365 1366 1367
/*
 *  File name selection pattern
 */
tSCC zHp_InlineList[] =
korbb's avatar
korbb committed
1368
  "|sys/spinlock.h|";
korbb's avatar
korbb committed
1369 1370 1371 1372 1373 1374
/*
 *  Machine/OS name selection pattern
 */
#define apzHp_InlineMachs (const char**)NULL

/*
korbb's avatar
korbb committed
1375
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
1376 1377 1378 1379 1380 1381
 */
tSCC zHp_InlineSelect0[] =
       "include.*\"\\.\\./machine/";

#define    HP_INLINE_TEST_CT  1
tTestDesc aHp_InlineTests[] = {
korbb's avatar
korbb committed
1382
  { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1383 1384 1385 1386 1387

/*
 *  Fix Command Arguments for Hp_Inline
 */
const char* apzHp_InlinePatch[] = { "sed",
korbb's avatar
korbb committed
1388 1389
    "-e", "s,\"../machine/inline.h\",<machine/inline.h>,",
    "-e", "s,\"../machine/psl.h\",<machine/psl.h>,",
korbb's avatar
korbb committed
1390 1391 1392 1393
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1394
 *  Description of Hp_Sysfile fix
korbb's avatar
korbb committed
1395
 */
1396
#define HP_SYSFILE_FIXIDX                31
korbb's avatar
korbb committed
1397
tSCC zHp_SysfileName[] =
1398 1399
     "hp_sysfile";

korbb's avatar
korbb committed
1400 1401 1402 1403
/*
 *  File name selection pattern
 */
tSCC zHp_SysfileList[] =
korbb's avatar
korbb committed
1404
  "|sys/file.h|";
korbb's avatar
korbb committed
1405 1406 1407 1408 1409 1410
/*
 *  Machine/OS name selection pattern
 */
#define apzHp_SysfileMachs (const char**)NULL

/*
korbb's avatar
korbb committed
1411
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
1412 1413 1414 1415 1416 1417
 */
tSCC zHp_SysfileSelect0[] =
       "HPUX_SOURCE";

#define    HP_SYSFILE_TEST_CT  1
tTestDesc aHp_SysfileTests[] = {
korbb's avatar
korbb committed
1418
  { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1419 1420 1421 1422 1423

/*
 *  Fix Command Arguments for Hp_Sysfile
 */
const char* apzHp_SysfilePatch[] = { "sed",
1424
    "-e", "s/(\\.\\.\\.)/(struct file *, ...)/",
korbb's avatar
korbb committed
1425 1426 1427 1428
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1429
 *  Description of Cxx_Unready fix
korbb's avatar
korbb committed
1430
 */
1431
#define CXX_UNREADY_FIXIDX               32
korbb's avatar
korbb committed
1432
tSCC zCxx_UnreadyName[] =
1433 1434
     "cxx_unready";

korbb's avatar
korbb committed
1435 1436 1437
/*
 *  File name selection pattern
 */
korbb's avatar
korbb committed
1438
tSCC zCxx_UnreadyList[] =
korbb's avatar
korbb committed
1439
  "|sys/mman.h|rpc/types.h|";
korbb's avatar
korbb committed
1440 1441 1442
/*
 *  Machine/OS name selection pattern
 */
korbb's avatar
korbb committed
1443
#define apzCxx_UnreadyMachs (const char**)NULL
korbb's avatar
korbb committed
1444

1445 1446 1447 1448 1449 1450
/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zCxx_UnreadySelect0[] =
       "[^#]+malloc.*;";

korbb's avatar
korbb committed
1451
/*
korbb's avatar
korbb committed
1452
 *  content bypass pattern - skip fix if pattern found
korbb's avatar
korbb committed
1453
 */
korbb's avatar
korbb committed
1454
tSCC zCxx_UnreadyBypass0[] =
korbb's avatar
korbb committed
1455 1456
       "\"C\"|__BEGIN_DECLS";

1457
#define    CXX_UNREADY_TEST_CT  2
korbb's avatar
korbb committed
1458
tTestDesc aCxx_UnreadyTests[] = {
1459 1460
  { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
  { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1461 1462

/*
korbb's avatar
korbb committed
1463
 *  Fix Command Arguments for Cxx_Unready
korbb's avatar
korbb committed
1464
 */
korbb's avatar
korbb committed
1465
const char* apzCxx_UnreadyPatch[] = { "sed",
korbb's avatar
korbb committed
1466 1467 1468 1469 1470 1471 1472 1473 1474
    "-e", "1i\\\n\
#ifdef __cplusplus\\\n\
extern \"C\" {\\\n\
#endif\\\n\
\n",
    "-e", "$a\\\n\
#ifdef __cplusplus\\\n\
}\\\n\
#endif\n",
korbb's avatar
korbb committed
1475 1476 1477 1478
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1479
 *  Description of Hpux_Maxint fix
korbb's avatar
korbb committed
1480
 */
1481
#define HPUX_MAXINT_FIXIDX               33
korbb's avatar
korbb committed
1482
tSCC zHpux_MaxintName[] =
1483 1484
     "hpux_maxint";

korbb's avatar
korbb committed
1485 1486 1487 1488
/*
 *  File name selection pattern
 */
tSCC zHpux_MaxintList[] =
korbb's avatar
korbb committed
1489
  "|sys/param.h|";
korbb's avatar
korbb committed
1490 1491 1492 1493
/*
 *  Machine/OS name selection pattern
 */
#define apzHpux_MaxintMachs (const char**)NULL
korbb's avatar
korbb committed
1494 1495 1496 1497 1498 1499 1500 1501 1502 1503

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zHpux_MaxintSelect0[] =
       "^#[ \t]*define[ \t]*MAXINT[ \t]";

#define    HPUX_MAXINT_TEST_CT  1
tTestDesc aHpux_MaxintTests[] = {
  { TT_EGREP,    zHpux_MaxintSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1504 1505 1506 1507 1508

/*
 *  Fix Command Arguments for Hpux_Maxint
 */
const char* apzHpux_MaxintPatch[] = { "sed",
korbb's avatar
korbb committed
1509 1510 1511 1512
    "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/i\\\n\
#ifndef MAXINT\n",
    "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/a\\\n\
#endif\n",
korbb's avatar
korbb committed
1513 1514 1515 1516
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1517
 *  Description of Hpux_Systime fix
korbb's avatar
korbb committed
1518
 */
1519
#define HPUX_SYSTIME_FIXIDX              34
korbb's avatar
korbb committed
1520
tSCC zHpux_SystimeName[] =
1521 1522
     "hpux_systime";

korbb's avatar
korbb committed
1523 1524 1525 1526
/*
 *  File name selection pattern
 */
tSCC zHpux_SystimeList[] =
korbb's avatar
korbb committed
1527
  "|sys/time.h|";
korbb's avatar
korbb committed
1528 1529 1530 1531 1532 1533
/*
 *  Machine/OS name selection pattern
 */
#define apzHpux_SystimeMachs (const char**)NULL

/*
korbb's avatar
korbb committed
1534
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
1535 1536 1537 1538 1539 1540
 */
tSCC zHpux_SystimeSelect0[] =
       "^extern struct sigevent;";

#define    HPUX_SYSTIME_TEST_CT  1
tTestDesc aHpux_SystimeTests[] = {
korbb's avatar
korbb committed
1541
  { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1542 1543 1544 1545 1546

/*
 *  Fix Command Arguments for Hpux_Systime
 */
const char* apzHpux_SystimePatch[] = { "sed",
korbb's avatar
korbb committed
1547
    "-e", "s/^extern struct sigevent;/struct sigevent;/",
korbb's avatar
korbb committed
1548 1549
    (char*)NULL };

1550 1551 1552 1553
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Hpux8_Bogus_Inlines fix
 */
1554
#define HPUX8_BOGUS_INLINES_FIXIDX       35
1555
tSCC zHpux8_Bogus_InlinesName[] =
1556 1557
     "hpux8_bogus_inlines";

1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573
/*
 *  File name selection pattern
 */
tSCC zHpux8_Bogus_InlinesList[] =
  "|math.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzHpux8_Bogus_InlinesMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zHpux8_Bogus_InlinesSelect0[] =
       "inline";

1574
#define    HPUX8_BOGUS_INLINES_TEST_CT  1
1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587
tTestDesc aHpux8_Bogus_InlinesTests[] = {
  { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Hpux8_Bogus_Inlines
 */
const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
    "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
    "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
    "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
    "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
    (char*)NULL };

1588 1589 1590 1591
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Hpux11_Uint32_C fix
 */
1592
#define HPUX11_UINT32_C_FIXIDX           36
1593
tSCC zHpux11_Uint32_CName[] =
1594 1595
     "hpux11_uint32_c";

1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622
/*
 *  File name selection pattern
 */
tSCC zHpux11_Uint32_CList[] =
  "|inttypes.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzHpux11_Uint32_CMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zHpux11_Uint32_CSelect0[] =
       "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";

#define    HPUX11_UINT32_C_TEST_CT  1
tTestDesc aHpux11_Uint32_CTests[] = {
  { TT_EGREP,    zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Hpux11_Uint32_C
 */
const char* apzHpux11_Uint32_CPatch[] = { "sed",
    "-e", "s/^#define UINT32_C(__c)\\([ \t]*\\)__CONCAT__(__CONCAT_U__(__c),l)/#define UINT32_C(__c)\\1__CONCAT__(__c,ul)/",
    (char*)NULL };

korbb's avatar
korbb committed
1623 1624
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
1625
 *  Description of Isc_Omits_With_Stdc fix
korbb's avatar
korbb committed
1626
 */
1627
#define ISC_OMITS_WITH_STDC_FIXIDX       37
1628
tSCC zIsc_Omits_With_StdcName[] =
1629 1630
     "isc_omits_with_stdc";

korbb's avatar
korbb committed
1631 1632 1633
/*
 *  File name selection pattern
 */
1634
tSCC zIsc_Omits_With_StdcList[] =
korbb's avatar
korbb committed
1635
  "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
korbb's avatar
korbb committed
1636 1637 1638
/*
 *  Machine/OS name selection pattern
 */
1639
#define apzIsc_Omits_With_StdcMachs (const char**)NULL
korbb's avatar
korbb committed
1640 1641

/*
1642
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
1643
 */
1644
tSCC zIsc_Omits_With_StdcSelect0[] =
korbb's avatar
korbb committed
1645
       "!defined(__STDC__) && !defined(_POSIX_SOURCE)";
korbb's avatar
korbb committed
1646

1647 1648 1649
#define    ISC_OMITS_WITH_STDC_TEST_CT  1
tTestDesc aIsc_Omits_With_StdcTests[] = {
  { TT_EGREP,    zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1650 1651

/*
1652
 *  Fix Command Arguments for Isc_Omits_With_Stdc
korbb's avatar
korbb committed
1653
 */
1654
const char* apzIsc_Omits_With_StdcPatch[] = { "sed",
korbb's avatar
korbb committed
1655
    "-e", "s/!defined(__STDC__) && !defined(_POSIX_SOURCE)/!defined(_POSIX_SOURCE)/",
korbb's avatar
korbb committed
1656 1657
    (char*)NULL };

1658 1659 1660 1661
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Io_Use_Quotes fix
 */
1662
#define IO_USE_QUOTES_FIXIDX             38
1663
tSCC zIo_Use_QuotesName[] =
1664 1665
     "io_use_quotes";

1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687
/*
 *  File name selection pattern
 */
#define zIo_Use_QuotesList (char*)NULL
/*
 *  Machine/OS name selection pattern
 */
#define apzIo_Use_QuotesMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zIo_Use_QuotesSelect0[] =
       "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";

#define    IO_USE_QUOTES_TEST_CT  1
tTestDesc aIo_Use_QuotesTests[] = {
  { TT_EGREP,    zIo_Use_QuotesSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Io_Use_Quotes
 */
korbb's avatar
korbb committed
1688 1689
const char* apzIo_Use_QuotesPatch[] = {
    "IO_use",
1690 1691
    (char*)NULL };

korbb's avatar
korbb committed
1692 1693
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1694
 *  Description of Io_Def_Quotes fix
korbb's avatar
korbb committed
1695
 */
1696
#define IO_DEF_QUOTES_FIXIDX             39
korbb's avatar
korbb committed
1697
tSCC zIo_Def_QuotesName[] =
1698 1699
     "io_def_quotes";

korbb's avatar
korbb committed
1700 1701 1702 1703 1704 1705 1706 1707 1708 1709
/*
 *  File name selection pattern
 */
#define zIo_Def_QuotesList (char*)NULL
/*
 *  Machine/OS name selection pattern
 */
#define apzIo_Def_QuotesMachs (const char**)NULL

/*
korbb's avatar
korbb committed
1710
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
1711 1712
 */
tSCC zIo_Def_QuotesSelect0[] =
1713
       "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\(([a-zA-Z]).*'\\1'";
korbb's avatar
korbb committed
1714 1715 1716

#define    IO_DEF_QUOTES_TEST_CT  1
tTestDesc aIo_Def_QuotesTests[] = {
korbb's avatar
korbb committed
1717
  { TT_EGREP,    zIo_Def_QuotesSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1718 1719 1720 1721

/*
 *  Fix Command Arguments for Io_Def_Quotes
 */
korbb's avatar
korbb committed
1722 1723
const char* apzIo_Def_QuotesPatch[] = {
    "IO_defn",
1724 1725 1726 1727 1728 1729
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Ctrl_Use_Quotes fix
 */
1730
#define CTRL_USE_QUOTES_FIXIDX           40
1731
tSCC zCtrl_Use_QuotesName[] =
1732 1733
     "ctrl_use_quotes";

1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755
/*
 *  File name selection pattern
 */
#define zCtrl_Use_QuotesList (char*)NULL
/*
 *  Machine/OS name selection pattern
 */
#define apzCtrl_Use_QuotesMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zCtrl_Use_QuotesSelect0[] =
       "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";

#define    CTRL_USE_QUOTES_TEST_CT  1
tTestDesc aCtrl_Use_QuotesTests[] = {
  { TT_EGREP,    zCtrl_Use_QuotesSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Ctrl_Use_Quotes
 */
korbb's avatar
korbb committed
1756 1757
const char* apzCtrl_Use_QuotesPatch[] = {
    "CTRL_use",
korbb's avatar
korbb committed
1758 1759 1760 1761
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
1762
 *  Description of Ctrl_Def_Quotes fix
korbb's avatar
korbb committed
1763
 */
1764
#define CTRL_DEF_QUOTES_FIXIDX           41
1765
tSCC zCtrl_Def_QuotesName[] =
1766 1767
     "ctrl_def_quotes";

korbb's avatar
korbb committed
1768 1769 1770
/*
 *  File name selection pattern
 */
1771
#define zCtrl_Def_QuotesList (char*)NULL
korbb's avatar
korbb committed
1772 1773 1774
/*
 *  Machine/OS name selection pattern
 */
1775
#define apzCtrl_Def_QuotesMachs (const char**)NULL
korbb's avatar
korbb committed
1776 1777

/*
korbb's avatar
korbb committed
1778
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
1779
 */
1780 1781
tSCC zCtrl_Def_QuotesSelect0[] =
       "define[ \t]+[A-Z0-9_]+CTRL\\(([a-zA-Z]).*'\\1'";
korbb's avatar
korbb committed
1782

1783 1784 1785
#define    CTRL_DEF_QUOTES_TEST_CT  1
tTestDesc aCtrl_Def_QuotesTests[] = {
  { TT_EGREP,    zCtrl_Def_QuotesSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1786 1787

/*
1788
 *  Fix Command Arguments for Ctrl_Def_Quotes
korbb's avatar
korbb committed
1789
 */
korbb's avatar
korbb committed
1790 1791
const char* apzCtrl_Def_QuotesPatch[] = {
    "CTRL_defn",
korbb's avatar
korbb committed
1792 1793 1794 1795
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1796
 *  Description of Ip_Missing_Semi fix
korbb's avatar
korbb committed
1797
 */
1798
#define IP_MISSING_SEMI_FIXIDX           42
korbb's avatar
korbb committed
1799
tSCC zIp_Missing_SemiName[] =
1800 1801
     "ip_missing_semi";

korbb's avatar
korbb committed
1802 1803 1804 1805
/*
 *  File name selection pattern
 */
tSCC zIp_Missing_SemiList[] =
korbb's avatar
korbb committed
1806
  "|netinet/ip.h|";
korbb's avatar
korbb committed
1807 1808 1809 1810
/*
 *  Machine/OS name selection pattern
 */
#define apzIp_Missing_SemiMachs (const char**)NULL
1811 1812 1813 1814 1815 1816 1817 1818 1819 1820

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zIp_Missing_SemiSelect0[] =
       "}$";

#define    IP_MISSING_SEMI_TEST_CT  1
tTestDesc aIp_Missing_SemiTests[] = {
  { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1821 1822 1823 1824 1825

/*
 *  Fix Command Arguments for Ip_Missing_Semi
 */
const char* apzIp_Missing_SemiPatch[] = { "sed",
korbb's avatar
korbb committed
1826
    "-e", "/^struct/,/^};/s/}$/};/",
korbb's avatar
korbb committed
1827 1828 1829 1830
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1831
 *  Description of Irix_Multiline_Cmnt fix
korbb's avatar
korbb committed
1832
 */
1833
#define IRIX_MULTILINE_CMNT_FIXIDX       43
korbb's avatar
korbb committed
1834
tSCC zIrix_Multiline_CmntName[] =
1835 1836
     "irix_multiline_cmnt";

korbb's avatar
korbb committed
1837 1838 1839 1840
/*
 *  File name selection pattern
 */
tSCC zIrix_Multiline_CmntList[] =
korbb's avatar
korbb committed
1841
  "|sys/types.h|";
korbb's avatar
korbb committed
1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852
/*
 *  Machine/OS name selection pattern
 */
#define apzIrix_Multiline_CmntMachs (const char**)NULL
#define IRIX_MULTILINE_CMNT_TEST_CT  0
#define aIrix_Multiline_CmntTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Irix_Multiline_Cmnt
 */
const char* apzIrix_Multiline_CmntPatch[] = { "sed",
korbb's avatar
korbb committed
1853 1854
    "-e", "s@type of the result@type of the result */@",
    "-e", "s@of the sizeof@/* of the sizeof@",
korbb's avatar
korbb committed
1855 1856 1857 1858
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1859
 *  Description of Irix_Sockaddr fix
korbb's avatar
korbb committed
1860
 */
1861
#define IRIX_SOCKADDR_FIXIDX             44
korbb's avatar
korbb committed
1862
tSCC zIrix_SockaddrName[] =
1863 1864
     "irix_sockaddr";

korbb's avatar
korbb committed
1865 1866 1867 1868
/*
 *  File name selection pattern
 */
tSCC zIrix_SockaddrList[] =
korbb's avatar
korbb committed
1869
  "|rpc/auth.h|";
korbb's avatar
korbb committed
1870 1871 1872 1873 1874 1875
/*
 *  Machine/OS name selection pattern
 */
#define apzIrix_SockaddrMachs (const char**)NULL

/*
korbb's avatar
korbb committed
1876
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
1877 1878 1879 1880
 */
tSCC zIrix_SockaddrSelect0[] =
       "authdes_create.*struct sockaddr";

1881 1882 1883 1884 1885 1886 1887
/*
 *  content bypass pattern - skip fix if pattern found
 */
tSCC zIrix_SockaddrBypass0[] =
       "<sys/socket.h>";

#define    IRIX_SOCKADDR_TEST_CT  2
korbb's avatar
korbb committed
1888
tTestDesc aIrix_SockaddrTests[] = {
1889
  { TT_NEGREP,   zIrix_SockaddrBypass0, (regex_t*)NULL },
korbb's avatar
korbb committed
1890
  { TT_EGREP,    zIrix_SockaddrSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1891 1892 1893 1894 1895

/*
 *  Fix Command Arguments for Irix_Sockaddr
 */
const char* apzIrix_SockaddrPatch[] = { "sed",
korbb's avatar
korbb committed
1896 1897
    "-e", "/authdes_create.*struct sockaddr/i\\\n\
struct sockaddr;\n",
korbb's avatar
korbb committed
1898 1899 1900 1901
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1902
 *  Description of Irix_Struct__File fix
korbb's avatar
korbb committed
1903
 */
1904
#define IRIX_STRUCT__FILE_FIXIDX         45
korbb's avatar
korbb committed
1905
tSCC zIrix_Struct__FileName[] =
1906 1907
     "irix_struct__file";

korbb's avatar
korbb committed
1908 1909 1910 1911
/*
 *  File name selection pattern
 */
tSCC zIrix_Struct__FileList[] =
korbb's avatar
korbb committed
1912
  "|rpc/xdr.h|";
korbb's avatar
korbb committed
1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923
/*
 *  Machine/OS name selection pattern
 */
#define apzIrix_Struct__FileMachs (const char**)NULL
#define IRIX_STRUCT__FILE_TEST_CT  0
#define aIrix_Struct__FileTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Irix_Struct__File
 */
const char* apzIrix_Struct__FilePatch[] = { "sed",
korbb's avatar
korbb committed
1924 1925
    "-e", "/xdrstdio_create.*struct __file_s/i\\\n\
struct __file_s;\n",
korbb's avatar
korbb committed
1926 1927 1928 1929
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1930
 *  Description of Irix_Asm_Apostrophe fix
1931
 */
1932
#define IRIX_ASM_APOSTROPHE_FIXIDX       46
1933
tSCC zIrix_Asm_ApostropheName[] =
1934 1935
     "irix_asm_apostrophe";

1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953
/*
 *  File name selection pattern
 */
tSCC zIrix_Asm_ApostropheList[] =
  "|sys/asm.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzIrix_Asm_ApostropheMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zIrix_Asm_ApostropheSelect0[] =
       "^[ \t]*#.*[Ww]e're";

#define    IRIX_ASM_APOSTROPHE_TEST_CT  1
tTestDesc aIrix_Asm_ApostropheTests[] = {
korbb's avatar
korbb committed
1954
  { TT_EGREP,    zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
1955 1956 1957 1958 1959 1960 1961 1962 1963 1964

/*
 *  Fix Command Arguments for Irix_Asm_Apostrophe
 */
const char* apzIrix_Asm_ApostrophePatch[] = { "sed",
    "-e", "/^[ \t]*#/s/\\([Ww]e\\)'re/\\1 are/",
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1965
 *  Description of Isc_Fmod fix
korbb's avatar
korbb committed
1966
 */
1967
#define ISC_FMOD_FIXIDX                  47
korbb's avatar
korbb committed
1968
tSCC zIsc_FmodName[] =
1969 1970
     "isc_fmod";

korbb's avatar
korbb committed
1971 1972 1973 1974
/*
 *  File name selection pattern
 */
tSCC zIsc_FmodList[] =
korbb's avatar
korbb committed
1975
  "|math.h|";
korbb's avatar
korbb committed
1976 1977 1978 1979 1980 1981
/*
 *  Machine/OS name selection pattern
 */
#define apzIsc_FmodMachs (const char**)NULL

/*
korbb's avatar
korbb committed
1982
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
1983 1984 1985 1986 1987 1988
 */
tSCC zIsc_FmodSelect0[] =
       "fmod\\(double\\)";

#define    ISC_FMOD_TEST_CT  1
tTestDesc aIsc_FmodTests[] = {
korbb's avatar
korbb committed
1989
  { TT_EGREP,    zIsc_FmodSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1990 1991 1992 1993 1994

/*
 *  Fix Command Arguments for Isc_Fmod
 */
const char* apzIsc_FmodPatch[] = { "sed",
korbb's avatar
korbb committed
1995
    "-e", "s/fmod(double)/fmod(double, double)/",
korbb's avatar
korbb committed
1996 1997 1998 1999
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2000
 *  Description of Motorola_Nested fix
korbb's avatar
korbb committed
2001
 */
2002
#define MOTOROLA_NESTED_FIXIDX           48
korbb's avatar
korbb committed
2003
tSCC zMotorola_NestedName[] =
2004 2005
     "motorola_nested";

korbb's avatar
korbb committed
2006 2007 2008 2009
/*
 *  File name selection pattern
 */
tSCC zMotorola_NestedList[] =
korbb's avatar
korbb committed
2010
  "|limits.h|sys/limits.h|";
korbb's avatar
korbb committed
2011 2012 2013
/*
 *  Machine/OS name selection pattern
 */
korbb's avatar
korbb committed
2014 2015 2016
tSCC* apzMotorola_NestedMachs[] = {
        "m68k-motorola-sysv*",
        (const char*)NULL };
korbb's avatar
korbb committed
2017 2018 2019 2020 2021 2022 2023
#define MOTOROLA_NESTED_TEST_CT  0
#define aMotorola_NestedTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Motorola_Nested
 */
const char* apzMotorola_NestedPatch[] = { "sed",
korbb's avatar
korbb committed
2024 2025
    "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
    "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.40282346638528860e+38 \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
korbb's avatar
korbb committed
2026 2027 2028 2029
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2030
 *  Description of Isc_Sys_Limits fix
korbb's avatar
korbb committed
2031
 */
2032
#define ISC_SYS_LIMITS_FIXIDX            49
korbb's avatar
korbb committed
2033
tSCC zIsc_Sys_LimitsName[] =
2034 2035
     "isc_sys_limits";

korbb's avatar
korbb committed
2036 2037 2038 2039
/*
 *  File name selection pattern
 */
tSCC zIsc_Sys_LimitsList[] =
korbb's avatar
korbb committed
2040
  "|sys/limits.h|";
korbb's avatar
korbb committed
2041 2042 2043 2044 2045 2046
/*
 *  Machine/OS name selection pattern
 */
#define apzIsc_Sys_LimitsMachs (const char**)NULL

/*
korbb's avatar
korbb committed
2047
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
2048 2049 2050 2051 2052 2053
 */
tSCC zIsc_Sys_LimitsSelect0[] =
       "CHILD_MAX";

#define    ISC_SYS_LIMITS_TEST_CT  1
tTestDesc aIsc_Sys_LimitsTests[] = {
korbb's avatar
korbb committed
2054
  { TT_EGREP,    zIsc_Sys_LimitsSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2055 2056 2057 2058 2059

/*
 *  Fix Command Arguments for Isc_Sys_Limits
 */
const char* apzIsc_Sys_LimitsPatch[] = { "sed",
korbb's avatar
korbb committed
2060 2061
    "-e", "/CHILD_MAX/s,/\\* Max, Max,",
    "-e", "/OPEN_MAX/s,/\\* Max, Max,",
korbb's avatar
korbb committed
2062 2063 2064 2065
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2066
 *  Description of Kandr_Concat fix
korbb's avatar
korbb committed
2067
 */
2068
#define KANDR_CONCAT_FIXIDX              50
korbb's avatar
korbb committed
2069
tSCC zKandr_ConcatName[] =
2070 2071
     "kandr_concat";

korbb's avatar
korbb committed
2072 2073 2074 2075
/*
 *  File name selection pattern
 */
tSCC zKandr_ConcatList[] =
korbb's avatar
korbb committed
2076
  "|sparc/asm_linkage.h|sun3/asm_linkage.h|sun3x/asm_linkage.h|sun4/asm_linkage.h|sun4c/asm_linkage.h|sun4m/asm_linkage.h|sun4c/debug/asm_linkage.h|sun4m/debug/asm_linkage.h|arm/as_support.h|arm/mc_type.h|arm/xcb.h|dev/chardefmac.h|dev/ps_irq.h|dev/screen.h|dev/scsi.h|sys/tty.h|Xm.acorn/XmP.h|bsd43/bsd43_.h|";
korbb's avatar
korbb committed
2077 2078 2079 2080 2081 2082
/*
 *  Machine/OS name selection pattern
 */
#define apzKandr_ConcatMachs (const char**)NULL

/*
korbb's avatar
korbb committed
2083
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
2084 2085 2086 2087 2088 2089
 */
tSCC zKandr_ConcatSelect0[] =
       "/\\*\\*/";

#define    KANDR_CONCAT_TEST_CT  1
tTestDesc aKandr_ConcatTests[] = {
korbb's avatar
korbb committed
2090
  { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2091 2092 2093 2094 2095

/*
 *  Fix Command Arguments for Kandr_Concat
 */
const char* apzKandr_ConcatPatch[] = { "sed",
korbb's avatar
korbb committed
2096
    "-e", "s|/\\*\\*/|##|g",
korbb's avatar
korbb committed
2097 2098 2099 2100
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2101
 *  Description of Limits_Ifndefs fix
korbb's avatar
korbb committed
2102
 */
2103
#define LIMITS_IFNDEFS_FIXIDX            51
korbb's avatar
korbb committed
2104
tSCC zLimits_IfndefsName[] =
2105 2106
     "limits_ifndefs";

korbb's avatar
korbb committed
2107 2108 2109 2110
/*
 *  File name selection pattern
 */
tSCC zLimits_IfndefsList[] =
law's avatar
 
law committed
2111
  "|limits.h|sys/limits.h|";
korbb's avatar
korbb committed
2112 2113 2114 2115 2116 2117
/*
 *  Machine/OS name selection pattern
 */
#define apzLimits_IfndefsMachs (const char**)NULL

/*
korbb's avatar
korbb committed
2118
 *  content bypass pattern - skip fix if pattern found
korbb's avatar
korbb committed
2119 2120 2121 2122 2123 2124
 */
tSCC zLimits_IfndefsBypass0[] =
       "ifndef[ \t]+FLT_MIN";

#define    LIMITS_IFNDEFS_TEST_CT  1
tTestDesc aLimits_IfndefsTests[] = {
korbb's avatar
korbb committed
2125
  { TT_NEGREP,   zLimits_IfndefsBypass0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2126 2127 2128 2129 2130

/*
 *  Fix Command Arguments for Limits_Ifndefs
 */
const char* apzLimits_IfndefsPatch[] = { "sed",
korbb's avatar
korbb committed
2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154
    "-e", "/[ \t]FLT_MIN[ \t]/i\\\n\
#ifndef FLT_MIN\n",
    "-e", "/[ \t]FLT_MIN[ \t]/a\\\n\
#endif\n",
    "-e", "/[ \t]FLT_MAX[ \t]/i\\\n\
#ifndef FLT_MAX\n",
    "-e", "/[ \t]FLT_MAX[ \t]/a\\\n\
#endif\n",
    "-e", "/[ \t]FLT_DIG[ \t]/i\\\n\
#ifndef FLT_DIG\n",
    "-e", "/[ \t]FLT_DIG[ \t]/a\\\n\
#endif\n",
    "-e", "/[ \t]DBL_MIN[ \t]/i\\\n\
#ifndef DBL_MIN\n",
    "-e", "/[ \t]DBL_MIN[ \t]/a\\\n\
#endif\n",
    "-e", "/[ \t]DBL_MAX[ \t]/i\\\n\
#ifndef DBL_MAX\n",
    "-e", "/[ \t]DBL_MAX[ \t]/a\\\n\
#endif\n",
    "-e", "/[ \t]DBL_DIG[ \t]/i\\\n\
#ifndef DBL_DIG\n",
    "-e", "/[ \t]DBL_DIG[ \t]/a\\\n\
#endif\n",
korbb's avatar
korbb committed
2155
    "-e", "/^\\(\\/\\*#define\tHUGE_VAL\t3\\.[0-9e+]* *\\)\\/\\*/s//\\1/",
korbb's avatar
korbb committed
2156 2157 2158 2159
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2160
 *  Description of Lynx_Void_Int fix
korbb's avatar
korbb committed
2161
 */
2162
#define LYNX_VOID_INT_FIXIDX             52
korbb's avatar
korbb committed
2163
tSCC zLynx_Void_IntName[] =
2164 2165
     "lynx_void_int";

korbb's avatar
korbb committed
2166 2167 2168 2169
/*
 *  File name selection pattern
 */
tSCC zLynx_Void_IntList[] =
korbb's avatar
korbb committed
2170
  "|curses.h|";
korbb's avatar
korbb committed
2171 2172 2173 2174 2175 2176
/*
 *  Machine/OS name selection pattern
 */
#define apzLynx_Void_IntMachs (const char**)NULL

/*
korbb's avatar
korbb committed
2177
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
2178 2179 2180 2181 2182 2183
 */
tSCC zLynx_Void_IntSelect0[] =
       "#[ \t]*define[ \t]+void[ \t]+int";

#define    LYNX_VOID_INT_TEST_CT  1
tTestDesc aLynx_Void_IntTests[] = {
korbb's avatar
korbb committed
2184
  { TT_EGREP,    zLynx_Void_IntSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2185 2186 2187 2188 2189

/*
 *  Fix Command Arguments for Lynx_Void_Int
 */
const char* apzLynx_Void_IntPatch[] = { "sed",
korbb's avatar
korbb committed
2190
    "-e", "/#[ \t]*define[ \t][ \t]*void[ \t]int/d",
korbb's avatar
korbb committed
2191 2192 2193 2194
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2195
 *  Description of Lynxos_Fcntl_Proto fix
korbb's avatar
korbb committed
2196
 */
2197
#define LYNXOS_FCNTL_PROTO_FIXIDX        53
korbb's avatar
korbb committed
2198
tSCC zLynxos_Fcntl_ProtoName[] =
2199 2200
     "lynxos_fcntl_proto";

korbb's avatar
korbb committed
2201 2202 2203 2204
/*
 *  File name selection pattern
 */
tSCC zLynxos_Fcntl_ProtoList[] =
korbb's avatar
korbb committed
2205
  "|fcntl.h|";
korbb's avatar
korbb committed
2206 2207 2208 2209
/*
 *  Machine/OS name selection pattern
 */
#define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
korbb's avatar
korbb committed
2210 2211

/*
korbb's avatar
korbb committed
2212
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
2213 2214 2215 2216 2217 2218
 */
tSCC zLynxos_Fcntl_ProtoSelect0[] =
       "fcntl.*\\(int, int, int\\)";

#define    LYNXOS_FCNTL_PROTO_TEST_CT  1
tTestDesc aLynxos_Fcntl_ProtoTests[] = {
korbb's avatar
korbb committed
2219
  { TT_EGREP,    zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2220 2221 2222 2223 2224

/*
 *  Fix Command Arguments for Lynxos_Fcntl_Proto
 */
const char* apzLynxos_Fcntl_ProtoPatch[] = { "sed",
korbb's avatar
korbb committed
2225
    "-e", "s/\\(fcntl.*(int, int, \\)int)/\\1...)/",
korbb's avatar
korbb committed
2226 2227 2228 2229
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2230
 *  Description of M88k_Bad_Hypot_Opt fix
korbb's avatar
korbb committed
2231
 */
2232
#define M88K_BAD_HYPOT_OPT_FIXIDX        54
korbb's avatar
korbb committed
2233
tSCC zM88k_Bad_Hypot_OptName[] =
2234 2235
     "m88k_bad_hypot_opt";

korbb's avatar
korbb committed
2236 2237 2238 2239
/*
 *  File name selection pattern
 */
tSCC zM88k_Bad_Hypot_OptList[] =
korbb's avatar
korbb committed
2240
  "|math.h|";
korbb's avatar
korbb committed
2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253
/*
 *  Machine/OS name selection pattern
 */
tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
        "m88k-motorola-sysv3*",
        (const char*)NULL };
#define M88K_BAD_HYPOT_OPT_TEST_CT  0
#define aM88k_Bad_Hypot_OptTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for M88k_Bad_Hypot_Opt
 */
const char* apzM88k_Bad_Hypot_OptPatch[] = { "sed",
korbb's avatar
korbb committed
2254
    "-e", "s/extern double floor(), ceil(), fmod(), fabs();/extern double floor(), ceil(), fmod(), fabs _PARAMS((double));/",
korbb's avatar
korbb committed
2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267
    "-e", "/^extern double hypot();$/a\\\n\
\\/* Workaround a stupid Motorola optimization if one\\\n\
   of x or y is 0.0 and the other is negative!  *\\/\\\n\
#ifdef __STDC__\\\n\
static __inline__ double fake_hypot (double x, double y)\\\n\
#else\\\n\
static __inline__ double fake_hypot (x, y)\\\n\
\tdouble x, y;\\\n\
#endif\\\n\
{\\\n\
\treturn fabs (hypot (x, y));\\\n\
}\\\n\
#define hypot\tfake_hypot\n",
korbb's avatar
korbb committed
2268 2269 2270 2271
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2272
 *  Description of M88k_Bad_S_If fix
korbb's avatar
korbb committed
2273
 */
2274
#define M88K_BAD_S_IF_FIXIDX             55
korbb's avatar
korbb committed
2275
tSCC zM88k_Bad_S_IfName[] =
2276 2277
     "m88k_bad_s_if";

korbb's avatar
korbb committed
2278 2279 2280 2281
/*
 *  File name selection pattern
 */
tSCC zM88k_Bad_S_IfList[] =
korbb's avatar
korbb committed
2282
  "|sys/stat.h|";
korbb's avatar
korbb committed
2283 2284 2285 2286 2287 2288 2289 2290
/*
 *  Machine/OS name selection pattern
 */
tSCC* apzM88k_Bad_S_IfMachs[] = {
        "m88k-*-sysv3*",
        (const char*)NULL };

/*
korbb's avatar
korbb committed
2291
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
2292 2293 2294 2295 2296 2297
 */
tSCC zM88k_Bad_S_IfSelect0[] =
       "#define[ \t]+S_IS[A-Z]*(m)[ \t]";

#define    M88K_BAD_S_IF_TEST_CT  1
tTestDesc aM88k_Bad_S_IfTests[] = {
korbb's avatar
korbb committed
2298
  { TT_EGREP,    zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2299 2300 2301 2302 2303

/*
 *  Fix Command Arguments for M88k_Bad_S_If
 */
const char* apzM88k_Bad_S_IfPatch[] = { "sed",
korbb's avatar
korbb committed
2304 2305
    "-e", "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(S_IF[A-Z][A-Z][A-Z][A-Z]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/",
    "-e", "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(0[0-9]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/",
korbb's avatar
korbb committed
2306 2307 2308 2309
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2310
 *  Description of M88k_Multi_Incl fix
korbb's avatar
korbb committed
2311
 */
2312
#define M88K_MULTI_INCL_FIXIDX           56
korbb's avatar
korbb committed
2313
tSCC zM88k_Multi_InclName[] =
2314 2315
     "m88k_multi_incl";

korbb's avatar
korbb committed
2316 2317 2318 2319
/*
 *  File name selection pattern
 */
tSCC zM88k_Multi_InclList[] =
korbb's avatar
korbb committed
2320
  "|time.h|";
korbb's avatar
korbb committed
2321 2322 2323 2324 2325 2326 2327 2328
/*
 *  Machine/OS name selection pattern
 */
tSCC* apzM88k_Multi_InclMachs[] = {
        "m88k-tektronix-sysv3*",
        (const char*)NULL };

/*
korbb's avatar
korbb committed
2329
 *  content bypass pattern - skip fix if pattern found
korbb's avatar
korbb committed
2330 2331 2332 2333 2334 2335
 */
tSCC zM88k_Multi_InclBypass0[] =
       "#ifndef";

#define    M88K_MULTI_INCL_TEST_CT  1
tTestDesc aM88k_Multi_InclTests[] = {
korbb's avatar
korbb committed
2336
  { TT_NEGREP,   zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2337 2338 2339 2340 2341

/*
 *  Fix Command Arguments for M88k_Multi_Incl
 */
const char* apzM88k_Multi_InclPatch[] = { "sh", "-c",
korbb's avatar
korbb committed
2342 2343 2344 2345 2346 2347
    "echo Fixing $file, to protect against multiple inclusion. >&2\n\
      cpp_wrapper=`echo $file | sed -e 's,\\.,_,g' -e 's,/,_,g'`\n\
      echo \"#ifndef __GCC_GOT_${cpp_wrapper}_\"\n\
      echo \"#define __GCC_GOT_${cpp_wrapper}_\"\n\
      cat\n\
      echo \"#endif /* ! __GCC_GOT_${cpp_wrapper}_ */\"",
korbb's avatar
korbb committed
2348 2349
    (char*)NULL };

2350 2351 2352 2353
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Machine_Ansi_H_Va_List fix
 */
2354
#define MACHINE_ANSI_H_VA_LIST_FIXIDX    57
2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391
tSCC zMachine_Ansi_H_Va_ListName[] =
     "machine_ansi_h_va_list";

/*
 *  File name selection pattern
 */
tSCC zMachine_Ansi_H_Va_ListList[] =
  "|machine/ansi.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zMachine_Ansi_H_Va_ListSelect0[] =
       "_BSD_VA_LIST_";

/*
 *  content bypass pattern - skip fix if pattern found
 */
tSCC zMachine_Ansi_H_Va_ListBypass0[] =
       "__builtin_va_list";

#define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
  { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
  { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Machine_Ansi_H_Va_List
 */
const char* apzMachine_Ansi_H_Va_ListPatch[] = { "sed",
    "-e", "s/\\(_BSD_VA_LIST_[ \t][ \t]*\\).*$/\\1__builtin_va_list/",
    (char*)NULL };

korbb's avatar
korbb committed
2392 2393
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2394
 *  Description of Machine_Name fix
korbb's avatar
korbb committed
2395
 */
2396
#define MACHINE_NAME_FIXIDX              58
korbb's avatar
korbb committed
2397
tSCC zMachine_NameName[] =
2398 2399
     "machine_name";

korbb's avatar
korbb committed
2400 2401 2402 2403 2404 2405 2406 2407 2408 2409
/*
 *  File name selection pattern
 */
#define zMachine_NameList (char*)NULL
/*
 *  Machine/OS name selection pattern
 */
#define apzMachine_NameMachs (const char**)NULL

/*
2410
 *  perform the C function call test
korbb's avatar
korbb committed
2411
 */
2412
tSCC zMachine_NameFTst0[] = "machine_name";
korbb's avatar
korbb committed
2413 2414 2415

#define    MACHINE_NAME_TEST_CT  1
tTestDesc aMachine_NameTests[] = {
2416
  { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
korbb's avatar
korbb committed
2417 2418 2419 2420

/*
 *  Fix Command Arguments for Machine_Name
 */
korbb's avatar
korbb committed
2421 2422
const char* apzMachine_NamePatch[] = {
    "machine_name",
korbb's avatar
korbb committed
2423 2424 2425 2426
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2427
 *  Description of Math_Exception fix
korbb's avatar
korbb committed
2428
 */
2429
#define MATH_EXCEPTION_FIXIDX            59
korbb's avatar
korbb committed
2430
tSCC zMath_ExceptionName[] =
2431 2432
     "math_exception";

korbb's avatar
korbb committed
2433 2434 2435 2436
/*
 *  File name selection pattern
 */
tSCC zMath_ExceptionList[] =
korbb's avatar
korbb committed
2437
  "|math.h|";
korbb's avatar
korbb committed
2438 2439 2440 2441 2442 2443
/*
 *  Machine/OS name selection pattern
 */
#define apzMath_ExceptionMachs (const char**)NULL

/*
korbb's avatar
korbb committed
2444
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
2445 2446 2447 2448
 */
tSCC zMath_ExceptionSelect0[] =
       "struct exception";

2449 2450 2451 2452
/*
 *  content bypass pattern - skip fix if pattern found
 */
tSCC zMath_ExceptionBypass0[] =
2453
       "We have a problem when using C\\+\\+";
2454 2455

#define    MATH_EXCEPTION_TEST_CT  2
korbb's avatar
korbb committed
2456
tTestDesc aMath_ExceptionTests[] = {
2457
  { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
korbb's avatar
korbb committed
2458
  { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2459 2460 2461 2462 2463

/*
 *  Fix Command Arguments for Math_Exception
 */
const char* apzMath_ExceptionPatch[] = { "sed",
2464
    "-e", "1i\\\n\
korbb's avatar
korbb committed
2465 2466 2467
#ifdef __cplusplus\\\n\
#define exception __math_exception\\\n\
#endif\n",
2468
    "-e", "$a\\\n\
korbb's avatar
korbb committed
2469 2470 2471
#ifdef __cplusplus\\\n\
#undef exception\\\n\
#endif\n",
korbb's avatar
korbb committed
2472 2473 2474 2475
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
2476
 *  Description of Math_Huge_Val_From_Dbl_Max fix
korbb's avatar
korbb committed
2477
 */
2478
#define MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX 60
2479
tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2480 2481
     "math_huge_val_from_dbl_max";

korbb's avatar
korbb committed
2482 2483 2484
/*
 *  File name selection pattern
 */
2485
tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
korbb's avatar
korbb committed
2486
  "|math.h|";
korbb's avatar
korbb committed
2487 2488 2489
/*
 *  Machine/OS name selection pattern
 */
2490 2491 2492 2493 2494 2495 2496
#define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
       "define[ \t]*HUGE_VAL[ \t]*DBL_MAX";
korbb's avatar
korbb committed
2497 2498

/*
2499
 *  content bypass pattern - skip fix if pattern found
korbb's avatar
korbb committed
2500
 */
2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512
tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
       "define[ \t]*DBL_MAX";

#define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
  { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
  { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
 */
const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
korbb's avatar
korbb committed
2513 2514
    "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h 2>/dev/null`\n\
\n\
2515 2516 2517 2518 2519 2520 2521 2522 2523 2524
\tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
\tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s/DBL_MAX/'\"$dbl_max_def/\"\n\
\telse cat\n\
\tfi",
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Math_Huge_Val_Ifndef fix
 */
2525
#define MATH_HUGE_VAL_IFNDEF_FIXIDX      61
2526
tSCC zMath_Huge_Val_IfndefName[] =
2527 2528
     "math_huge_val_ifndef";

2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556
/*
 *  File name selection pattern
 */
tSCC zMath_Huge_Val_IfndefList[] =
  "|math/math.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzMath_Huge_Val_IfndefMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zMath_Huge_Val_IfndefSelect0[] =
       "define[ \t]*HUGE_VAL";

#define    MATH_HUGE_VAL_IFNDEF_TEST_CT  1
tTestDesc aMath_Huge_Val_IfndefTests[] = {
  { TT_EGREP,    zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Math_Huge_Val_Ifndef
 */
const char* apzMath_Huge_Val_IfndefPatch[] = { "sed",
    "-e", "/define[ \t]HUGE_VAL[ \t]/i\\\n\
#ifndef HUGE_VAL\n",
    "-e", "/define[ \t]HUGE_VAL[ \t]/a\\\n\
#endif\n",
korbb's avatar
korbb committed
2557 2558 2559 2560
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2561
 *  Description of Nested_Comment fix
korbb's avatar
korbb committed
2562
 */
2563
#define NESTED_COMMENT_FIXIDX            62
korbb's avatar
korbb committed
2564
tSCC zNested_CommentName[] =
2565 2566
     "nested_comment";

korbb's avatar
korbb committed
2567 2568 2569 2570
/*
 *  File name selection pattern
 */
tSCC zNested_CommentList[] =
korbb's avatar
korbb committed
2571
  "|rpc/rpc.h|";
korbb's avatar
korbb committed
2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582
/*
 *  Machine/OS name selection pattern
 */
#define apzNested_CommentMachs (const char**)NULL
#define NESTED_COMMENT_TEST_CT  0
#define aNested_CommentTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Nested_Comment
 */
const char* apzNested_CommentPatch[] = { "sed",
korbb's avatar
korbb committed
2583
    "-e", "s@^\\(/\\*.*rpc/auth_des.h>.*\\)/\\*@\\1*/ /*@",
korbb's avatar
korbb committed
2584 2585 2586 2587
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2588
 *  Description of News_Os_Recursion fix
korbb's avatar
korbb committed
2589
 */
2590
#define NEWS_OS_RECURSION_FIXIDX         63
korbb's avatar
korbb committed
2591
tSCC zNews_Os_RecursionName[] =
2592 2593
     "news_os_recursion";

korbb's avatar
korbb committed
2594 2595 2596 2597
/*
 *  File name selection pattern
 */
tSCC zNews_Os_RecursionList[] =
korbb's avatar
korbb committed
2598
  "|stdlib.h|";
korbb's avatar
korbb committed
2599 2600 2601 2602 2603 2604
/*
 *  Machine/OS name selection pattern
 */
#define apzNews_Os_RecursionMachs (const char**)NULL

/*
korbb's avatar
korbb committed
2605
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
2606 2607 2608 2609 2610 2611
 */
tSCC zNews_Os_RecursionSelect0[] =
       "#include <stdlib.h>";

#define    NEWS_OS_RECURSION_TEST_CT  1
tTestDesc aNews_Os_RecursionTests[] = {
korbb's avatar
korbb committed
2612
  { TT_EGREP,    zNews_Os_RecursionSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2613 2614 2615 2616 2617

/*
 *  Fix Command Arguments for News_Os_Recursion
 */
const char* apzNews_Os_RecursionPatch[] = { "sed",
korbb's avatar
korbb committed
2618 2619 2620 2621
    "-e", "/^#include <stdlib.h>/i\\\n\
#ifdef BOGUS_RECURSION\n",
    "-e", "/^#include <stdlib.h>/a\\\n\
#endif\n",
korbb's avatar
korbb committed
2622 2623 2624 2625
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2626
 *  Description of Next_Math_Prefix fix
korbb's avatar
korbb committed
2627
 */
2628
#define NEXT_MATH_PREFIX_FIXIDX          64
korbb's avatar
korbb committed
2629
tSCC zNext_Math_PrefixName[] =
2630 2631
     "next_math_prefix";

korbb's avatar
korbb committed
2632 2633 2634 2635
/*
 *  File name selection pattern
 */
tSCC zNext_Math_PrefixList[] =
korbb's avatar
korbb committed
2636
  "|ansi/math.h|";
korbb's avatar
korbb committed
2637 2638 2639 2640 2641 2642
/*
 *  Machine/OS name selection pattern
 */
#define apzNext_Math_PrefixMachs (const char**)NULL

/*
korbb's avatar
korbb committed
2643
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
2644 2645 2646 2647 2648 2649
 */
tSCC zNext_Math_PrefixSelect0[] =
       "^extern.*double.*__const__.*";

#define    NEXT_MATH_PREFIX_TEST_CT  1
tTestDesc aNext_Math_PrefixTests[] = {
korbb's avatar
korbb committed
2650
  { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2651 2652 2653 2654 2655

/*
 *  Fix Command Arguments for Next_Math_Prefix
 */
const char* apzNext_Math_PrefixPatch[] = { "sed",
korbb's avatar
korbb committed
2656 2657 2658 2659 2660
    "-e", "/^extern.*double.*__const__.*sqrt(/s/__const__//",
    "-e", "/^extern.*double.*__const__.*fabs(/s/__const__//",
    "-e", "/^extern.*double.*__const__.*cos(/s/__const__//",
    "-e", "/^extern.*double.*__const__.*hypot(/s/__const__//",
    "-e", "/^extern.*double.*__const__.*sin(/s/__const__//",
korbb's avatar
korbb committed
2661 2662 2663 2664
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2665
 *  Description of Next_Template fix
korbb's avatar
korbb committed
2666
 */
2667
#define NEXT_TEMPLATE_FIXIDX             65
korbb's avatar
korbb committed
2668
tSCC zNext_TemplateName[] =
2669 2670
     "next_template";

korbb's avatar
korbb committed
2671 2672 2673 2674
/*
 *  File name selection pattern
 */
tSCC zNext_TemplateList[] =
korbb's avatar
korbb committed
2675
  "|bsd/libc.h|";
korbb's avatar
korbb committed
2676 2677 2678 2679 2680 2681
/*
 *  Machine/OS name selection pattern
 */
#define apzNext_TemplateMachs (const char**)NULL

/*
korbb's avatar
korbb committed
2682
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
2683 2684 2685 2686 2687 2688
 */
tSCC zNext_TemplateSelect0[] =
       "template";

#define    NEXT_TEMPLATE_TEST_CT  1
tTestDesc aNext_TemplateTests[] = {
korbb's avatar
korbb committed
2689
  { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2690 2691 2692 2693 2694

/*
 *  Fix Command Arguments for Next_Template
 */
const char* apzNext_TemplatePatch[] = { "sed",
korbb's avatar
korbb committed
2695 2696
    "-e", "/\\(.*template\\)/s/template//",
    "-e", "/extern.*volatile.*void.*abort/s/volatile//",
korbb's avatar
korbb committed
2697 2698 2699 2700
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2701
 *  Description of Next_Volitile fix
korbb's avatar
korbb committed
2702
 */
2703
#define NEXT_VOLITILE_FIXIDX             66
korbb's avatar
korbb committed
2704
tSCC zNext_VolitileName[] =
2705 2706
     "next_volitile";

korbb's avatar
korbb committed
2707 2708 2709 2710
/*
 *  File name selection pattern
 */
tSCC zNext_VolitileList[] =
korbb's avatar
korbb committed
2711
  "|ansi/stdlib.h|";
korbb's avatar
korbb committed
2712 2713 2714 2715 2716 2717
/*
 *  Machine/OS name selection pattern
 */
#define apzNext_VolitileMachs (const char**)NULL

/*
korbb's avatar
korbb committed
2718
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
2719 2720 2721 2722 2723 2724
 */
tSCC zNext_VolitileSelect0[] =
       "volatile";

#define    NEXT_VOLITILE_TEST_CT  1
tTestDesc aNext_VolitileTests[] = {
korbb's avatar
korbb committed
2725
  { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2726 2727 2728 2729 2730

/*
 *  Fix Command Arguments for Next_Volitile
 */
const char* apzNext_VolitilePatch[] = { "sed",
korbb's avatar
korbb committed
2731 2732
    "-e", "/extern.*volatile.*void.*exit/s/volatile//",
    "-e", "/extern.*volatile.*void.*abort/s/volatile//",
korbb's avatar
korbb committed
2733 2734 2735 2736
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2737
 *  Description of Next_Wait_Union fix
korbb's avatar
korbb committed
2738
 */
2739
#define NEXT_WAIT_UNION_FIXIDX           67
korbb's avatar
korbb committed
2740
tSCC zNext_Wait_UnionName[] =
2741 2742
     "next_wait_union";

korbb's avatar
korbb committed
2743 2744 2745 2746
/*
 *  File name selection pattern
 */
tSCC zNext_Wait_UnionList[] =
korbb's avatar
korbb committed
2747
  "|sys/wait.h|";
korbb's avatar
korbb committed
2748 2749 2750 2751 2752 2753
/*
 *  Machine/OS name selection pattern
 */
#define apzNext_Wait_UnionMachs (const char**)NULL

/*
korbb's avatar
korbb committed
2754
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
2755 2756 2757 2758 2759 2760
 */
tSCC zNext_Wait_UnionSelect0[] =
       "wait\\(union wait";

#define    NEXT_WAIT_UNION_TEST_CT  1
tTestDesc aNext_Wait_UnionTests[] = {
korbb's avatar
korbb committed
2761
  { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2762 2763 2764 2765 2766

/*
 *  Fix Command Arguments for Next_Wait_Union
 */
const char* apzNext_Wait_UnionPatch[] = { "sed",
korbb's avatar
korbb committed
2767
    "-e", "s@wait(union wait@wait(void@",
korbb's avatar
korbb committed
2768 2769 2770 2771
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2772
 *  Description of Nodeent_Syntax fix
korbb's avatar
korbb committed
2773
 */
2774
#define NODEENT_SYNTAX_FIXIDX            68
korbb's avatar
korbb committed
2775
tSCC zNodeent_SyntaxName[] =
2776 2777
     "nodeent_syntax";

korbb's avatar
korbb committed
2778 2779 2780 2781
/*
 *  File name selection pattern
 */
tSCC zNodeent_SyntaxList[] =
korbb's avatar
korbb committed
2782
  "|netdnet/dnetdb.h|";
korbb's avatar
korbb committed
2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793
/*
 *  Machine/OS name selection pattern
 */
#define apzNodeent_SyntaxMachs (const char**)NULL
#define NODEENT_SYNTAX_TEST_CT  0
#define aNodeent_SyntaxTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Nodeent_Syntax
 */
const char* apzNodeent_SyntaxPatch[] = { "sed",
korbb's avatar
korbb committed
2794
    "-e", "s/char.*na_addr *$/char *na_addr;/",
korbb's avatar
korbb committed
2795 2796 2797 2798
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2799
 *  Description of Osf_Namespace_A fix
korbb's avatar
korbb committed
2800
 */
2801
#define OSF_NAMESPACE_A_FIXIDX           69
korbb's avatar
korbb committed
2802
tSCC zOsf_Namespace_AName[] =
2803 2804
     "osf_namespace_a";

korbb's avatar
korbb committed
2805 2806 2807 2808
/*
 *  File name selection pattern
 */
tSCC zOsf_Namespace_AList[] =
korbb's avatar
korbb committed
2809
  "|reg_types.h|sys/lc_core.h|";
korbb's avatar
korbb committed
2810 2811 2812 2813 2814 2815
/*
 *  Machine/OS name selection pattern
 */
#define apzOsf_Namespace_AMachs (const char**)NULL

/*
korbb's avatar
korbb committed
2816
 *  perform the 'test' shell command - do fix on success
korbb's avatar
korbb committed
2817 2818
 */
tSCC zOsf_Namespace_ATest0[] =
korbb's avatar
korbb committed
2819 2820 2821 2822 2823 2824 2825 2826 2827
       " -r reg_types.h";
tSCC zOsf_Namespace_ATest1[] =
       " -r sys/lc_core.h";
tSCC zOsf_Namespace_ATest2[] =
       " -n \"`grep '} regex_t;' reg_types.h`\"";
tSCC zOsf_Namespace_ATest3[] =
       " -z \"`grep __regex_t regex.h`\"";

#define    OSF_NAMESPACE_A_TEST_CT  4
korbb's avatar
korbb committed
2828
tTestDesc aOsf_Namespace_ATests[] = {
korbb's avatar
korbb committed
2829 2830 2831 2832
  { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
  { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
  { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
  { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
korbb's avatar
korbb committed
2833 2834 2835 2836 2837

/*
 *  Fix Command Arguments for Osf_Namespace_A
 */
const char* apzOsf_Namespace_APatch[] = { "sed",
korbb's avatar
korbb committed
2838 2839 2840
    "-e", "s/regex_t/__regex_t/g",
    "-e", "s/regoff_t/__regoff_t/g",
    "-e", "s/regmatch_t/__regmatch_t/g",
korbb's avatar
korbb committed
2841 2842 2843 2844
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2845
 *  Description of Osf_Namespace_B fix
korbb's avatar
korbb committed
2846
 */
2847
#define OSF_NAMESPACE_B_FIXIDX           70
korbb's avatar
korbb committed
2848
tSCC zOsf_Namespace_BName[] =
2849 2850
     "osf_namespace_b";

korbb's avatar
korbb committed
2851 2852 2853 2854
/*
 *  File name selection pattern
 */
tSCC zOsf_Namespace_BList[] =
korbb's avatar
korbb committed
2855
  "|regex.h|";
korbb's avatar
korbb committed
2856 2857 2858 2859 2860 2861
/*
 *  Machine/OS name selection pattern
 */
#define apzOsf_Namespace_BMachs (const char**)NULL

/*
korbb's avatar
korbb committed
2862
 *  perform the 'test' shell command - do fix on success
korbb's avatar
korbb committed
2863 2864
 */
tSCC zOsf_Namespace_BTest0[] =
korbb's avatar
korbb committed
2865 2866 2867 2868 2869 2870 2871 2872 2873
       " -r reg_types.h";
tSCC zOsf_Namespace_BTest1[] =
       " -r sys/lc_core.h";
tSCC zOsf_Namespace_BTest2[] =
       " -n \"`grep '} regex_t;' reg_types.h`\"";
tSCC zOsf_Namespace_BTest3[] =
       " -z \"`grep __regex_t regex.h`\"";

#define    OSF_NAMESPACE_B_TEST_CT  4
korbb's avatar
korbb committed
2874
tTestDesc aOsf_Namespace_BTests[] = {
korbb's avatar
korbb committed
2875 2876 2877 2878
  { TT_TEST,     zOsf_Namespace_BTest0,   0 /* unused */ },
  { TT_TEST,     zOsf_Namespace_BTest1,   0 /* unused */ },
  { TT_TEST,     zOsf_Namespace_BTest2,   0 /* unused */ },
  { TT_TEST,     zOsf_Namespace_BTest3,   0 /* unused */ }, };
korbb's avatar
korbb committed
2879 2880 2881 2882 2883

/*
 *  Fix Command Arguments for Osf_Namespace_B
 */
const char* apzOsf_Namespace_BPatch[] = { "sed",
korbb's avatar
korbb committed
2884 2885 2886 2887
    "-e", "/#include <reg_types.h>/a\\\n\
typedef __regex_t\tregex_t;\\\n\
typedef __regoff_t\tregoff_t;\\\n\
typedef __regmatch_t\tregmatch_t;\n",
korbb's avatar
korbb committed
2888 2889 2890 2891
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2892
 *  Description of Pthread_Page_Size fix
korbb's avatar
korbb committed
2893
 */
2894
#define PTHREAD_PAGE_SIZE_FIXIDX         71
korbb's avatar
korbb committed
2895
tSCC zPthread_Page_SizeName[] =
2896 2897
     "pthread_page_size";

korbb's avatar
korbb committed
2898 2899 2900 2901
/*
 *  File name selection pattern
 */
tSCC zPthread_Page_SizeList[] =
korbb's avatar
korbb committed
2902
  "|pthread.h|";
korbb's avatar
korbb committed
2903 2904 2905 2906 2907 2908
/*
 *  Machine/OS name selection pattern
 */
#define apzPthread_Page_SizeMachs (const char**)NULL

/*
korbb's avatar
korbb committed
2909
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
2910 2911 2912 2913 2914 2915
 */
tSCC zPthread_Page_SizeSelect0[] =
       "^int __page_size";

#define    PTHREAD_PAGE_SIZE_TEST_CT  1
tTestDesc aPthread_Page_SizeTests[] = {
korbb's avatar
korbb committed
2916
  { TT_EGREP,    zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2917 2918 2919 2920 2921

/*
 *  Fix Command Arguments for Pthread_Page_Size
 */
const char* apzPthread_Page_SizePatch[] = { "sed",
korbb's avatar
korbb committed
2922
    "-e", "s/^int __page_size/extern int __page_size/",
korbb's avatar
korbb committed
2923 2924 2925 2926
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2927
 *  Description of Read_Ret_Type fix
2928
 */
2929
#define READ_RET_TYPE_FIXIDX             72
2930
tSCC zRead_Ret_TypeName[] =
2931 2932
     "read_ret_type";

2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950
/*
 *  File name selection pattern
 */
tSCC zRead_Ret_TypeList[] =
  "|stdio.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzRead_Ret_TypeMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zRead_Ret_TypeSelect0[] =
       "extern int\t.*, fread\\(\\), fwrite\\(\\)";

#define    READ_RET_TYPE_TEST_CT  1
tTestDesc aRead_Ret_TypeTests[] = {
korbb's avatar
korbb committed
2951
  { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962

/*
 *  Fix Command Arguments for Read_Ret_Type
 */
const char* apzRead_Ret_TypePatch[] = { "sed",
    "-e", "s/^\\(extern int\tfclose(), fflush()\\), \\(fread(), fwrite()\\)\\(.*\\)$/extern unsigned int\t\\2;\\\n\
\\1\\3/",
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2963
 *  Description of Rs6000_Double fix
korbb's avatar
korbb committed
2964
 */
2965
#define RS6000_DOUBLE_FIXIDX             73
korbb's avatar
korbb committed
2966
tSCC zRs6000_DoubleName[] =
2967 2968
     "rs6000_double";

korbb's avatar
korbb committed
2969 2970 2971 2972
/*
 *  File name selection pattern
 */
tSCC zRs6000_DoubleList[] =
korbb's avatar
korbb committed
2973
  "|math.h|";
korbb's avatar
korbb committed
2974 2975 2976 2977 2978 2979
/*
 *  Machine/OS name selection pattern
 */
#define apzRs6000_DoubleMachs (const char**)NULL

/*
korbb's avatar
korbb committed
2980
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
2981 2982 2983 2984 2985 2986
 */
tSCC zRs6000_DoubleSelect0[] =
       "[^a-zA-Z_]class\\(";

#define    RS6000_DOUBLE_TEST_CT  1
tTestDesc aRs6000_DoubleTests[] = {
korbb's avatar
korbb committed
2987
  { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2988 2989 2990 2991 2992

/*
 *  Fix Command Arguments for Rs6000_Double
 */
const char* apzRs6000_DoublePatch[] = { "sed",
korbb's avatar
korbb committed
2993 2994 2995 2996
    "-e", "/class[(]/i\\\n\
#ifndef __cplusplus\n",
    "-e", "/class[(]/a\\\n\
#endif\n",
korbb's avatar
korbb committed
2997 2998 2999 3000
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3001
 *  Description of Rs6000_Fchmod fix
korbb's avatar
korbb committed
3002
 */
3003
#define RS6000_FCHMOD_FIXIDX             74
korbb's avatar
korbb committed
3004
tSCC zRs6000_FchmodName[] =
3005 3006
     "rs6000_fchmod";

korbb's avatar
korbb committed
3007 3008 3009 3010
/*
 *  File name selection pattern
 */
tSCC zRs6000_FchmodList[] =
korbb's avatar
korbb committed
3011
  "|sys/stat.h|";
korbb's avatar
korbb committed
3012 3013 3014 3015 3016 3017
/*
 *  Machine/OS name selection pattern
 */
#define apzRs6000_FchmodMachs (const char**)NULL

/*
korbb's avatar
korbb committed
3018
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
3019 3020 3021 3022 3023 3024
 */
tSCC zRs6000_FchmodSelect0[] =
       "fchmod\\(char";

#define    RS6000_FCHMOD_TEST_CT  1
tTestDesc aRs6000_FchmodTests[] = {
korbb's avatar
korbb committed
3025
  { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3026 3027 3028 3029 3030

/*
 *  Fix Command Arguments for Rs6000_Fchmod
 */
const char* apzRs6000_FchmodPatch[] = { "sed",
korbb's avatar
korbb committed
3031
    "-e", "s/fchmod(char \\*/fchmod(int/",
korbb's avatar
korbb committed
3032 3033 3034 3035
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3036
 *  Description of Rs6000_Param fix
korbb's avatar
korbb committed
3037
 */
3038
#define RS6000_PARAM_FIXIDX              75
korbb's avatar
korbb committed
3039
tSCC zRs6000_ParamName[] =
3040 3041
     "rs6000_param";

korbb's avatar
korbb committed
3042 3043 3044 3045
/*
 *  File name selection pattern
 */
tSCC zRs6000_ParamList[] =
korbb's avatar
korbb committed
3046
  "|stdio.h|unistd.h|";
korbb's avatar
korbb committed
3047 3048 3049 3050
/*
 *  Machine/OS name selection pattern
 */
#define apzRs6000_ParamMachs (const char**)NULL
3051 3052 3053 3054 3055 3056 3057 3058 3059 3060

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zRs6000_ParamSelect0[] =
       "const char new";

#define    RS6000_PARAM_TEST_CT  1
tTestDesc aRs6000_ParamTests[] = {
  { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3061 3062 3063 3064 3065

/*
 *  Fix Command Arguments for Rs6000_Param
 */
const char* apzRs6000_ParamPatch[] = { "sed",
korbb's avatar
korbb committed
3066
    "-e", "s@rename(const char \\*old, const char \\*new)@rename(const char *_old, const char *_new)@",
korbb's avatar
korbb committed
3067 3068
    (char*)NULL };

korbb's avatar
korbb committed
3069 3070 3071 3072
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Sco_Strict_Ansi fix
 */
3073
#define SCO_STRICT_ANSI_FIXIDX           76
korbb's avatar
korbb committed
3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108
tSCC zSco_Strict_AnsiName[] =
     "sco_strict_ansi";

/*
 *  File name selection pattern
 */
#define zSco_Strict_AnsiList (char*)NULL
/*
 *  Machine/OS name selection pattern
 */
tSCC* apzSco_Strict_AnsiMachs[] = {
        "i?86-*-sco3.2*",
        (const char*)NULL };

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zSco_Strict_AnsiSelect0[] =
       "^[ \t]*#[ \t]*if.*!__STDC__";

#define    SCO_STRICT_ANSI_TEST_CT  1
tTestDesc aSco_Strict_AnsiTests[] = {
  { TT_EGREP,    zSco_Strict_AnsiSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Sco_Strict_Ansi
 */
const char* apzSco_Strict_AnsiPatch[] = { "sed",
    "-e", "s/!__STDC__/!defined(__STRICT_ANSI__)/g",
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Sco_Static_Func fix
 */
3109
#define SCO_STATIC_FUNC_FIXIDX           77
korbb's avatar
korbb committed
3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152
tSCC zSco_Static_FuncName[] =
     "sco_static_func";

/*
 *  File name selection pattern
 */
tSCC zSco_Static_FuncList[] =
  "|sys/stat.h|";
/*
 *  Machine/OS name selection pattern
 */
tSCC* apzSco_Static_FuncMachs[] = {
        "i?86-*-sco3.2*",
        (const char*)NULL };

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zSco_Static_FuncSelect0[] =
       "^static int";

#define    SCO_STATIC_FUNC_TEST_CT  1
tTestDesc aSco_Static_FuncTests[] = {
  { TT_EGREP,    zSco_Static_FuncSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Sco_Static_Func
 */
const char* apzSco_Static_FuncPatch[] = { "sed",
    "-e", "/^static int/i\\\n\
#if __cplusplus\\\n\
extern \"C\" {\\\n\
#endif /* __cplusplus */",
    "-e", "/^}$/a\\\n\
#if __cplusplus\\\n\
 }\\\n\
#endif /* __cplusplus */",
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Sco_Utime fix
 */
3153
#define SCO_UTIME_FIXIDX                 78
korbb's avatar
korbb committed
3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185
tSCC zSco_UtimeName[] =
     "sco_utime";

/*
 *  File name selection pattern
 */
tSCC zSco_UtimeList[] =
  "|sys/times.h|";
/*
 *  Machine/OS name selection pattern
 */
tSCC* apzSco_UtimeMachs[] = {
        "i?86-*-sco3.2v4*",
        (const char*)NULL };

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zSco_UtimeSelect0[] =
       "(const char *, struct utimbuf *);";

#define    SCO_UTIME_TEST_CT  1
tTestDesc aSco_UtimeTests[] = {
  { TT_EGREP,    zSco_UtimeSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Sco_Utime
 */
const char* apzSco_UtimePatch[] = { "sed",
    "-e", "s/(const char \\*, struct utimbuf \\*);/(const char *, const struct utimbuf *);/",
    (char*)NULL };

korbb's avatar
korbb committed
3186 3187
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3188
 *  Description of Sony_Include fix
korbb's avatar
korbb committed
3189
 */
3190
#define SONY_INCLUDE_FIXIDX              79
korbb's avatar
korbb committed
3191
tSCC zSony_IncludeName[] =
3192 3193
     "sony_include";

korbb's avatar
korbb committed
3194 3195 3196 3197
/*
 *  File name selection pattern
 */
tSCC zSony_IncludeList[] =
korbb's avatar
korbb committed
3198
  "|machine/machparam.h|";
korbb's avatar
korbb committed
3199 3200 3201 3202 3203 3204
/*
 *  Machine/OS name selection pattern
 */
#define apzSony_IncludeMachs (const char**)NULL

/*
korbb's avatar
korbb committed
3205
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
3206 3207 3208 3209 3210 3211
 */
tSCC zSony_IncludeSelect0[] =
       "\"\\.\\./machine/endian.h\"";

#define    SONY_INCLUDE_TEST_CT  1
tTestDesc aSony_IncludeTests[] = {
korbb's avatar
korbb committed
3212
  { TT_EGREP,    zSony_IncludeSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3213 3214 3215 3216 3217

/*
 *  Fix Command Arguments for Sony_Include
 */
const char* apzSony_IncludePatch[] = { "sed",
korbb's avatar
korbb committed
3218
    "-e", "s@\"../machine/endian.h\"@<machine/endian.h>@",
korbb's avatar
korbb committed
3219 3220 3221 3222
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3223
 *  Description of Statsswtch fix
korbb's avatar
korbb committed
3224
 */
3225
#define STATSSWTCH_FIXIDX                80
korbb's avatar
korbb committed
3226
tSCC zStatsswtchName[] =
3227 3228
     "statsswtch";

korbb's avatar
korbb committed
3229 3230 3231 3232
/*
 *  File name selection pattern
 */
tSCC zStatsswtchList[] =
korbb's avatar
korbb committed
3233
  "|rpcsvc/rstat.h|";
korbb's avatar
korbb committed
3234 3235 3236 3237 3238 3239
/*
 *  Machine/OS name selection pattern
 */
#define apzStatsswtchMachs (const char**)NULL

/*
korbb's avatar
korbb committed
3240
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
3241 3242 3243 3244 3245 3246
 */
tSCC zStatsswtchSelect0[] =
       "boottime$";

#define    STATSSWTCH_TEST_CT  1
tTestDesc aStatsswtchTests[] = {
korbb's avatar
korbb committed
3247
  { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3248 3249 3250 3251 3252

/*
 *  Fix Command Arguments for Statsswtch
 */
const char* apzStatsswtchPatch[] = { "sed",
korbb's avatar
korbb committed
3253
    "-e", "s/boottime$/boottime;/",
korbb's avatar
korbb committed
3254 3255
    (char*)NULL };

3256 3257 3258 3259
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Stdio_Stdarg_H fix
 */
3260
#define STDIO_STDARG_H_FIXIDX            81
3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292
tSCC zStdio_Stdarg_HName[] =
     "stdio_stdarg_h";

/*
 *  File name selection pattern
 */
tSCC zStdio_Stdarg_HList[] =
  "|stdio.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzStdio_Stdarg_HMachs (const char**)NULL

/*
 *  content bypass pattern - skip fix if pattern found
 */
tSCC zStdio_Stdarg_HBypass0[] =
       "include.*(stdarg.h|machine/ansi.h)";

#define    STDIO_STDARG_H_TEST_CT  1
tTestDesc aStdio_Stdarg_HTests[] = {
  { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Stdio_Stdarg_H
 */
const char* apzStdio_Stdarg_HPatch[] = { "sed",
    "-e", "1i\\\n\
#define __need___va_list\\\n\
#include <stdarg.h>\n",
    (char*)NULL };

korbb's avatar
korbb committed
3293 3294
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3295
 *  Description of Stdio_Va_List fix
korbb's avatar
korbb committed
3296
 */
3297
#define STDIO_VA_LIST_FIXIDX             82
korbb's avatar
korbb committed
3298
tSCC zStdio_Va_ListName[] =
3299 3300
     "stdio_va_list";

korbb's avatar
korbb committed
3301 3302 3303 3304
/*
 *  File name selection pattern
 */
tSCC zStdio_Va_ListList[] =
korbb's avatar
korbb committed
3305
  "|stdio.h|";
korbb's avatar
korbb committed
3306 3307 3308 3309
/*
 *  Machine/OS name selection pattern
 */
#define apzStdio_Va_ListMachs (const char**)NULL
3310 3311 3312 3313 3314

/*
 *  content bypass pattern - skip fix if pattern found
 */
tSCC zStdio_Va_ListBypass0[] =
3315
       "__gnuc_va_list|_BSD_VA_LIST_";
3316 3317 3318 3319

#define    STDIO_VA_LIST_TEST_CT  1
tTestDesc aStdio_Va_ListTests[] = {
  { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3320 3321 3322 3323

/*
 *  Fix Command Arguments for Stdio_Va_List
 */
3324 3325 3326 3327 3328 3329 3330
const char* apzStdio_Va_ListPatch[] = { "sed",
    "-e", "s@ va_list @ __gnuc_va_list @\n\
s@ va_list)@ __gnuc_va_list)@\n\
s@ _VA_LIST_));@ __gnuc_va_list));@\n\
s@ va_list@ __not_va_list__@\n\
s@\\*va_list@*__not_va_list__@\n\
s@ __va_list)@ __gnuc_va_list)@\n\
korbb's avatar
korbb committed
3331
s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3332 3333 3334 3335
s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
s@VA_LIST@DUMMY_VA_LIST@\n\
s@_Va_LIST@_VA_LIST@",
korbb's avatar
korbb committed
3336 3337
    (char*)NULL };

korbb's avatar
korbb committed
3338 3339 3340 3341
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Sun_Auth_Proto fix
 */
3342
#define SUN_AUTH_PROTO_FIXIDX            83
korbb's avatar
korbb committed
3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377
tSCC zSun_Auth_ProtoName[] =
     "sun_auth_proto";

/*
 *  File name selection pattern
 */
tSCC zSun_Auth_ProtoList[] =
  "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzSun_Auth_ProtoMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zSun_Auth_ProtoSelect0[] =
       "\\(\\*[a-z][a-z_]*\\)\\(\\)";

#define    SUN_AUTH_PROTO_TEST_CT  1
tTestDesc aSun_Auth_ProtoTests[] = {
  { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Sun_Auth_Proto
 */
const char* apzSun_Auth_ProtoPatch[] = { "sed",
    "-e", "s/^\\(.*(\\*[a-z][a-z_]*)(\\)\\();.*\\)/\\\n\
#ifdef __cplusplus\\\n\
\\1...\\2\\\n\
#else\\\n\
\\1\\2\\\n\
#endif/",
    (char*)NULL };

korbb's avatar
korbb committed
3378 3379
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3380
 *  Description of Sun_Bogus_Ifdef fix
korbb's avatar
korbb committed
3381
 */
3382
#define SUN_BOGUS_IFDEF_FIXIDX           84
korbb's avatar
korbb committed
3383
tSCC zSun_Bogus_IfdefName[] =
3384 3385
     "sun_bogus_ifdef";

korbb's avatar
korbb committed
3386 3387 3388 3389
/*
 *  File name selection pattern
 */
tSCC zSun_Bogus_IfdefList[] =
korbb's avatar
korbb committed
3390
  "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
korbb's avatar
korbb committed
3391 3392 3393 3394 3395 3396
/*
 *  Machine/OS name selection pattern
 */
#define apzSun_Bogus_IfdefMachs (const char**)NULL

/*
korbb's avatar
korbb committed
3397
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
3398 3399 3400 3401 3402 3403
 */
tSCC zSun_Bogus_IfdefSelect0[] =
       "#ifdef __i386__ || __vax__";

#define    SUN_BOGUS_IFDEF_TEST_CT  1
tTestDesc aSun_Bogus_IfdefTests[] = {
korbb's avatar
korbb committed
3404
  { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3405 3406 3407 3408 3409

/*
 *  Fix Command Arguments for Sun_Bogus_Ifdef
 */
const char* apzSun_Bogus_IfdefPatch[] = { "sed",
korbb's avatar
korbb committed
3410
    "-e", "s/\\#ifdef __i386__ || __vax__/\\#if __i386__ || __vax__/g",
korbb's avatar
korbb committed
3411 3412 3413 3414
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3415
 *  Description of Sun_Bogus_Ifdef_Sun4c fix
korbb's avatar
korbb committed
3416
 */
3417
#define SUN_BOGUS_IFDEF_SUN4C_FIXIDX     85
korbb's avatar
korbb committed
3418
tSCC zSun_Bogus_Ifdef_Sun4cName[] =
3419 3420
     "sun_bogus_ifdef_sun4c";

korbb's avatar
korbb committed
3421 3422 3423 3424
/*
 *  File name selection pattern
 */
tSCC zSun_Bogus_Ifdef_Sun4cList[] =
korbb's avatar
korbb committed
3425
  "|hsfs/hsnode.h|";
korbb's avatar
korbb committed
3426 3427 3428 3429 3430 3431
/*
 *  Machine/OS name selection pattern
 */
#define apzSun_Bogus_Ifdef_Sun4cMachs (const char**)NULL

/*
korbb's avatar
korbb committed
3432
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
3433 3434 3435 3436 3437 3438
 */
tSCC zSun_Bogus_Ifdef_Sun4cSelect0[] =
       "#ifdef __i386__ || __sun4c__";

#define    SUN_BOGUS_IFDEF_SUN4C_TEST_CT  1
tTestDesc aSun_Bogus_Ifdef_Sun4cTests[] = {
korbb's avatar
korbb committed
3439
  { TT_EGREP,    zSun_Bogus_Ifdef_Sun4cSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3440 3441 3442 3443 3444

/*
 *  Fix Command Arguments for Sun_Bogus_Ifdef_Sun4c
 */
const char* apzSun_Bogus_Ifdef_Sun4cPatch[] = { "sed",
korbb's avatar
korbb committed
3445
    "-e", "s/\\#ifdef __i386__ || __sun4c__/\\#if __i386__ || __sun4c__/g",
korbb's avatar
korbb committed
3446 3447 3448 3449
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3450
 *  Description of Sun_Catmacro fix
korbb's avatar
korbb committed
3451
 */
3452
#define SUN_CATMACRO_FIXIDX              86
korbb's avatar
korbb committed
3453
tSCC zSun_CatmacroName[] =
3454 3455
     "sun_catmacro";

korbb's avatar
korbb committed
3456 3457 3458 3459
/*
 *  File name selection pattern
 */
tSCC zSun_CatmacroList[] =
korbb's avatar
korbb committed
3460
  "|pixrect/memvar.h|";
korbb's avatar
korbb committed
3461 3462 3463 3464 3465 3466
/*
 *  Machine/OS name selection pattern
 */
#define apzSun_CatmacroMachs (const char**)NULL

/*
korbb's avatar
korbb committed
3467
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
3468 3469
 */
tSCC zSun_CatmacroSelect0[] =
3470
       "^#define[ \t]+CAT\\(a,b\\)";
korbb's avatar
korbb committed
3471 3472 3473

#define    SUN_CATMACRO_TEST_CT  1
tTestDesc aSun_CatmacroTests[] = {
korbb's avatar
korbb committed
3474
  { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3475 3476 3477 3478 3479

/*
 *  Fix Command Arguments for Sun_Catmacro
 */
const char* apzSun_CatmacroPatch[] = { "sed",
korbb's avatar
korbb committed
3480 3481 3482 3483 3484 3485
    "-e", "/^#define[ \t]CAT(a,b)/ i\\\n\
#ifdef __STDC__ \\\n\
#define CAT(a,b) a##b\\\n\
#else\n",
    "-e", "/^#define[ \t]CAT(a,b)/ a\\\n\
#endif\n",
korbb's avatar
korbb committed
3486 3487 3488 3489
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3490
 *  Description of Sun_Malloc fix
korbb's avatar
korbb committed
3491
 */
3492
#define SUN_MALLOC_FIXIDX                87
korbb's avatar
korbb committed
3493
tSCC zSun_MallocName[] =
3494 3495
     "sun_malloc";

korbb's avatar
korbb committed
3496 3497 3498 3499
/*
 *  File name selection pattern
 */
tSCC zSun_MallocList[] =
korbb's avatar
korbb committed
3500
  "|malloc.h|";
korbb's avatar
korbb committed
3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511
/*
 *  Machine/OS name selection pattern
 */
#define apzSun_MallocMachs (const char**)NULL
#define SUN_MALLOC_TEST_CT  0
#define aSun_MallocTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Sun_Malloc
 */
const char* apzSun_MallocPatch[] = { "sed",
korbb's avatar
korbb committed
3512 3513 3514 3515
    "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
    "-e", "s/int[ \t][ \t]*free/void\tfree/g",
    "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
    "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
korbb's avatar
korbb committed
3516 3517 3518 3519
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3520
 *  Description of Sun_Rusers_Semi fix
korbb's avatar
korbb committed
3521
 */
3522
#define SUN_RUSERS_SEMI_FIXIDX           88
korbb's avatar
korbb committed
3523
tSCC zSun_Rusers_SemiName[] =
3524 3525
     "sun_rusers_semi";

korbb's avatar
korbb committed
3526 3527 3528 3529
/*
 *  File name selection pattern
 */
tSCC zSun_Rusers_SemiList[] =
korbb's avatar
korbb committed
3530
  "|rpcsvc/rusers.h|";
korbb's avatar
korbb committed
3531 3532 3533 3534 3535 3536
/*
 *  Machine/OS name selection pattern
 */
#define apzSun_Rusers_SemiMachs (const char**)NULL

/*
korbb's avatar
korbb committed
3537
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
3538 3539 3540 3541 3542 3543
 */
tSCC zSun_Rusers_SemiSelect0[] =
       "_cnt$";

#define    SUN_RUSERS_SEMI_TEST_CT  1
tTestDesc aSun_Rusers_SemiTests[] = {
korbb's avatar
korbb committed
3544
  { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3545 3546 3547 3548 3549

/*
 *  Fix Command Arguments for Sun_Rusers_Semi
 */
const char* apzSun_Rusers_SemiPatch[] = { "sed",
korbb's avatar
korbb committed
3550
    "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
korbb's avatar
korbb committed
3551 3552 3553 3554
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3555
 *  Description of Sun_Signal fix
korbb's avatar
korbb committed
3556
 */
3557
#define SUN_SIGNAL_FIXIDX                89
korbb's avatar
korbb committed
3558
tSCC zSun_SignalName[] =
3559 3560
     "sun_signal";

korbb's avatar
korbb committed
3561 3562 3563 3564
/*
 *  File name selection pattern
 */
tSCC zSun_SignalList[] =
korbb's avatar
korbb committed
3565
  "|sys/signal.h|signal.h|";
korbb's avatar
korbb committed
3566 3567 3568 3569 3570 3571
/*
 *  Machine/OS name selection pattern
 */
#define apzSun_SignalMachs (const char**)NULL

/*
korbb's avatar
korbb committed
3572
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
3573 3574 3575 3576 3577 3578
 */
tSCC zSun_SignalSelect0[] =
       "^void\t\\(\\*signal\\(\\)\\)\\(\\);";

#define    SUN_SIGNAL_TEST_CT  1
tTestDesc aSun_SignalTests[] = {
korbb's avatar
korbb committed
3579
  { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3580 3581 3582 3583 3584

/*
 *  Fix Command Arguments for Sun_Signal
 */
const char* apzSun_SignalPatch[] = { "sed",
korbb's avatar
korbb committed
3585 3586 3587 3588 3589 3590
    "-e", "/^void\t(\\*signal())();$/i\\\n\
#ifdef __cplusplus\\\n\
void\t(*signal(...))(...);\\\n\
#else\n",
    "-e", "/^void\t(\\*signal())();$/a\\\n\
#endif\n",
korbb's avatar
korbb committed
3591 3592 3593 3594
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3595
 *  Description of Sunos_Matherr_Decl fix
korbb's avatar
korbb committed
3596
 */
3597
#define SUNOS_MATHERR_DECL_FIXIDX        90
korbb's avatar
korbb committed
3598
tSCC zSunos_Matherr_DeclName[] =
3599 3600
     "sunos_matherr_decl";

korbb's avatar
korbb committed
3601 3602 3603 3604
/*
 *  File name selection pattern
 */
tSCC zSunos_Matherr_DeclList[] =
korbb's avatar
korbb committed
3605
  "|math.h|";
korbb's avatar
korbb committed
3606 3607 3608 3609
/*
 *  Machine/OS name selection pattern
 */
#define apzSunos_Matherr_DeclMachs (const char**)NULL
3610 3611 3612 3613 3614 3615 3616 3617 3618 3619

/*
 *  content bypass pattern - skip fix if pattern found
 */
tSCC zSunos_Matherr_DeclBypass0[] =
       "matherr.*struct exception";

#define    SUNOS_MATHERR_DECL_TEST_CT  1
tTestDesc aSunos_Matherr_DeclTests[] = {
  { TT_NEGREP,   zSunos_Matherr_DeclBypass0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3620 3621 3622 3623 3624

/*
 *  Fix Command Arguments for Sunos_Matherr_Decl
 */
const char* apzSunos_Matherr_DeclPatch[] = { "sed",
korbb's avatar
korbb committed
3625
    "-e", "/^struct exception/,$b",
korbb's avatar
korbb committed
3626 3627
    "-e", "/matherr/i\\\n\
struct exception;\n",
korbb's avatar
korbb committed
3628 3629 3630 3631
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3632
 *  Description of Sunos_Strlen fix
korbb's avatar
korbb committed
3633
 */
3634
#define SUNOS_STRLEN_FIXIDX              91
korbb's avatar
korbb committed
3635
tSCC zSunos_StrlenName[] =
3636 3637
     "sunos_strlen";

korbb's avatar
korbb committed
3638 3639 3640 3641
/*
 *  File name selection pattern
 */
tSCC zSunos_StrlenList[] =
korbb's avatar
korbb committed
3642
  "|strings.h|";
korbb's avatar
korbb committed
3643 3644 3645 3646
/*
 *  Machine/OS name selection pattern
 */
#define apzSunos_StrlenMachs (const char**)NULL
3647 3648 3649 3650 3651 3652 3653 3654 3655 3656

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zSunos_StrlenSelect0[] =
       "int[ \t]*strlen";

#define    SUNOS_STRLEN_TEST_CT  1
tTestDesc aSunos_StrlenTests[] = {
  { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3657 3658 3659 3660 3661

/*
 *  Fix Command Arguments for Sunos_Strlen
 */
const char* apzSunos_StrlenPatch[] = { "sed",
korbb's avatar
korbb committed
3662
    "-e", "s/int[ \t]*strlen();/__SIZE_TYPE__ strlen();/",
korbb's avatar
korbb committed
3663 3664
    (char*)NULL };

korbb's avatar
korbb committed
3665 3666 3667 3668
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Svr4_Getcwd fix
 */
3669
#define SVR4_GETCWD_FIXIDX               92
korbb's avatar
korbb committed
3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703
tSCC zSvr4_GetcwdName[] =
     "svr4_getcwd";

/*
 *  File name selection pattern
 */
tSCC zSvr4_GetcwdList[] =
  "|stdlib.h|unistd.h|prototypes.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzSvr4_GetcwdMachs (const char**)NULL

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zSvr4_GetcwdSelect0[] =
       "getcwd\\(char \\*, int\\)";

#define    SVR4_GETCWD_TEST_CT  1
tTestDesc aSvr4_GetcwdTests[] = {
  { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Svr4_Getcwd
 */
const char* apzSvr4_GetcwdPatch[] = { "sed",
    "-e", "s/getcwd(char \\*, int)/getcwd(char *, size_t)/",
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Svr4_Profil fix
 */
3704
#define SVR4_PROFIL_FIXIDX               93
korbb's avatar
korbb committed
3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726
tSCC zSvr4_ProfilName[] =
     "svr4_profil";

/*
 *  File name selection pattern
 */
tSCC zSvr4_ProfilList[] =
  "|stdlib.h|unistd.h|";
/*
 *  Machine/OS name selection pattern
 */
#define apzSvr4_ProfilMachs (const char**)NULL
#define SVR4_PROFIL_TEST_CT  0
#define aSvr4_ProfilTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Svr4_Profil
 */
const char* apzSvr4_ProfilPatch[] = { "sed",
    "-e", "s/profil(unsigned short \\*, unsigned int, unsigned int, unsigned int)/profil(unsigned short *, size_t, int, unsigned)/",
    (char*)NULL };

korbb's avatar
korbb committed
3727 3728
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3729
 *  Description of Systypes fix
korbb's avatar
korbb committed
3730
 */
3731
#define SYSTYPES_FIXIDX                  94
korbb's avatar
korbb committed
3732
tSCC zSystypesName[] =
3733 3734
     "systypes";

korbb's avatar
korbb committed
3735 3736 3737 3738
/*
 *  File name selection pattern
 */
tSCC zSystypesList[] =
korbb's avatar
korbb committed
3739
  "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
korbb's avatar
korbb committed
3740 3741 3742 3743 3744 3745
/*
 *  Machine/OS name selection pattern
 */
#define apzSystypesMachs (const char**)NULL

/*
korbb's avatar
korbb committed
3746
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
3747 3748 3749 3750 3751 3752
 */
tSCC zSystypesSelect0[] =
       "typedef[ \t]+[a-z_][ \ta-z_]*[ \t](size|ptrdiff|wchar)_t";

#define    SYSTYPES_TEST_CT  1
tTestDesc aSystypesTests[] = {
korbb's avatar
korbb committed
3753
  { TT_EGREP,    zSystypesSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3754 3755 3756 3757 3758

/*
 *  Fix Command Arguments for Systypes
 */
const char* apzSystypesPatch[] = { "sed",
korbb's avatar
korbb committed
3759
    "-e", "/^[ \t]*\\*[ \t]*typedef unsigned int size_t;/N",
korbb's avatar
korbb committed
3760 3761 3762 3763 3764 3765 3766 3767 3768 3769
    "-e", "s/^\\([ \t]*\\*[ \t]*typedef unsigned int size_t;\\n[ \t]*\\*\\/\\)/\\1\\\n\
#ifndef __SIZE_TYPE__\\\n\
#define __SIZE_TYPE__ long unsigned int\\\n\
#endif\\\n\
typedef __SIZE_TYPE__ size_t;\\\n\
/",
    "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/i\\\n\
#ifndef __SIZE_TYPE__\\\n\
#define __SIZE_TYPE__ long unsigned int\\\n\
#endif\n",
korbb's avatar
korbb committed
3770
    "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/typedef __SIZE_TYPE__ size_t/",
korbb's avatar
korbb committed
3771 3772 3773 3774
    "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/i\\\n\
#ifndef __PTRDIFF_TYPE__\\\n\
#define __PTRDIFF_TYPE__ long int\\\n\
#endif\n",
korbb's avatar
korbb committed
3775
    "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/typedef __PTRDIFF_TYPE__ ptrdiff_t/",
korbb's avatar
korbb committed
3776 3777 3778 3779 3780 3781 3782
    "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/i\\\n\
#ifndef __WCHAR_TYPE__\\\n\
#define __WCHAR_TYPE__ int\\\n\
#endif\\\n\
#ifndef __cplusplus\n",
    "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/a\\\n\
#endif\n",
korbb's avatar
korbb committed
3783
    "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/typedef __WCHAR_TYPE__ wchar_t/",
korbb's avatar
korbb committed
3784 3785 3786 3787
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
3788
 *  Description of Systypes_Stdlib_Size_T fix
korbb's avatar
korbb committed
3789
 */
3790
#define SYSTYPES_STDLIB_SIZE_T_FIXIDX    95
3791 3792 3793
tSCC zSystypes_Stdlib_Size_TName[] =
     "systypes_stdlib_size_t";

korbb's avatar
korbb committed
3794 3795 3796
/*
 *  File name selection pattern
 */
3797 3798
tSCC zSystypes_Stdlib_Size_TList[] =
  "|sys/types.h|stdlib.h|";
korbb's avatar
korbb committed
3799 3800 3801
/*
 *  Machine/OS name selection pattern
 */
3802
#define apzSystypes_Stdlib_Size_TMachs (const char**)NULL
korbb's avatar
korbb committed
3803 3804

/*
korbb's avatar
korbb committed
3805
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
3806
 */
3807
tSCC zSystypes_Stdlib_Size_TSelect0[] =
korbb's avatar
korbb committed
3808 3809 3810
       "typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t";

/*
korbb's avatar
korbb committed
3811
 *  content bypass pattern - skip fix if pattern found
korbb's avatar
korbb committed
3812
 */
3813 3814
tSCC zSystypes_Stdlib_Size_TBypass0[] =
       "_(GCC|BSD)_SIZE_T";
korbb's avatar
korbb committed
3815

3816 3817 3818 3819
#define    SYSTYPES_STDLIB_SIZE_T_TEST_CT  2
tTestDesc aSystypes_Stdlib_Size_TTests[] = {
  { TT_NEGREP,   zSystypes_Stdlib_Size_TBypass0, (regex_t*)NULL },
  { TT_EGREP,    zSystypes_Stdlib_Size_TSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3820 3821

/*
3822
 *  Fix Command Arguments for Systypes_Stdlib_Size_T
korbb's avatar
korbb committed
3823
 */
3824
const char* apzSystypes_Stdlib_Size_TPatch[] = { "sed",
korbb's avatar
korbb committed
3825 3826 3827 3828 3829
    "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/i\\\n\
#ifndef _GCC_SIZE_T\\\n\
#define _GCC_SIZE_T\n",
    "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/a\\\n\
#endif\n",
korbb's avatar
korbb committed
3830 3831 3832 3833
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3834
 *  Description of Sysv68_String fix
korbb's avatar
korbb committed
3835
 */
3836
#define SYSV68_STRING_FIXIDX             96
korbb's avatar
korbb committed
3837
tSCC zSysv68_StringName[] =
3838 3839
     "sysv68_string";

korbb's avatar
korbb committed
3840 3841 3842 3843
/*
 *  File name selection pattern
 */
tSCC zSysv68_StringList[] =
korbb's avatar
korbb committed
3844
  "|string.h|";
korbb's avatar
korbb committed
3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855
/*
 *  Machine/OS name selection pattern
 */
#define apzSysv68_StringMachs (const char**)NULL
#define SYSV68_STRING_TEST_CT  0
#define aSysv68_StringTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Sysv68_String
 */
const char* apzSysv68_StringPatch[] = { "sed",
korbb's avatar
korbb committed
3856 3857 3858 3859 3860 3861
    "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
    "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
    "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
    "-e", "/^extern char$/N",
    "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
    "-e", "/^\tstrncmp(),$/N",
korbb's avatar
korbb committed
3862 3863 3864
    "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
extern unsigned int\\\n\
\\2/",
korbb's avatar
korbb committed
3865 3866
    "-e", "/^extern int$/N",
    "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
korbb's avatar
korbb committed
3867 3868 3869 3870
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3871
 *  Description of Sysz_Stdlib_For_Sun fix
korbb's avatar
korbb committed
3872
 */
3873
#define SYSZ_STDLIB_FOR_SUN_FIXIDX       97
korbb's avatar
korbb committed
3874
tSCC zSysz_Stdlib_For_SunName[] =
3875 3876
     "sysz_stdlib_for_sun";

korbb's avatar
korbb committed
3877 3878 3879 3880
/*
 *  File name selection pattern
 */
tSCC zSysz_Stdlib_For_SunList[] =
korbb's avatar
korbb committed
3881
  "|stdlib.h|";
korbb's avatar
korbb committed
3882 3883 3884
/*
 *  Machine/OS name selection pattern
 */
3885
#define apzSysz_Stdlib_For_SunMachs (const char**)NULL
korbb's avatar
korbb committed
3886 3887 3888 3889 3890 3891 3892
#define SYSZ_STDLIB_FOR_SUN_TEST_CT  0
#define aSysz_Stdlib_For_SunTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Sysz_Stdlib_For_Sun
 */
const char* apzSysz_Stdlib_For_SunPatch[] = { "sed",
korbb's avatar
korbb committed
3893 3894 3895 3896 3897
    "-e", "s/int\tabort/void\tabort/g",
    "-e", "s/int\tfree/void\tfree/g",
    "-e", "s/char[ \t]*\\*[ \t]*calloc/void \\*\tcalloc/g",
    "-e", "s/char[ \t]*\\*[ \t]*malloc/void \\*\tmalloc/g",
    "-e", "s/char[ \t]*\\*[ \t]*realloc/void \\*\trealloc/g",
3898
    "-e", "s/char[ \t]*\\*[ \t]*bsearch/void \\*\tbsearch/g",
korbb's avatar
korbb committed
3899
    "-e", "s/int[ \t][ \t]*exit/void\texit/g",
korbb's avatar
korbb committed
3900 3901 3902 3903
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3904
 *  Description of Sysz_Stdtypes_For_Sun fix
korbb's avatar
korbb committed
3905
 */
3906
#define SYSZ_STDTYPES_FOR_SUN_FIXIDX     98
korbb's avatar
korbb committed
3907
tSCC zSysz_Stdtypes_For_SunName[] =
3908 3909
     "sysz_stdtypes_for_sun";

korbb's avatar
korbb committed
3910 3911 3912 3913
/*
 *  File name selection pattern
 */
tSCC zSysz_Stdtypes_For_SunList[] =
korbb's avatar
korbb committed
3914
  "|sys/stdtypes.h|";
korbb's avatar
korbb committed
3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925
/*
 *  Machine/OS name selection pattern
 */
#define apzSysz_Stdtypes_For_SunMachs (const char**)NULL
#define SYSZ_STDTYPES_FOR_SUN_TEST_CT  0
#define aSysz_Stdtypes_For_SunTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Sysz_Stdtypes_For_Sun
 */
const char* apzSysz_Stdtypes_For_SunPatch[] = { "sed",
korbb's avatar
korbb committed
3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940
    "-e", "/[\t ]size_t.*;/i\\\n\
#ifndef _GCC_SIZE_T\\\n\
#define _GCC_SIZE_T\n",
    "-e", "/[\t ]size_t.*;/a\\\n\
#endif\n",
    "-e", "/[\t ]ptrdiff_t.*;/i\\\n\
#ifndef _GCC_PTRDIFF_T\\\n\
#define _GCC_PTRDIFF_T\n",
    "-e", "/[\t ]ptrdiff_t.*;/a\\\n\
#endif\n",
    "-e", "/[\t ]wchar_t.*;/i\\\n\
#ifndef _GCC_WCHAR_T\\\n\
#define _GCC_WCHAR_T\n",
    "-e", "/[\t ]wchar_t.*;/a\\\n\
#endif\n",
korbb's avatar
korbb committed
3941 3942 3943 3944
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3945
 *  Description of Tinfo_Cplusplus fix
korbb's avatar
korbb committed
3946
 */
3947
#define TINFO_CPLUSPLUS_FIXIDX           99
korbb's avatar
korbb committed
3948
tSCC zTinfo_CplusplusName[] =
3949 3950
     "tinfo_cplusplus";

korbb's avatar
korbb committed
3951 3952 3953 3954
/*
 *  File name selection pattern
 */
tSCC zTinfo_CplusplusList[] =
korbb's avatar
korbb committed
3955
  "|tinfo.h|";
korbb's avatar
korbb committed
3956 3957 3958 3959
/*
 *  Machine/OS name selection pattern
 */
#define apzTinfo_CplusplusMachs (const char**)NULL
3960 3961 3962 3963 3964 3965 3966 3967 3968 3969

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zTinfo_CplusplusSelect0[] =
       "[ \t]_cplusplus";

#define    TINFO_CPLUSPLUS_TEST_CT  1
tTestDesc aTinfo_CplusplusTests[] = {
  { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3970 3971 3972 3973 3974

/*
 *  Fix Command Arguments for Tinfo_Cplusplus
 */
const char* apzTinfo_CplusplusPatch[] = { "sed",
korbb's avatar
korbb committed
3975
    "-e", "s/[ \t]_cplusplus/ __cplusplus/",
korbb's avatar
korbb committed
3976 3977 3978 3979
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3980
 *  Description of Ultrix_Fix_Fixproto fix
korbb's avatar
korbb committed
3981
 */
3982
#define ULTRIX_FIX_FIXPROTO_FIXIDX       100
korbb's avatar
korbb committed
3983
tSCC zUltrix_Fix_FixprotoName[] =
3984 3985
     "ultrix_fix_fixproto";

korbb's avatar
korbb committed
3986 3987 3988 3989
/*
 *  File name selection pattern
 */
tSCC zUltrix_Fix_FixprotoList[] =
korbb's avatar
korbb committed
3990
  "|sys/utsname.h|";
korbb's avatar
korbb committed
3991 3992 3993 3994 3995 3996
/*
 *  Machine/OS name selection pattern
 */
#define apzUltrix_Fix_FixprotoMachs (const char**)NULL

/*
korbb's avatar
korbb committed
3997
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
3998 3999 4000 4001 4002 4003
 */
tSCC zUltrix_Fix_FixprotoSelect0[] =
       "ULTRIX";

#define    ULTRIX_FIX_FIXPROTO_TEST_CT  1
tTestDesc aUltrix_Fix_FixprotoTests[] = {
korbb's avatar
korbb committed
4004
  { TT_EGREP,    zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4005 4006 4007 4008 4009

/*
 *  Fix Command Arguments for Ultrix_Fix_Fixproto
 */
const char* apzUltrix_Fix_FixprotoPatch[] = { "sed",
korbb's avatar
korbb committed
4010 4011
    "-e", "/^[ \t]*extern[ \t]*int[ \t]*uname();$/i\\\n\
struct utsname;\n",
korbb's avatar
korbb committed
4012 4013 4014 4015
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4016
 *  Description of Ultrix_Atof_Param fix
korbb's avatar
korbb committed
4017
 */
4018
#define ULTRIX_ATOF_PARAM_FIXIDX         101
korbb's avatar
korbb committed
4019
tSCC zUltrix_Atof_ParamName[] =
4020 4021
     "ultrix_atof_param";

korbb's avatar
korbb committed
4022 4023 4024 4025
/*
 *  File name selection pattern
 */
tSCC zUltrix_Atof_ParamList[] =
korbb's avatar
korbb committed
4026
  "|math.h|";
korbb's avatar
korbb committed
4027 4028 4029 4030
/*
 *  Machine/OS name selection pattern
 */
#define apzUltrix_Atof_ParamMachs (const char**)NULL
4031 4032 4033 4034 4035 4036 4037 4038 4039 4040

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zUltrix_Atof_ParamSelect0[] =
       "atof\\([ \t]*char";

#define    ULTRIX_ATOF_PARAM_TEST_CT  1
tTestDesc aUltrix_Atof_ParamTests[] = {
  { TT_EGREP,    zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4041 4042 4043 4044 4045

/*
 *  Fix Command Arguments for Ultrix_Atof_Param
 */
const char* apzUltrix_Atof_ParamPatch[] = { "sed",
korbb's avatar
korbb committed
4046
    "-e", "s@atof(\\([ \t]*char[ \t]*\\*[^)]*\\))@atof(const \\1)@",
korbb's avatar
korbb committed
4047 4048 4049 4050
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4051
 *  Description of Ultrix_Const fix
korbb's avatar
korbb committed
4052
 */
4053
#define ULTRIX_CONST_FIXIDX              102
korbb's avatar
korbb committed
4054
tSCC zUltrix_ConstName[] =
4055 4056
     "ultrix_const";

korbb's avatar
korbb committed
4057 4058 4059 4060
/*
 *  File name selection pattern
 */
tSCC zUltrix_ConstList[] =
korbb's avatar
korbb committed
4061
  "|stdio.h|";
korbb's avatar
korbb committed
4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072
/*
 *  Machine/OS name selection pattern
 */
#define apzUltrix_ConstMachs (const char**)NULL
#define ULTRIX_CONST_TEST_CT  0
#define aUltrix_ConstTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Ultrix_Const
 */
const char* apzUltrix_ConstPatch[] = { "sed",
korbb's avatar
korbb committed
4073 4074 4075 4076 4077 4078 4079 4080 4081
    "-e", "s@perror( char \\*__s );@perror( const char *__s );@",
    "-e", "s@fputs( char \\*__s,@fputs( const char *__s,@",
    "-e", "s@fopen( char \\*__filename, char \\*__type );@fopen( const char *__filename, const char *__type );@",
    "-e", "s@fwrite( void \\*__ptr,@fwrite( const void *__ptr,@",
    "-e", "s@fscanf( FILE \\*__stream, char \\*__format,@fscanf( FILE *__stream, const char *__format,@",
    "-e", "s@scanf( char \\*__format,@scanf( const char *__format,@",
    "-e", "s@sscanf( char \\*__s, char \\*__format,@sscanf( const char *__s, const char *__format,@",
    "-e", "s@popen(char \\*, char \\*);@popen(const char *, const char *);@",
    "-e", "s@tempnam(char\\*,char\\*);@tempnam(const char*,const char*);@",
korbb's avatar
korbb committed
4082 4083 4084 4085
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4086
 *  Description of Ultrix_Ifdef fix
korbb's avatar
korbb committed
4087
 */
4088
#define ULTRIX_IFDEF_FIXIDX              103
korbb's avatar
korbb committed
4089
tSCC zUltrix_IfdefName[] =
4090 4091
     "ultrix_ifdef";

korbb's avatar
korbb committed
4092 4093 4094 4095
/*
 *  File name selection pattern
 */
tSCC zUltrix_IfdefList[] =
korbb's avatar
korbb committed
4096
  "|sys/file.h|";
korbb's avatar
korbb committed
4097 4098 4099 4100 4101 4102
/*
 *  Machine/OS name selection pattern
 */
#define apzUltrix_IfdefMachs (const char**)NULL

/*
korbb's avatar
korbb committed
4103
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
4104 4105
 */
tSCC zUltrix_IfdefSelect0[] =
4106
       "#ifdef KERNEL[ \t]*[^ \t]";
korbb's avatar
korbb committed
4107 4108 4109

#define    ULTRIX_IFDEF_TEST_CT  1
tTestDesc aUltrix_IfdefTests[] = {
korbb's avatar
korbb committed
4110
  { TT_EGREP,    zUltrix_IfdefSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4111 4112 4113 4114 4115

/*
 *  Fix Command Arguments for Ultrix_Ifdef
 */
const char* apzUltrix_IfdefPatch[] = { "sed",
korbb's avatar
korbb committed
4116
    "-e", "s/#ifdef KERNEL/#if defined(KERNEL)/",
korbb's avatar
korbb committed
4117 4118 4119 4120
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4121
 *  Description of Ultrix_Nested_Cmnt fix
korbb's avatar
korbb committed
4122
 */
4123
#define ULTRIX_NESTED_CMNT_FIXIDX        104
korbb's avatar
korbb committed
4124
tSCC zUltrix_Nested_CmntName[] =
4125 4126
     "ultrix_nested_cmnt";

korbb's avatar
korbb committed
4127 4128 4129 4130
/*
 *  File name selection pattern
 */
tSCC zUltrix_Nested_CmntList[] =
korbb's avatar
korbb committed
4131
  "|rpc/svc.h|";
korbb's avatar
korbb committed
4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142
/*
 *  Machine/OS name selection pattern
 */
#define apzUltrix_Nested_CmntMachs (const char**)NULL
#define ULTRIX_NESTED_CMNT_TEST_CT  0
#define aUltrix_Nested_CmntTests   (tTestDesc*)NULL

/*
 *  Fix Command Arguments for Ultrix_Nested_Cmnt
 */
const char* apzUltrix_Nested_CmntPatch[] = { "sed",
korbb's avatar
korbb committed
4143
    "-e", "s@^\\( \\*\tint protocol;  \\)/\\*@\\1*/ /*@",
korbb's avatar
korbb committed
4144 4145 4146 4147
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4148
 *  Description of Ultrix_Static fix
korbb's avatar
korbb committed
4149
 */
4150
#define ULTRIX_STATIC_FIXIDX             105
korbb's avatar
korbb committed
4151
tSCC zUltrix_StaticName[] =
4152 4153
     "ultrix_static";

korbb's avatar
korbb committed
4154 4155 4156 4157
/*
 *  File name selection pattern
 */
tSCC zUltrix_StaticList[] =
korbb's avatar
korbb committed
4158
  "|machine/cpu.h|";
korbb's avatar
korbb committed
4159 4160 4161 4162 4163 4164
/*
 *  Machine/OS name selection pattern
 */
#define apzUltrix_StaticMachs (const char**)NULL

/*
korbb's avatar
korbb committed
4165
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
4166 4167 4168 4169 4170 4171
 */
tSCC zUltrix_StaticSelect0[] =
       "#include \"r[34]_cpu";

#define    ULTRIX_STATIC_TEST_CT  1
tTestDesc aUltrix_StaticTests[] = {
korbb's avatar
korbb committed
4172
  { TT_EGREP,    zUltrix_StaticSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4173 4174 4175 4176 4177

/*
 *  Fix Command Arguments for Ultrix_Static
 */
const char* apzUltrix_StaticPatch[] = { "sed",
korbb's avatar
korbb committed
4178 4179 4180
    "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
    "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
    "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
korbb's avatar
korbb committed
4181 4182 4183 4184
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4185
 *  Description of Undefine_Null fix
korbb's avatar
korbb committed
4186
 */
4187
#define UNDEFINE_NULL_FIXIDX             106
korbb's avatar
korbb committed
4188
tSCC zUndefine_NullName[] =
4189 4190
     "undefine_null";

korbb's avatar
korbb committed
4191 4192 4193 4194 4195 4196 4197 4198 4199 4200
/*
 *  File name selection pattern
 */
#define zUndefine_NullList (char*)NULL
/*
 *  Machine/OS name selection pattern
 */
#define apzUndefine_NullMachs (const char**)NULL

/*
korbb's avatar
korbb committed
4201
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
4202 4203
 */
tSCC zUndefine_NullSelect0[] =
4204
       "^#[ \t]*define[ \t]*[ \t]NULL[ \t\r]";
korbb's avatar
korbb committed
4205 4206

/*
korbb's avatar
korbb committed
4207
 *  content bypass pattern - skip fix if pattern found
korbb's avatar
korbb committed
4208 4209
 */
tSCC zUndefine_NullBypass0[] =
4210
       "#[ \t]*(ifn|un)def[ \t]*[ \t]NULL($|[ \t\r])";
korbb's avatar
korbb committed
4211 4212 4213

#define    UNDEFINE_NULL_TEST_CT  2
tTestDesc aUndefine_NullTests[] = {
korbb's avatar
korbb committed
4214 4215
  { TT_NEGREP,   zUndefine_NullBypass0, (regex_t*)NULL },
  { TT_EGREP,    zUndefine_NullSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4216 4217 4218 4219 4220

/*
 *  Fix Command Arguments for Undefine_Null
 */
const char* apzUndefine_NullPatch[] = { "sed",
4221
    "-e", "/^#[ \t]*define[ \t][ \t]*NULL[ \t\r]/i\\\n\
korbb's avatar
korbb committed
4222
#undef NULL\n",
korbb's avatar
korbb committed
4223 4224
    (char*)NULL };

korbb's avatar
korbb committed
4225 4226 4227 4228
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Unixware7_Byteorder_Fix fix
 */
4229
#define UNIXWARE7_BYTEORDER_FIX_FIXIDX   107
korbb's avatar
korbb committed
4230
tSCC zUnixware7_Byteorder_FixName[] =
4231 4232
     "unixware7_byteorder_fix";

korbb's avatar
korbb committed
4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267
/*
 *  File name selection pattern
 */
tSCC zUnixware7_Byteorder_FixList[] =
  "|arpa/inet.h|";
/*
 *  Machine/OS name selection pattern
 */
tSCC* apzUnixware7_Byteorder_FixMachs[] = {
        "*-*-sysv4*",
        "i[34567]86-*-sysv5*",
        "i[34567]86-*-udk*",
        "i[34567]86-*-solaris2.[0-4]",
        "powerpcle-*-solaris2.[0-4]",
        "sparc-*-solaris2.[0-4]",
        (const char*)NULL };

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zUnixware7_Byteorder_FixSelect0[] =
       "in_port_t";

#define    UNIXWARE7_BYTEORDER_FIX_TEST_CT  1
tTestDesc aUnixware7_Byteorder_FixTests[] = {
  { TT_EGREP,    zUnixware7_Byteorder_FixSelect0, (regex_t*)NULL }, };

/*
 *  Fix Command Arguments for Unixware7_Byteorder_Fix
 */
const char* apzUnixware7_Byteorder_FixPatch[] = { "sed",
    "-e", "/^extern.*htons.*(in_port_t)/d",
    "-e", "/^extern.*ntohs.*(in_port_t)/d",
    (char*)NULL };

korbb's avatar
korbb committed
4268 4269
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4270
 *  Description of Va_I960_Macro fix
korbb's avatar
korbb committed
4271
 */
4272
#define VA_I960_MACRO_FIXIDX             108
korbb's avatar
korbb committed
4273
tSCC zVa_I960_MacroName[] =
4274 4275
     "va_i960_macro";

korbb's avatar
korbb committed
4276 4277 4278 4279
/*
 *  File name selection pattern
 */
tSCC zVa_I960_MacroList[] =
korbb's avatar
korbb committed
4280
  "|arch/i960/archI960.h|";
korbb's avatar
korbb committed
4281 4282 4283 4284 4285 4286
/*
 *  Machine/OS name selection pattern
 */
#define apzVa_I960_MacroMachs (const char**)NULL

/*
korbb's avatar
korbb committed
4287
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
4288 4289 4290 4291 4292 4293
 */
tSCC zVa_I960_MacroSelect0[] =
       "__(vsiz|vali|vpad|alignof__)";

#define    VA_I960_MACRO_TEST_CT  1
tTestDesc aVa_I960_MacroTests[] = {
korbb's avatar
korbb committed
4294
  { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4295 4296 4297 4298 4299

/*
 *  Fix Command Arguments for Va_I960_Macro
 */
const char* apzVa_I960_MacroPatch[] = { "sed",
korbb's avatar
korbb committed
4300 4301 4302 4303
    "-e", "s/__vsiz/__vxvsiz/",
    "-e", "s/__vali/__vxvali/",
    "-e", "s/__vpad/__vxvpad/",
    "-e", "s/__alignof__/__vxalignof__/",
korbb's avatar
korbb committed
4304 4305 4306 4307
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4308
 *  Description of Void_Null fix
korbb's avatar
korbb committed
4309
 */
4310
#define VOID_NULL_FIXIDX                 109
korbb's avatar
korbb committed
4311
tSCC zVoid_NullName[] =
4312 4313
     "void_null";

korbb's avatar
korbb committed
4314 4315 4316 4317
/*
 *  File name selection pattern
 */
tSCC zVoid_NullList[] =
korbb's avatar
korbb committed
4318
  "|curses.h|dbm.h|locale.h|stdio.h|stdlib.h|string.h|time.h|unistd.h|sys/dir.h|sys/param.h|sys/types.h|";
korbb's avatar
korbb committed
4319 4320 4321 4322 4323 4324
/*
 *  Machine/OS name selection pattern
 */
#define apzVoid_NullMachs (const char**)NULL

/*
korbb's avatar
korbb committed
4325
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
4326 4327 4328 4329 4330 4331
 */
tSCC zVoid_NullSelect0[] =
       "#[ \t]*define[ \t][ \t]*NULL[ \t].*void";

#define    VOID_NULL_TEST_CT  1
tTestDesc aVoid_NullTests[] = {
korbb's avatar
korbb committed
4332
  { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4333 4334 4335 4336 4337

/*
 *  Fix Command Arguments for Void_Null
 */
const char* apzVoid_NullPatch[] = { "sed",
korbb's avatar
korbb committed
4338
    "-e", "s/^#[ \t]*define[ \t]*NULL[ \t]*((void[ \t]*\\*)0)/#define NULL 0/",
korbb's avatar
korbb committed
4339 4340 4341 4342
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4343
 *  Description of Vxworks_Gcc_Problem fix
korbb's avatar
korbb committed
4344
 */
4345
#define VXWORKS_GCC_PROBLEM_FIXIDX       110
korbb's avatar
korbb committed
4346
tSCC zVxworks_Gcc_ProblemName[] =
4347 4348
     "vxworks_gcc_problem";

korbb's avatar
korbb committed
4349 4350 4351 4352
/*
 *  File name selection pattern
 */
tSCC zVxworks_Gcc_ProblemList[] =
korbb's avatar
korbb committed
4353
  "|types/vxTypesBase.h|";
korbb's avatar
korbb committed
4354 4355 4356 4357 4358 4359
/*
 *  Machine/OS name selection pattern
 */
#define apzVxworks_Gcc_ProblemMachs (const char**)NULL

/*
korbb's avatar
korbb committed
4360
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
4361 4362 4363 4364 4365 4366
 */
tSCC zVxworks_Gcc_ProblemSelect0[] =
       "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";

#define    VXWORKS_GCC_PROBLEM_TEST_CT  1
tTestDesc aVxworks_Gcc_ProblemTests[] = {
korbb's avatar
korbb committed
4367
  { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4368 4369 4370 4371 4372

/*
 *  Fix Command Arguments for Vxworks_Gcc_Problem
 */
const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
korbb's avatar
korbb committed
4373
    "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
korbb's avatar
korbb committed
4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388
    "-e", "/[ \t]size_t/i\\\n\
#ifndef _GCC_SIZE_T\\\n\
#define _GCC_SIZE_T\n",
    "-e", "/[ \t]size_t/a\\\n\
#endif\n",
    "-e", "/[ \t]ptrdiff_t/i\\\n\
#ifndef _GCC_PTRDIFF_T\\\n\
#define _GCC_PTRDIFF_T\n",
    "-e", "/[ \t]ptrdiff_t/a\\\n\
#endif\n",
    "-e", "/[ \t]wchar_t/i\\\n\
#ifndef _GCC_WCHAR_T\\\n\
#define _GCC_WCHAR_T\n",
    "-e", "/[ \t]wchar_t/a\\\n\
#endif\n",
korbb's avatar
korbb committed
4389 4390 4391 4392
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4393
 *  Description of Vxworks_Needs_Vxtypes fix
korbb's avatar
korbb committed
4394
 */
4395
#define VXWORKS_NEEDS_VXTYPES_FIXIDX     111
korbb's avatar
korbb committed
4396
tSCC zVxworks_Needs_VxtypesName[] =
4397 4398
     "vxworks_needs_vxtypes";

korbb's avatar
korbb committed
4399 4400 4401 4402
/*
 *  File name selection pattern
 */
tSCC zVxworks_Needs_VxtypesList[] =
korbb's avatar
korbb committed
4403
  "|time.h|";
korbb's avatar
korbb committed
4404 4405 4406 4407 4408 4409
/*
 *  Machine/OS name selection pattern
 */
#define apzVxworks_Needs_VxtypesMachs (const char**)NULL

/*
korbb's avatar
korbb committed
4410
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
4411 4412 4413 4414 4415 4416
 */
tSCC zVxworks_Needs_VxtypesSelect0[] =
       "uint_t[ \t][ \t]*_clocks_per_sec";

#define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
tTestDesc aVxworks_Needs_VxtypesTests[] = {
korbb's avatar
korbb committed
4417
  { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4418 4419 4420 4421 4422

/*
 *  Fix Command Arguments for Vxworks_Needs_Vxtypes
 */
const char* apzVxworks_Needs_VxtypesPatch[] = { "sed",
korbb's avatar
korbb committed
4423
    "-e", "s/uint_t/unsigned int/",
korbb's avatar
korbb committed
4424 4425 4426 4427
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4428
 *  Description of Vxworks_Needs_Vxworks fix
korbb's avatar
korbb committed
4429
 */
4430
#define VXWORKS_NEEDS_VXWORKS_FIXIDX     112
korbb's avatar
korbb committed
4431
tSCC zVxworks_Needs_VxworksName[] =
4432 4433
     "vxworks_needs_vxworks";

korbb's avatar
korbb committed
4434 4435 4436 4437
/*
 *  File name selection pattern
 */
tSCC zVxworks_Needs_VxworksList[] =
korbb's avatar
korbb committed
4438
  "|sys/stat.h|";
korbb's avatar
korbb committed
4439 4440 4441 4442 4443 4444
/*
 *  Machine/OS name selection pattern
 */
#define apzVxworks_Needs_VxworksMachs (const char**)NULL

/*
korbb's avatar
korbb committed
4445
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
4446 4447 4448 4449 4450
 */
tSCC zVxworks_Needs_VxworksSelect0[] =
       "#[ \t]define[ \t][ \t]*__INCstath";

/*
korbb's avatar
korbb committed
4451
 *  perform the 'test' shell command - do fix on success
korbb's avatar
korbb committed
4452 4453
 */
tSCC zVxworks_Needs_VxworksTest0[] =
korbb's avatar
korbb committed
4454
       " -r types/vxTypesOld.h";
korbb's avatar
korbb committed
4455
tSCC zVxworks_Needs_VxworksTest1[] =
korbb's avatar
korbb committed
4456
       " -n \"`egrep '#include' $file`\"";
korbb's avatar
korbb committed
4457
tSCC zVxworks_Needs_VxworksTest2[] =
korbb's avatar
korbb committed
4458
       " -n \"`egrep ULONG $file`\"";
korbb's avatar
korbb committed
4459 4460 4461

#define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
tTestDesc aVxworks_Needs_VxworksTests[] = {
korbb's avatar
korbb committed
4462 4463 4464 4465
  { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
  { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
  { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
  { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4466 4467 4468 4469 4470

/*
 *  Fix Command Arguments for Vxworks_Needs_Vxworks
 */
const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
korbb's avatar
korbb committed
4471 4472
    "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
#include <types/vxTypesOld.h>\n",
korbb's avatar
korbb committed
4473 4474 4475 4476
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4477
 *  Description of Vxworks_Time fix
korbb's avatar
korbb committed
4478
 */
4479
#define VXWORKS_TIME_FIXIDX              113
korbb's avatar
korbb committed
4480
tSCC zVxworks_TimeName[] =
4481 4482
     "vxworks_time";

korbb's avatar
korbb committed
4483 4484 4485 4486
/*
 *  File name selection pattern
 */
tSCC zVxworks_TimeList[] =
korbb's avatar
korbb committed
4487
  "|time.h|";
korbb's avatar
korbb committed
4488 4489 4490 4491 4492 4493
/*
 *  Machine/OS name selection pattern
 */
#define apzVxworks_TimeMachs (const char**)NULL

/*
korbb's avatar
korbb committed
4494
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
4495 4496 4497 4498 4499
 */
tSCC zVxworks_TimeSelect0[] =
       "VOIDFUNCPTR";

/*
korbb's avatar
korbb committed
4500
 *  perform the 'test' shell command - do fix on success
korbb's avatar
korbb committed
4501 4502
 */
tSCC zVxworks_TimeTest0[] =
korbb's avatar
korbb committed
4503
       " -r vxWorks.h";
korbb's avatar
korbb committed
4504 4505 4506

#define    VXWORKS_TIME_TEST_CT  2
tTestDesc aVxworks_TimeTests[] = {
korbb's avatar
korbb committed
4507 4508
  { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
  { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4509 4510 4511 4512 4513

/*
 *  Fix Command Arguments for Vxworks_Time
 */
const char* apzVxworks_TimePatch[] = { "sed",
korbb's avatar
korbb committed
4514 4515 4516 4517 4518 4519 4520 4521 4522
    "-e", "/VOIDFUNCPTR/i\\\n\
#ifndef __gcc_VOIDFUNCPTR_defined\\\n\
#ifdef __cplusplus\\\n\
typedef void (*__gcc_VOIDFUNCPTR) (...);\\\n\
#else\\\n\
typedef void (*__gcc_VOIDFUNCPTR) ();\\\n\
#endif\\\n\
#define __gcc_VOIDFUNCPTR_defined\\\n\
#endif\n",
korbb's avatar
korbb committed
4523
    "-e", "s/VOIDFUNCPTR/__gcc_VOIDFUNCPTR/g",
korbb's avatar
korbb committed
4524 4525 4526 4527
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4528
 *  Description of X11_Class fix
korbb's avatar
korbb committed
4529
 */
4530
#define X11_CLASS_FIXIDX                 114
korbb's avatar
korbb committed
4531
tSCC zX11_ClassName[] =
4532 4533
     "x11_class";

korbb's avatar
korbb committed
4534 4535 4536 4537
/*
 *  File name selection pattern
 */
tSCC zX11_ClassList[] =
korbb's avatar
korbb committed
4538
  "|X11/ShellP.h|";
korbb's avatar
korbb committed
4539 4540 4541 4542 4543 4544
/*
 *  Machine/OS name selection pattern
 */
#define apzX11_ClassMachs (const char**)NULL

/*
korbb's avatar
korbb committed
4545
 *  content bypass pattern - skip fix if pattern found
korbb's avatar
korbb committed
4546 4547 4548 4549 4550 4551
 */
tSCC zX11_ClassBypass0[] =
       "__cplusplus";

#define    X11_CLASS_TEST_CT  1
tTestDesc aX11_ClassTests[] = {
korbb's avatar
korbb committed
4552
  { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4553 4554 4555 4556 4557

/*
 *  Fix Command Arguments for X11_Class
 */
const char* apzX11_ClassPatch[] = { "sed",
korbb's avatar
korbb committed
4558 4559 4560 4561 4562 4563
    "-e", "/char \\*class;/i\\\n\
#ifdef __cplusplus\\\n\
\tchar *c_class;\\\n\
#else\n",
    "-e", "/char \\*class;/a\\\n\
#endif\n",
korbb's avatar
korbb committed
4564 4565 4566 4567
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4568
 *  Description of X11_Class_Usage fix
korbb's avatar
korbb committed
4569
 */
4570
#define X11_CLASS_USAGE_FIXIDX           115
korbb's avatar
korbb committed
4571
tSCC zX11_Class_UsageName[] =
4572 4573
     "x11_class_usage";

korbb's avatar
korbb committed
4574 4575 4576 4577
/*
 *  File name selection pattern
 */
tSCC zX11_Class_UsageList[] =
korbb's avatar
korbb committed
4578
  "|Xm/BaseClassI.h|";
korbb's avatar
korbb committed
4579 4580 4581 4582 4583 4584
/*
 *  Machine/OS name selection pattern
 */
#define apzX11_Class_UsageMachs (const char**)NULL

/*
korbb's avatar
korbb committed
4585
 *  content bypass pattern - skip fix if pattern found
korbb's avatar
korbb committed
4586 4587 4588 4589 4590 4591
 */
tSCC zX11_Class_UsageBypass0[] =
       "__cplusplus";

#define    X11_CLASS_USAGE_TEST_CT  1
tTestDesc aX11_Class_UsageTests[] = {
korbb's avatar
korbb committed
4592
  { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4593 4594 4595 4596 4597

/*
 *  Fix Command Arguments for X11_Class_Usage
 */
const char* apzX11_Class_UsagePatch[] = { "sed",
korbb's avatar
korbb committed
4598
    "-e", "s/ class[)]/ c_class)/g",
korbb's avatar
korbb committed
4599 4600 4601 4602
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4603
 *  Description of X11_New fix
korbb's avatar
korbb committed
4604
 */
4605
#define X11_NEW_FIXIDX                   116
korbb's avatar
korbb committed
4606
tSCC zX11_NewName[] =
4607 4608
     "x11_new";

korbb's avatar
korbb committed
4609 4610 4611 4612
/*
 *  File name selection pattern
 */
tSCC zX11_NewList[] =
korbb's avatar
korbb committed
4613
  "|Xm/Traversal.h|";
korbb's avatar
korbb committed
4614 4615 4616 4617 4618 4619
/*
 *  Machine/OS name selection pattern
 */
#define apzX11_NewMachs (const char**)NULL

/*
korbb's avatar
korbb committed
4620
 *  content bypass pattern - skip fix if pattern found
korbb's avatar
korbb committed
4621 4622 4623 4624 4625 4626
 */
tSCC zX11_NewBypass0[] =
       "__cplusplus";

#define    X11_NEW_TEST_CT  1
tTestDesc aX11_NewTests[] = {
korbb's avatar
korbb committed
4627
  { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4628 4629 4630 4631 4632

/*
 *  Fix Command Arguments for X11_New
 */
const char* apzX11_NewPatch[] = { "sed",
korbb's avatar
korbb committed
4633 4634 4635 4636 4637 4638
    "-e", "/Widget\told, new;/i\\\n\
#ifdef __cplusplus\\\n\
\tWidget\told, c_new;\\\n\
#else\n",
    "-e", "/Widget\told, new;/a\\\n\
#endif\n",
korbb's avatar
korbb committed
4639
    "-e", "s/Widget new,/Widget c_new,/g",
korbb's avatar
korbb committed
4640 4641 4642 4643
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4644
 *  Description of X11_Sprintf fix
korbb's avatar
korbb committed
4645
 */
4646
#define X11_SPRINTF_FIXIDX               117
korbb's avatar
korbb committed
4647
tSCC zX11_SprintfName[] =
4648 4649
     "x11_sprintf";

korbb's avatar
korbb committed
4650 4651 4652 4653
/*
 *  File name selection pattern
 */
tSCC zX11_SprintfList[] =
4654
  "|X11/Xmu.h|X11/Xmu/Xmu.h|";
korbb's avatar
korbb committed
4655 4656 4657 4658
/*
 *  Machine/OS name selection pattern
 */
#define apzX11_SprintfMachs (const char**)NULL
4659 4660 4661 4662 4663 4664 4665 4666 4667 4668

/*
 *  content selection pattern - do fix if pattern found
 */
tSCC zX11_SprintfSelect0[] =
       "sprintf\\(\\)";

#define    X11_SPRINTF_TEST_CT  1
tTestDesc aX11_SprintfTests[] = {
  { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4669 4670 4671 4672 4673

/*
 *  Fix Command Arguments for X11_Sprintf
 */
const char* apzX11_SprintfPatch[] = { "sed",
korbb's avatar
korbb committed
4674 4675 4676
    "-e", "s,^extern char \\*\tsprintf();$,#ifndef __STDC__\\\n\
extern char *\tsprintf();\\\n\
#endif /* !defined __STDC__ */,",
korbb's avatar
korbb committed
4677 4678
    (char*)NULL };

4679

korbb's avatar
korbb committed
4680 4681 4682 4683
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  List of all fixes
 */
4684
#define REGEX_COUNT          104
korbb's avatar
korbb committed
4685
#define MACH_LIST_SIZE_LIMIT 279
4686
#define FIX_COUNT            118
korbb's avatar
korbb committed
4687

korbb's avatar
korbb committed
4688
tFixDesc fixDescList[ FIX_COUNT ] = {
korbb's avatar
korbb committed
4689
  {  zAaa_Ki_IfaceName,    zAaa_Ki_IfaceList,
korbb's avatar
korbb committed
4690
     apzAaa_Ki_IfaceMachs,
korbb's avatar
korbb committed
4691 4692 4693 4694
     AAA_KI_IFACE_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAaa_Ki_IfaceTests,   apzAaa_Ki_IfacePatch },

  {  zAaa_KiName,    zAaa_KiList,
korbb's avatar
korbb committed
4695
     apzAaa_KiMachs,
korbb's avatar
korbb committed
4696 4697 4698 4699
     AAA_KI_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAaa_KiTests,   apzAaa_KiPatch },

  {  zAaa_Ki_CallsName,    zAaa_Ki_CallsList,
korbb's avatar
korbb committed
4700
     apzAaa_Ki_CallsMachs,
korbb's avatar
korbb committed
4701 4702 4703 4704
     AAA_KI_CALLS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAaa_Ki_CallsTests,   apzAaa_Ki_CallsPatch },

  {  zAaa_Ki_DefsName,    zAaa_Ki_DefsList,
korbb's avatar
korbb committed
4705
     apzAaa_Ki_DefsMachs,
korbb's avatar
korbb committed
4706 4707 4708 4709
     AAA_KI_DEFS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAaa_Ki_DefsTests,   apzAaa_Ki_DefsPatch },

  {  zAaa_Bad_FixesName,    zAaa_Bad_FixesList,
korbb's avatar
korbb committed
4710
     apzAaa_Bad_FixesMachs,
korbb's avatar
korbb committed
4711 4712 4713 4714
     AAA_BAD_FIXES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAaa_Bad_FixesTests,   apzAaa_Bad_FixesPatch },

  {  zAaa_TimeName,    zAaa_TimeList,
korbb's avatar
korbb committed
4715
     apzAaa_TimeMachs,
korbb's avatar
korbb committed
4716 4717 4718 4719
     AAA_TIME_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAaa_TimeTests,   apzAaa_TimePatch },

  {  zAab_Dgux_Int_VarargsName,    zAab_Dgux_Int_VarargsList,
korbb's avatar
korbb committed
4720
     apzAab_Dgux_Int_VarargsMachs,
korbb's avatar
korbb committed
4721 4722 4723
     AAB_DGUX_INT_VARARGS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAab_Dgux_Int_VarargsTests,   apzAab_Dgux_Int_VarargsPatch },

4724
  {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
korbb's avatar
korbb committed
4725
     apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
4726 4727
     AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch },
korbb's avatar
korbb committed
4728

4729
  {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
korbb's avatar
korbb committed
4730
     apzAab_Fd_Zero_Gnu_Types_HMachs,
4731 4732
     AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch },
korbb's avatar
korbb committed
4733

4734
  {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
korbb's avatar
korbb committed
4735
     apzAab_Fd_Zero_Selectbits_HMachs,
4736 4737
     AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch },
korbb's avatar
korbb committed
4738

4739
  {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
korbb's avatar
korbb committed
4740
     apzAab_Sun_MemcpyMachs,
4741 4742 4743
     AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch },

korbb's avatar
korbb committed
4744
  {  zAab_Svr4_Replace_ByteorderName,    zAab_Svr4_Replace_ByteorderList,
korbb's avatar
korbb committed
4745
     apzAab_Svr4_Replace_ByteorderMachs,
korbb's avatar
korbb committed
4746 4747 4748
     AAB_SVR4_REPLACE_BYTEORDER_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAab_Svr4_Replace_ByteorderTests,   apzAab_Svr4_Replace_ByteorderPatch },

4749
  {  zAab_Ultrix_Ansi_CompatName,    zAab_Ultrix_Ansi_CompatList,
korbb's avatar
korbb committed
4750
     apzAab_Ultrix_Ansi_CompatMachs,
4751 4752 4753
     AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAab_Ultrix_Ansi_CompatTests,   apzAab_Ultrix_Ansi_CompatPatch },

korbb's avatar
korbb committed
4754
  {  zAix_SyswaitName,    zAix_SyswaitList,
korbb's avatar
korbb committed
4755
     apzAix_SyswaitMachs,
korbb's avatar
korbb committed
4756 4757 4758 4759
     AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY,
     aAix_SyswaitTests,   apzAix_SyswaitPatch },

  {  zAix_VolatileName,    zAix_VolatileList,
korbb's avatar
korbb committed
4760
     apzAix_VolatileMachs,
korbb's avatar
korbb committed
4761 4762 4763 4764
     AIX_VOLATILE_TEST_CT, FD_MACH_ONLY,
     aAix_VolatileTests,   apzAix_VolatilePatch },

  {  zAlpha_GetoptName,    zAlpha_GetoptList,
korbb's avatar
korbb committed
4765
     apzAlpha_GetoptMachs,
korbb's avatar
korbb committed
4766 4767 4768 4769
     ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY,
     aAlpha_GetoptTests,   apzAlpha_GetoptPatch },

  {  zAlpha_ParensName,    zAlpha_ParensList,
korbb's avatar
korbb committed
4770
     apzAlpha_ParensMachs,
korbb's avatar
korbb committed
4771 4772 4773 4774
     ALPHA_PARENS_TEST_CT, FD_MACH_ONLY,
     aAlpha_ParensTests,   apzAlpha_ParensPatch },

  {  zAlpha_SbrkName,    zAlpha_SbrkList,
korbb's avatar
korbb committed
4775
     apzAlpha_SbrkMachs,
korbb's avatar
korbb committed
4776 4777 4778 4779
     ALPHA_SBRK_TEST_CT, FD_MACH_ONLY,
     aAlpha_SbrkTests,   apzAlpha_SbrkPatch },

  {  zArm_Norcroft_HintName,    zArm_Norcroft_HintList,
korbb's avatar
korbb committed
4780
     apzArm_Norcroft_HintMachs,
korbb's avatar
korbb committed
4781 4782 4783 4784
     ARM_NORCROFT_HINT_TEST_CT, FD_MACH_ONLY,
     aArm_Norcroft_HintTests,   apzArm_Norcroft_HintPatch },

  {  zArm_WcharName,    zArm_WcharList,
korbb's avatar
korbb committed
4785
     apzArm_WcharMachs,
korbb's avatar
korbb committed
4786 4787 4788 4789
     ARM_WCHAR_TEST_CT, FD_MACH_ONLY,
     aArm_WcharTests,   apzArm_WcharPatch },

  {  zAux_AsmName,    zAux_AsmList,
korbb's avatar
korbb committed
4790
     apzAux_AsmMachs,
korbb's avatar
korbb committed
4791 4792 4793 4794
     AUX_ASM_TEST_CT, FD_MACH_ONLY,
     aAux_AsmTests,   apzAux_AsmPatch },

  {  zAvoid_BoolName,    zAvoid_BoolList,
korbb's avatar
korbb committed
4795
     apzAvoid_BoolMachs,
korbb's avatar
korbb committed
4796 4797 4798 4799
     AVOID_BOOL_TEST_CT, FD_MACH_ONLY,
     aAvoid_BoolTests,   apzAvoid_BoolPatch },

  {  zBad_Struct_TermName,    zBad_Struct_TermList,
korbb's avatar
korbb committed
4800
     apzBad_Struct_TermMachs,
korbb's avatar
korbb committed
4801 4802 4803 4804
     BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY,
     aBad_Struct_TermTests,   apzBad_Struct_TermPatch },

  {  zBadquoteName,    zBadquoteList,
korbb's avatar
korbb committed
4805
     apzBadquoteMachs,
korbb's avatar
korbb committed
4806 4807 4808 4809
     BADQUOTE_TEST_CT, FD_MACH_ONLY,
     aBadquoteTests,   apzBadquotePatch },

  {  zBad_LvalName,    zBad_LvalList,
korbb's avatar
korbb committed
4810
     apzBad_LvalMachs,
korbb's avatar
korbb committed
4811 4812 4813 4814
     BAD_LVAL_TEST_CT, FD_MACH_ONLY,
     aBad_LvalTests,   apzBad_LvalPatch },

  {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
korbb's avatar
korbb committed
4815
     apzBroken_Assert_StdioMachs,
korbb's avatar
korbb committed
4816 4817 4818 4819
     BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY,
     aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch },

  {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
korbb's avatar
korbb committed
4820
     apzBroken_Assert_StdlibMachs,
korbb's avatar
korbb committed
4821 4822 4823
     BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY,
     aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch },

4824
  {  zBroken_CabsName,    zBroken_CabsList,
korbb's avatar
korbb committed
4825
     apzBroken_CabsMachs,
4826 4827 4828
     BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
     aBroken_CabsTests,   apzBroken_CabsPatch },

korbb's avatar
korbb committed
4829
  {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
korbb's avatar
korbb committed
4830
     apzDec_Intern_AsmMachs,
korbb's avatar
korbb committed
4831 4832 4833
     DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
     aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch },

korbb's avatar
korbb committed
4834
  {  zEcd_CursorName,    zEcd_CursorList,
korbb's avatar
korbb committed
4835
     apzEcd_CursorMachs,
korbb's avatar
korbb committed
4836 4837 4838 4839
     ECD_CURSOR_TEST_CT, FD_MACH_ONLY,
     aEcd_CursorTests,   apzEcd_CursorPatch },

  {  zHp_InlineName,    zHp_InlineList,
korbb's avatar
korbb committed
4840
     apzHp_InlineMachs,
korbb's avatar
korbb committed
4841 4842 4843 4844
     HP_INLINE_TEST_CT, FD_MACH_ONLY,
     aHp_InlineTests,   apzHp_InlinePatch },

  {  zHp_SysfileName,    zHp_SysfileList,
korbb's avatar
korbb committed
4845
     apzHp_SysfileMachs,
korbb's avatar
korbb committed
4846 4847 4848
     HP_SYSFILE_TEST_CT, FD_MACH_ONLY,
     aHp_SysfileTests,   apzHp_SysfilePatch },

korbb's avatar
korbb committed
4849
  {  zCxx_UnreadyName,    zCxx_UnreadyList,
korbb's avatar
korbb committed
4850
     apzCxx_UnreadyMachs,
korbb's avatar
korbb committed
4851 4852
     CXX_UNREADY_TEST_CT, FD_MACH_ONLY,
     aCxx_UnreadyTests,   apzCxx_UnreadyPatch },
korbb's avatar
korbb committed
4853 4854

  {  zHpux_MaxintName,    zHpux_MaxintList,
korbb's avatar
korbb committed
4855
     apzHpux_MaxintMachs,
korbb's avatar
korbb committed
4856 4857 4858 4859
     HPUX_MAXINT_TEST_CT, FD_MACH_ONLY,
     aHpux_MaxintTests,   apzHpux_MaxintPatch },

  {  zHpux_SystimeName,    zHpux_SystimeList,
korbb's avatar
korbb committed
4860
     apzHpux_SystimeMachs,
korbb's avatar
korbb committed
4861 4862 4863
     HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY,
     aHpux_SystimeTests,   apzHpux_SystimePatch },

4864
  {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
korbb's avatar
korbb committed
4865
     apzHpux8_Bogus_InlinesMachs,
4866 4867 4868
     HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
     aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch },

4869
  {  zHpux11_Uint32_CName,    zHpux11_Uint32_CList,
korbb's avatar
korbb committed
4870
     apzHpux11_Uint32_CMachs,
4871 4872 4873
     HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY,
     aHpux11_Uint32_CTests,   apzHpux11_Uint32_CPatch },

4874
  {  zIsc_Omits_With_StdcName,    zIsc_Omits_With_StdcList,
korbb's avatar
korbb committed
4875
     apzIsc_Omits_With_StdcMachs,
4876 4877
     ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY,
     aIsc_Omits_With_StdcTests,   apzIsc_Omits_With_StdcPatch },
korbb's avatar
korbb committed
4878

4879
  {  zIo_Use_QuotesName,    zIo_Use_QuotesList,
korbb's avatar
korbb committed
4880
     apzIo_Use_QuotesMachs,
4881 4882 4883
     IO_USE_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
     aIo_Use_QuotesTests,   apzIo_Use_QuotesPatch },

korbb's avatar
korbb committed
4884
  {  zIo_Def_QuotesName,    zIo_Def_QuotesList,
korbb's avatar
korbb committed
4885
     apzIo_Def_QuotesMachs,
4886
     IO_DEF_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
korbb's avatar
korbb committed
4887 4888
     aIo_Def_QuotesTests,   apzIo_Def_QuotesPatch },

4889
  {  zCtrl_Use_QuotesName,    zCtrl_Use_QuotesList,
korbb's avatar
korbb committed
4890
     apzCtrl_Use_QuotesMachs,
4891 4892 4893 4894
     CTRL_USE_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
     aCtrl_Use_QuotesTests,   apzCtrl_Use_QuotesPatch },

  {  zCtrl_Def_QuotesName,    zCtrl_Def_QuotesList,
korbb's avatar
korbb committed
4895
     apzCtrl_Def_QuotesMachs,
4896 4897
     CTRL_DEF_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
     aCtrl_Def_QuotesTests,   apzCtrl_Def_QuotesPatch },
korbb's avatar
korbb committed
4898 4899

  {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
korbb's avatar
korbb committed
4900
     apzIp_Missing_SemiMachs,
korbb's avatar
korbb committed
4901 4902 4903 4904
     IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
     aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch },

  {  zIrix_Multiline_CmntName,    zIrix_Multiline_CmntList,
korbb's avatar
korbb committed
4905
     apzIrix_Multiline_CmntMachs,
korbb's avatar
korbb committed
4906 4907 4908 4909
     IRIX_MULTILINE_CMNT_TEST_CT, FD_MACH_ONLY,
     aIrix_Multiline_CmntTests,   apzIrix_Multiline_CmntPatch },

  {  zIrix_SockaddrName,    zIrix_SockaddrList,
korbb's avatar
korbb committed
4910
     apzIrix_SockaddrMachs,
korbb's avatar
korbb committed
4911 4912 4913 4914
     IRIX_SOCKADDR_TEST_CT, FD_MACH_ONLY,
     aIrix_SockaddrTests,   apzIrix_SockaddrPatch },

  {  zIrix_Struct__FileName,    zIrix_Struct__FileList,
korbb's avatar
korbb committed
4915
     apzIrix_Struct__FileMachs,
korbb's avatar
korbb committed
4916 4917 4918
     IRIX_STRUCT__FILE_TEST_CT, FD_MACH_ONLY,
     aIrix_Struct__FileTests,   apzIrix_Struct__FilePatch },

4919
  {  zIrix_Asm_ApostropheName,    zIrix_Asm_ApostropheList,
korbb's avatar
korbb committed
4920
     apzIrix_Asm_ApostropheMachs,
4921 4922 4923
     IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY,
     aIrix_Asm_ApostropheTests,   apzIrix_Asm_ApostrophePatch },

korbb's avatar
korbb committed
4924
  {  zIsc_FmodName,    zIsc_FmodList,
korbb's avatar
korbb committed
4925
     apzIsc_FmodMachs,
korbb's avatar
korbb committed
4926 4927 4928 4929
     ISC_FMOD_TEST_CT, FD_MACH_ONLY,
     aIsc_FmodTests,   apzIsc_FmodPatch },

  {  zMotorola_NestedName,    zMotorola_NestedList,
korbb's avatar
korbb committed
4930
     apzMotorola_NestedMachs,
korbb's avatar
korbb committed
4931 4932 4933 4934
     MOTOROLA_NESTED_TEST_CT, FD_MACH_ONLY,
     aMotorola_NestedTests,   apzMotorola_NestedPatch },

  {  zIsc_Sys_LimitsName,    zIsc_Sys_LimitsList,
korbb's avatar
korbb committed
4935
     apzIsc_Sys_LimitsMachs,
korbb's avatar
korbb committed
4936 4937 4938 4939
     ISC_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
     aIsc_Sys_LimitsTests,   apzIsc_Sys_LimitsPatch },

  {  zKandr_ConcatName,    zKandr_ConcatList,
korbb's avatar
korbb committed
4940
     apzKandr_ConcatMachs,
korbb's avatar
korbb committed
4941 4942 4943 4944
     KANDR_CONCAT_TEST_CT, FD_MACH_ONLY,
     aKandr_ConcatTests,   apzKandr_ConcatPatch },

  {  zLimits_IfndefsName,    zLimits_IfndefsList,
korbb's avatar
korbb committed
4945
     apzLimits_IfndefsMachs,
korbb's avatar
korbb committed
4946 4947 4948 4949
     LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY,
     aLimits_IfndefsTests,   apzLimits_IfndefsPatch },

  {  zLynx_Void_IntName,    zLynx_Void_IntList,
korbb's avatar
korbb committed
4950
     apzLynx_Void_IntMachs,
korbb's avatar
korbb committed
4951 4952 4953 4954
     LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY,
     aLynx_Void_IntTests,   apzLynx_Void_IntPatch },

  {  zLynxos_Fcntl_ProtoName,    zLynxos_Fcntl_ProtoList,
korbb's avatar
korbb committed
4955
     apzLynxos_Fcntl_ProtoMachs,
korbb's avatar
korbb committed
4956 4957 4958 4959
     LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY,
     aLynxos_Fcntl_ProtoTests,   apzLynxos_Fcntl_ProtoPatch },

  {  zM88k_Bad_Hypot_OptName,    zM88k_Bad_Hypot_OptList,
korbb's avatar
korbb committed
4960
     apzM88k_Bad_Hypot_OptMachs,
korbb's avatar
korbb committed
4961 4962 4963 4964
     M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY,
     aM88k_Bad_Hypot_OptTests,   apzM88k_Bad_Hypot_OptPatch },

  {  zM88k_Bad_S_IfName,    zM88k_Bad_S_IfList,
korbb's avatar
korbb committed
4965
     apzM88k_Bad_S_IfMachs,
korbb's avatar
korbb committed
4966 4967 4968 4969
     M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY,
     aM88k_Bad_S_IfTests,   apzM88k_Bad_S_IfPatch },

  {  zM88k_Multi_InclName,    zM88k_Multi_InclList,
korbb's avatar
korbb committed
4970
     apzM88k_Multi_InclMachs,
korbb's avatar
korbb committed
4971
     M88K_MULTI_INCL_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
korbb's avatar
korbb committed
4972 4973
     aM88k_Multi_InclTests,   apzM88k_Multi_InclPatch },

4974
  {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
korbb's avatar
korbb committed
4975
     apzMachine_Ansi_H_Va_ListMachs,
4976 4977 4978
     MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY,
     aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch },

korbb's avatar
korbb committed
4979
  {  zMachine_NameName,    zMachine_NameList,
korbb's avatar
korbb committed
4980
     apzMachine_NameMachs,
4981
     MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
korbb's avatar
korbb committed
4982 4983 4984
     aMachine_NameTests,   apzMachine_NamePatch },

  {  zMath_ExceptionName,    zMath_ExceptionList,
korbb's avatar
korbb committed
4985
     apzMath_ExceptionMachs,
korbb's avatar
korbb committed
4986 4987 4988
     MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY,
     aMath_ExceptionTests,   apzMath_ExceptionPatch },

4989
  {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
korbb's avatar
korbb committed
4990
     apzMath_Huge_Val_From_Dbl_MaxMachs,
4991 4992 4993 4994
     MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
     aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch },

  {  zMath_Huge_Val_IfndefName,    zMath_Huge_Val_IfndefList,
korbb's avatar
korbb committed
4995
     apzMath_Huge_Val_IfndefMachs,
4996 4997
     MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY,
     aMath_Huge_Val_IfndefTests,   apzMath_Huge_Val_IfndefPatch },
korbb's avatar
korbb committed
4998 4999

  {  zNested_CommentName,    zNested_CommentList,
korbb's avatar
korbb committed
5000
     apzNested_CommentMachs,
korbb's avatar
korbb committed
5001 5002 5003 5004
     NESTED_COMMENT_TEST_CT, FD_MACH_ONLY,
     aNested_CommentTests,   apzNested_CommentPatch },

  {  zNews_Os_RecursionName,    zNews_Os_RecursionList,
korbb's avatar
korbb committed
5005
     apzNews_Os_RecursionMachs,
korbb's avatar
korbb committed
5006 5007 5008 5009
     NEWS_OS_RECURSION_TEST_CT, FD_MACH_ONLY,
     aNews_Os_RecursionTests,   apzNews_Os_RecursionPatch },

  {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
korbb's avatar
korbb committed
5010
     apzNext_Math_PrefixMachs,
korbb's avatar
korbb committed
5011 5012 5013 5014
     NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY,
     aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch },

  {  zNext_TemplateName,    zNext_TemplateList,
korbb's avatar
korbb committed
5015
     apzNext_TemplateMachs,
korbb's avatar
korbb committed
5016 5017 5018 5019
     NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY,
     aNext_TemplateTests,   apzNext_TemplatePatch },

  {  zNext_VolitileName,    zNext_VolitileList,
korbb's avatar
korbb committed
5020
     apzNext_VolitileMachs,
korbb's avatar
korbb committed
5021 5022 5023 5024
     NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY,
     aNext_VolitileTests,   apzNext_VolitilePatch },

  {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
korbb's avatar
korbb committed
5025
     apzNext_Wait_UnionMachs,
korbb's avatar
korbb committed
5026 5027 5028 5029
     NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY,
     aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch },

  {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
korbb's avatar
korbb committed
5030
     apzNodeent_SyntaxMachs,
korbb's avatar
korbb committed
5031 5032 5033 5034
     NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY,
     aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch },

  {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
korbb's avatar
korbb committed
5035
     apzOsf_Namespace_AMachs,
korbb's avatar
korbb committed
5036 5037 5038 5039
     OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY,
     aOsf_Namespace_ATests,   apzOsf_Namespace_APatch },

  {  zOsf_Namespace_BName,    zOsf_Namespace_BList,
korbb's avatar
korbb committed
5040
     apzOsf_Namespace_BMachs,
korbb's avatar
korbb committed
5041 5042 5043 5044
     OSF_NAMESPACE_B_TEST_CT, FD_MACH_ONLY,
     aOsf_Namespace_BTests,   apzOsf_Namespace_BPatch },

  {  zPthread_Page_SizeName,    zPthread_Page_SizeList,
korbb's avatar
korbb committed
5045
     apzPthread_Page_SizeMachs,
korbb's avatar
korbb committed
5046 5047 5048
     PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY,
     aPthread_Page_SizeTests,   apzPthread_Page_SizePatch },

5049
  {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
korbb's avatar
korbb committed
5050
     apzRead_Ret_TypeMachs,
5051 5052 5053
     READ_RET_TYPE_TEST_CT, FD_MACH_ONLY,
     aRead_Ret_TypeTests,   apzRead_Ret_TypePatch },

korbb's avatar
korbb committed
5054
  {  zRs6000_DoubleName,    zRs6000_DoubleList,
korbb's avatar
korbb committed
5055
     apzRs6000_DoubleMachs,
korbb's avatar
korbb committed
5056 5057 5058 5059
     RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY,
     aRs6000_DoubleTests,   apzRs6000_DoublePatch },

  {  zRs6000_FchmodName,    zRs6000_FchmodList,
korbb's avatar
korbb committed
5060
     apzRs6000_FchmodMachs,
korbb's avatar
korbb committed
5061 5062 5063 5064
     RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY,
     aRs6000_FchmodTests,   apzRs6000_FchmodPatch },

  {  zRs6000_ParamName,    zRs6000_ParamList,
korbb's avatar
korbb committed
5065
     apzRs6000_ParamMachs,
korbb's avatar
korbb committed
5066 5067 5068
     RS6000_PARAM_TEST_CT, FD_MACH_ONLY,
     aRs6000_ParamTests,   apzRs6000_ParamPatch },

korbb's avatar
korbb committed
5069
  {  zSco_Strict_AnsiName,    zSco_Strict_AnsiList,
korbb's avatar
korbb committed
5070
     apzSco_Strict_AnsiMachs,
korbb's avatar
korbb committed
5071 5072 5073 5074
     SCO_STRICT_ANSI_TEST_CT, FD_MACH_ONLY,
     aSco_Strict_AnsiTests,   apzSco_Strict_AnsiPatch },

  {  zSco_Static_FuncName,    zSco_Static_FuncList,
korbb's avatar
korbb committed
5075
     apzSco_Static_FuncMachs,
korbb's avatar
korbb committed
5076 5077 5078 5079
     SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
     aSco_Static_FuncTests,   apzSco_Static_FuncPatch },

  {  zSco_UtimeName,    zSco_UtimeList,
korbb's avatar
korbb committed
5080
     apzSco_UtimeMachs,
korbb's avatar
korbb committed
5081 5082 5083
     SCO_UTIME_TEST_CT, FD_MACH_ONLY,
     aSco_UtimeTests,   apzSco_UtimePatch },

korbb's avatar
korbb committed
5084
  {  zSony_IncludeName,    zSony_IncludeList,
korbb's avatar
korbb committed
5085
     apzSony_IncludeMachs,
korbb's avatar
korbb committed
5086 5087 5088 5089
     SONY_INCLUDE_TEST_CT, FD_MACH_ONLY,
     aSony_IncludeTests,   apzSony_IncludePatch },

  {  zStatsswtchName,    zStatsswtchList,
korbb's avatar
korbb committed
5090
     apzStatsswtchMachs,
korbb's avatar
korbb committed
5091 5092 5093
     STATSSWTCH_TEST_CT, FD_MACH_ONLY,
     aStatsswtchTests,   apzStatsswtchPatch },

5094
  {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
korbb's avatar
korbb committed
5095
     apzStdio_Stdarg_HMachs,
5096 5097 5098
     STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY,
     aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch },

korbb's avatar
korbb committed
5099
  {  zStdio_Va_ListName,    zStdio_Va_ListList,
korbb's avatar
korbb committed
5100
     apzStdio_Va_ListMachs,
5101
     STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
korbb's avatar
korbb committed
5102 5103
     aStdio_Va_ListTests,   apzStdio_Va_ListPatch },

korbb's avatar
korbb committed
5104
  {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
korbb's avatar
korbb committed
5105
     apzSun_Auth_ProtoMachs,
korbb's avatar
korbb committed
5106 5107 5108
     SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY,
     aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch },

korbb's avatar
korbb committed
5109
  {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
korbb's avatar
korbb committed
5110
     apzSun_Bogus_IfdefMachs,
korbb's avatar
korbb committed
5111 5112 5113 5114
     SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY,
     aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch },

  {  zSun_Bogus_Ifdef_Sun4cName,    zSun_Bogus_Ifdef_Sun4cList,
korbb's avatar
korbb committed
5115
     apzSun_Bogus_Ifdef_Sun4cMachs,
korbb's avatar
korbb committed
5116 5117 5118 5119
     SUN_BOGUS_IFDEF_SUN4C_TEST_CT, FD_MACH_ONLY,
     aSun_Bogus_Ifdef_Sun4cTests,   apzSun_Bogus_Ifdef_Sun4cPatch },

  {  zSun_CatmacroName,    zSun_CatmacroList,
korbb's avatar
korbb committed
5120
     apzSun_CatmacroMachs,
korbb's avatar
korbb committed
5121 5122 5123 5124
     SUN_CATMACRO_TEST_CT, FD_MACH_ONLY,
     aSun_CatmacroTests,   apzSun_CatmacroPatch },

  {  zSun_MallocName,    zSun_MallocList,
korbb's avatar
korbb committed
5125
     apzSun_MallocMachs,
korbb's avatar
korbb committed
5126 5127 5128 5129
     SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
     aSun_MallocTests,   apzSun_MallocPatch },

  {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
korbb's avatar
korbb committed
5130
     apzSun_Rusers_SemiMachs,
korbb's avatar
korbb committed
5131 5132 5133 5134
     SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
     aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch },

  {  zSun_SignalName,    zSun_SignalList,
korbb's avatar
korbb committed
5135
     apzSun_SignalMachs,
korbb's avatar
korbb committed
5136 5137 5138 5139
     SUN_SIGNAL_TEST_CT, FD_MACH_ONLY,
     aSun_SignalTests,   apzSun_SignalPatch },

  {  zSunos_Matherr_DeclName,    zSunos_Matherr_DeclList,
korbb's avatar
korbb committed
5140
     apzSunos_Matherr_DeclMachs,
korbb's avatar
korbb committed
5141 5142 5143 5144
     SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY,
     aSunos_Matherr_DeclTests,   apzSunos_Matherr_DeclPatch },

  {  zSunos_StrlenName,    zSunos_StrlenList,
korbb's avatar
korbb committed
5145
     apzSunos_StrlenMachs,
korbb's avatar
korbb committed
5146 5147 5148
     SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY,
     aSunos_StrlenTests,   apzSunos_StrlenPatch },

korbb's avatar
korbb committed
5149
  {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
korbb's avatar
korbb committed
5150
     apzSvr4_GetcwdMachs,
korbb's avatar
korbb committed
5151 5152 5153 5154
     SVR4_GETCWD_TEST_CT, FD_MACH_ONLY,
     aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch },

  {  zSvr4_ProfilName,    zSvr4_ProfilList,
korbb's avatar
korbb committed
5155
     apzSvr4_ProfilMachs,
korbb's avatar
korbb committed
5156 5157 5158
     SVR4_PROFIL_TEST_CT, FD_MACH_ONLY,
     aSvr4_ProfilTests,   apzSvr4_ProfilPatch },

korbb's avatar
korbb committed
5159
  {  zSystypesName,    zSystypesList,
korbb's avatar
korbb committed
5160
     apzSystypesMachs,
korbb's avatar
korbb committed
5161 5162 5163
     SYSTYPES_TEST_CT, FD_MACH_ONLY,
     aSystypesTests,   apzSystypesPatch },

5164
  {  zSystypes_Stdlib_Size_TName,    zSystypes_Stdlib_Size_TList,
korbb's avatar
korbb committed
5165
     apzSystypes_Stdlib_Size_TMachs,
5166 5167
     SYSTYPES_STDLIB_SIZE_T_TEST_CT, FD_MACH_ONLY,
     aSystypes_Stdlib_Size_TTests,   apzSystypes_Stdlib_Size_TPatch },
korbb's avatar
korbb committed
5168 5169

  {  zSysv68_StringName,    zSysv68_StringList,
korbb's avatar
korbb committed
5170
     apzSysv68_StringMachs,
korbb's avatar
korbb committed
5171 5172 5173 5174
     SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
     aSysv68_StringTests,   apzSysv68_StringPatch },

  {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
korbb's avatar
korbb committed
5175
     apzSysz_Stdlib_For_SunMachs,
korbb's avatar
korbb committed
5176 5177 5178 5179
     SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY,
     aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch },

  {  zSysz_Stdtypes_For_SunName,    zSysz_Stdtypes_For_SunList,
korbb's avatar
korbb committed
5180
     apzSysz_Stdtypes_For_SunMachs,
korbb's avatar
korbb committed
5181 5182 5183 5184
     SYSZ_STDTYPES_FOR_SUN_TEST_CT, FD_MACH_ONLY,
     aSysz_Stdtypes_For_SunTests,   apzSysz_Stdtypes_For_SunPatch },

  {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
korbb's avatar
korbb committed
5185
     apzTinfo_CplusplusMachs,
korbb's avatar
korbb committed
5186 5187 5188
     TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY,
     aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch },

korbb's avatar
korbb committed
5189
  {  zUltrix_Fix_FixprotoName,    zUltrix_Fix_FixprotoList,
korbb's avatar
korbb committed
5190
     apzUltrix_Fix_FixprotoMachs,
korbb's avatar
korbb committed
5191 5192 5193
     ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY,
     aUltrix_Fix_FixprotoTests,   apzUltrix_Fix_FixprotoPatch },

korbb's avatar
korbb committed
5194
  {  zUltrix_Atof_ParamName,    zUltrix_Atof_ParamList,
korbb's avatar
korbb committed
5195
     apzUltrix_Atof_ParamMachs,
korbb's avatar
korbb committed
5196 5197 5198 5199
     ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY,
     aUltrix_Atof_ParamTests,   apzUltrix_Atof_ParamPatch },

  {  zUltrix_ConstName,    zUltrix_ConstList,
korbb's avatar
korbb committed
5200
     apzUltrix_ConstMachs,
korbb's avatar
korbb committed
5201 5202 5203 5204
     ULTRIX_CONST_TEST_CT, FD_MACH_ONLY,
     aUltrix_ConstTests,   apzUltrix_ConstPatch },

  {  zUltrix_IfdefName,    zUltrix_IfdefList,
korbb's avatar
korbb committed
5205
     apzUltrix_IfdefMachs,
korbb's avatar
korbb committed
5206 5207 5208 5209
     ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY,
     aUltrix_IfdefTests,   apzUltrix_IfdefPatch },

  {  zUltrix_Nested_CmntName,    zUltrix_Nested_CmntList,
korbb's avatar
korbb committed
5210
     apzUltrix_Nested_CmntMachs,
korbb's avatar
korbb committed
5211 5212 5213 5214
     ULTRIX_NESTED_CMNT_TEST_CT, FD_MACH_ONLY,
     aUltrix_Nested_CmntTests,   apzUltrix_Nested_CmntPatch },

  {  zUltrix_StaticName,    zUltrix_StaticList,
korbb's avatar
korbb committed
5215
     apzUltrix_StaticMachs,
korbb's avatar
korbb committed
5216 5217 5218 5219
     ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
     aUltrix_StaticTests,   apzUltrix_StaticPatch },

  {  zUndefine_NullName,    zUndefine_NullList,
korbb's avatar
korbb committed
5220
     apzUndefine_NullMachs,
korbb's avatar
korbb committed
5221 5222 5223
     UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY,
     aUndefine_NullTests,   apzUndefine_NullPatch },

korbb's avatar
korbb committed
5224
  {  zUnixware7_Byteorder_FixName,    zUnixware7_Byteorder_FixList,
korbb's avatar
korbb committed
5225
     apzUnixware7_Byteorder_FixMachs,
korbb's avatar
korbb committed
5226 5227 5228
     UNIXWARE7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY,
     aUnixware7_Byteorder_FixTests,   apzUnixware7_Byteorder_FixPatch },

korbb's avatar
korbb committed
5229
  {  zVa_I960_MacroName,    zVa_I960_MacroList,
korbb's avatar
korbb committed
5230
     apzVa_I960_MacroMachs,
korbb's avatar
korbb committed
5231 5232 5233 5234
     VA_I960_MACRO_TEST_CT, FD_MACH_ONLY,
     aVa_I960_MacroTests,   apzVa_I960_MacroPatch },

  {  zVoid_NullName,    zVoid_NullList,
korbb's avatar
korbb committed
5235
     apzVoid_NullMachs,
korbb's avatar
korbb committed
5236 5237 5238 5239
     VOID_NULL_TEST_CT, FD_MACH_ONLY,
     aVoid_NullTests,   apzVoid_NullPatch },

  {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
korbb's avatar
korbb committed
5240
     apzVxworks_Gcc_ProblemMachs,
korbb's avatar
korbb committed
5241 5242 5243 5244
     VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
     aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch },

  {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
korbb's avatar
korbb committed
5245
     apzVxworks_Needs_VxtypesMachs,
korbb's avatar
korbb committed
5246 5247 5248 5249
     VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY,
     aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch },

  {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
korbb's avatar
korbb committed
5250
     apzVxworks_Needs_VxworksMachs,
korbb's avatar
korbb committed
5251 5252 5253 5254
     VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
     aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch },

  {  zVxworks_TimeName,    zVxworks_TimeList,
korbb's avatar
korbb committed
5255
     apzVxworks_TimeMachs,
korbb's avatar
korbb committed
5256 5257 5258 5259
     VXWORKS_TIME_TEST_CT, FD_MACH_ONLY,
     aVxworks_TimeTests,   apzVxworks_TimePatch },

  {  zX11_ClassName,    zX11_ClassList,
korbb's avatar
korbb committed
5260
     apzX11_ClassMachs,
korbb's avatar
korbb committed
5261 5262 5263 5264
     X11_CLASS_TEST_CT, FD_MACH_ONLY,
     aX11_ClassTests,   apzX11_ClassPatch },

  {  zX11_Class_UsageName,    zX11_Class_UsageList,
korbb's avatar
korbb committed
5265
     apzX11_Class_UsageMachs,
korbb's avatar
korbb committed
5266 5267 5268 5269
     X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY,
     aX11_Class_UsageTests,   apzX11_Class_UsagePatch },

  {  zX11_NewName,    zX11_NewList,
korbb's avatar
korbb committed
5270
     apzX11_NewMachs,
korbb's avatar
korbb committed
5271 5272 5273 5274
     X11_NEW_TEST_CT, FD_MACH_ONLY,
     aX11_NewTests,   apzX11_NewPatch },

  {  zX11_SprintfName,    zX11_SprintfList,
korbb's avatar
korbb committed
5275
     apzX11_SprintfMachs,
korbb's avatar
korbb committed
5276
     X11_SPRINTF_TEST_CT, FD_MACH_ONLY,
korbb's avatar
korbb committed
5277
     aX11_SprintfTests,   apzX11_SprintfPatch }
korbb's avatar
korbb committed
5278
};