fixincl.x 137 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";

korbb's avatar
korbb committed
1574 1575 1576 1577 1578 1579 1580
/*
 *  content bypass pattern - skip fix if pattern found
 */
tSCC zHpux8_Bogus_InlinesBypass0[] =
       "The Santa Cruz Operation";

#define    HPUX8_BOGUS_INLINES_TEST_CT  2
1581
tTestDesc aHpux8_Bogus_InlinesTests[] = {
korbb's avatar
korbb committed
1582
  { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594
  { 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 };

1595 1596 1597 1598
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Hpux11_Uint32_C fix
 */
1599
#define HPUX11_UINT32_C_FIXIDX           36
1600
tSCC zHpux11_Uint32_CName[] =
1601 1602
     "hpux11_uint32_c";

1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629
/*
 *  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
1630 1631
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
1632
 *  Description of Isc_Omits_With_Stdc fix
korbb's avatar
korbb committed
1633
 */
1634
#define ISC_OMITS_WITH_STDC_FIXIDX       37
1635
tSCC zIsc_Omits_With_StdcName[] =
1636 1637
     "isc_omits_with_stdc";

korbb's avatar
korbb committed
1638 1639 1640
/*
 *  File name selection pattern
 */
1641
tSCC zIsc_Omits_With_StdcList[] =
korbb's avatar
korbb committed
1642
  "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
korbb's avatar
korbb committed
1643 1644 1645
/*
 *  Machine/OS name selection pattern
 */
1646
#define apzIsc_Omits_With_StdcMachs (const char**)NULL
korbb's avatar
korbb committed
1647 1648

/*
1649
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
1650
 */
1651
tSCC zIsc_Omits_With_StdcSelect0[] =
korbb's avatar
korbb committed
1652
       "!defined(__STDC__) && !defined(_POSIX_SOURCE)";
korbb's avatar
korbb committed
1653

1654 1655 1656
#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
1657 1658

/*
1659
 *  Fix Command Arguments for Isc_Omits_With_Stdc
korbb's avatar
korbb committed
1660
 */
1661
const char* apzIsc_Omits_With_StdcPatch[] = { "sed",
korbb's avatar
korbb committed
1662
    "-e", "s/!defined(__STDC__) && !defined(_POSIX_SOURCE)/!defined(_POSIX_SOURCE)/",
korbb's avatar
korbb committed
1663 1664
    (char*)NULL };

1665 1666 1667 1668
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Io_Use_Quotes fix
 */
1669
#define IO_USE_QUOTES_FIXIDX             38
1670
tSCC zIo_Use_QuotesName[] =
1671 1672
     "io_use_quotes";

1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697
/*
 *  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
 */
const char* apzIo_Use_QuotesPatch[] = {"IO_use",
    (char*)NULL };

korbb's avatar
korbb committed
1698 1699
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
1700
 *  Description of Io_Def_Quotes fix
korbb's avatar
korbb committed
1701
 */
1702
#define IO_DEF_QUOTES_FIXIDX             39
korbb's avatar
korbb committed
1703
tSCC zIo_Def_QuotesName[] =
1704 1705
     "io_def_quotes";

korbb's avatar
korbb committed
1706 1707 1708 1709 1710 1711 1712 1713 1714 1715
/*
 *  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
1716
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
1717 1718
 */
tSCC zIo_Def_QuotesSelect0[] =
1719
       "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\(([a-zA-Z]).*'\\1'";
korbb's avatar
korbb committed
1720 1721 1722

#define    IO_DEF_QUOTES_TEST_CT  1
tTestDesc aIo_Def_QuotesTests[] = {
korbb's avatar
korbb committed
1723
  { TT_EGREP,    zIo_Def_QuotesSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1724 1725 1726 1727

/*
 *  Fix Command Arguments for Io_Def_Quotes
 */
1728 1729 1730 1731 1732 1733 1734
const char* apzIo_Def_QuotesPatch[] = {"IO_defn",
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Ctrl_Use_Quotes fix
 */
1735
#define CTRL_USE_QUOTES_FIXIDX           40
1736
tSCC zCtrl_Use_QuotesName[] =
1737 1738
     "ctrl_use_quotes";

1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761
/*
 *  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
 */
const char* apzCtrl_Use_QuotesPatch[] = {"CTRL_use",
korbb's avatar
korbb committed
1762 1763 1764 1765
    (char*)NULL };

/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
1766
 *  Description of Ctrl_Def_Quotes fix
korbb's avatar
korbb committed
1767
 */
1768
#define CTRL_DEF_QUOTES_FIXIDX           41
1769
tSCC zCtrl_Def_QuotesName[] =
1770 1771
     "ctrl_def_quotes";

korbb's avatar
korbb committed
1772 1773 1774
/*
 *  File name selection pattern
 */
1775
#define zCtrl_Def_QuotesList (char*)NULL
korbb's avatar
korbb committed
1776 1777 1778
/*
 *  Machine/OS name selection pattern
 */
1779
#define apzCtrl_Def_QuotesMachs (const char**)NULL
korbb's avatar
korbb committed
1780 1781

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

1787 1788 1789
#define    CTRL_DEF_QUOTES_TEST_CT  1
tTestDesc aCtrl_Def_QuotesTests[] = {
  { TT_EGREP,    zCtrl_Def_QuotesSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1790 1791

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

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

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

/*
 *  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
1824 1825 1826 1827 1828

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

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

korbb's avatar
korbb committed
1840 1841 1842 1843
/*
 *  File name selection pattern
 */
tSCC zIrix_Multiline_CmntList[] =
korbb's avatar
korbb committed
1844
  "|sys/types.h|";
korbb's avatar
korbb committed
1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855
/*
 *  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
1856 1857
    "-e", "s@type of the result@type of the result */@",
    "-e", "s@of the sizeof@/* of the sizeof@",
korbb's avatar
korbb committed
1858 1859 1860 1861
    (char*)NULL };

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

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

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

1884 1885 1886 1887 1888 1889 1890
/*
 *  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
1891
tTestDesc aIrix_SockaddrTests[] = {
1892
  { TT_NEGREP,   zIrix_SockaddrBypass0, (regex_t*)NULL },
korbb's avatar
korbb committed
1893
  { TT_EGREP,    zIrix_SockaddrSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
1894 1895 1896 1897 1898

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

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

korbb's avatar
korbb committed
1911 1912 1913 1914
/*
 *  File name selection pattern
 */
tSCC zIrix_Struct__FileList[] =
korbb's avatar
korbb committed
1915
  "|rpc/xdr.h|";
korbb's avatar
korbb committed
1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926
/*
 *  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
1927 1928
    "-e", "/xdrstdio_create.*struct __file_s/i\\\n\
struct __file_s;\n",
korbb's avatar
korbb committed
1929 1930 1931 1932
    (char*)NULL };

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

1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956
/*
 *  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
1957
  { TT_EGREP,    zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
1958 1959 1960 1961 1962 1963 1964 1965 1966 1967

/*
 *  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
1968
 *  Description of Isc_Fmod fix
korbb's avatar
korbb committed
1969
 */
1970
#define ISC_FMOD_FIXIDX                  47
korbb's avatar
korbb committed
1971
tSCC zIsc_FmodName[] =
1972 1973
     "isc_fmod";

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

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

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

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

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

korbb's avatar
korbb committed
2009 2010 2011 2012
/*
 *  File name selection pattern
 */
tSCC zMotorola_NestedList[] =
korbb's avatar
korbb committed
2013
  "|limits.h|sys/limits.h|";
korbb's avatar
korbb committed
2014 2015 2016
/*
 *  Machine/OS name selection pattern
 */
korbb's avatar
korbb committed
2017 2018 2019
tSCC* apzMotorola_NestedMachs[] = {
        "m68k-motorola-sysv*",
        (const char*)NULL };
korbb's avatar
korbb committed
2020 2021 2022 2023 2024 2025 2026
#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
2027 2028
    "-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
2029 2030 2031 2032
    (char*)NULL };

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

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

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

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

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

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

korbb's avatar
korbb committed
2075 2076 2077 2078
/*
 *  File name selection pattern
 */
tSCC zKandr_ConcatList[] =
korbb's avatar
korbb committed
2079
  "|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
2080 2081 2082 2083 2084 2085
/*
 *  Machine/OS name selection pattern
 */
#define apzKandr_ConcatMachs (const char**)NULL

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

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

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

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

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

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

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

/*
 *  Fix Command Arguments for Limits_Ifndefs
 */
const char* apzLimits_IfndefsPatch[] = { "sed",
korbb's avatar
korbb committed
2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157
    "-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
2158
    "-e", "/^\\(\\/\\*#define\tHUGE_VAL\t3\\.[0-9e+]* *\\)\\/\\*/s//\\1/",
korbb's avatar
korbb committed
2159 2160 2161 2162
    (char*)NULL };

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

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

/*
korbb's avatar
korbb committed
2180
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
2181 2182 2183 2184 2185 2186
 */
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
2187
  { TT_EGREP,    zLynx_Void_IntSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2188 2189 2190 2191 2192

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

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

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

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

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

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

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

korbb's avatar
korbb committed
2239 2240 2241 2242
/*
 *  File name selection pattern
 */
tSCC zM88k_Bad_Hypot_OptList[] =
korbb's avatar
korbb committed
2243
  "|math.h|";
korbb's avatar
korbb committed
2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256
/*
 *  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
2257
    "-e", "s/extern double floor(), ceil(), fmod(), fabs();/extern double floor(), ceil(), fmod(), fabs _PARAMS((double));/",
korbb's avatar
korbb committed
2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270
    "-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
2271 2272 2273 2274
    (char*)NULL };

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

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

/*
korbb's avatar
korbb committed
2294
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
2295 2296 2297 2298 2299 2300
 */
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
2301
  { TT_EGREP,    zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
2302 2303 2304 2305 2306

/*
 *  Fix Command Arguments for M88k_Bad_S_If
 */
const char* apzM88k_Bad_S_IfPatch[] = { "sed",
korbb's avatar
korbb committed
2307 2308
    "-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
2309 2310 2311 2312
    (char*)NULL };

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

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

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

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

/*
 *  Fix Command Arguments for M88k_Multi_Incl
 */
const char* apzM88k_Multi_InclPatch[] = { "sh", "-c",
korbb's avatar
korbb committed
2345 2346 2347 2348 2349 2350
    "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
2351 2352
    (char*)NULL };

2353 2354 2355 2356
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Machine_Ansi_H_Va_List fix
 */
2357
#define MACHINE_ANSI_H_VA_LIST_FIXIDX    57
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 2392 2393 2394
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
2395 2396
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
2397
 *  Description of Machine_Name fix
korbb's avatar
korbb committed
2398
 */
2399
#define MACHINE_NAME_FIXIDX              58
korbb's avatar
korbb committed
2400
tSCC zMachine_NameName[] =
2401 2402
     "machine_name";

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

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

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

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

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

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

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

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

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

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

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

korbb's avatar
korbb committed
2484 2485 2486
/*
 *  File name selection pattern
 */
2487
tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
korbb's avatar
korbb committed
2488
  "|math.h|";
korbb's avatar
korbb committed
2489 2490 2491
/*
 *  Machine/OS name selection pattern
 */
2492 2493 2494 2495 2496 2497 2498
#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
2499 2500

/*
2501
 *  content bypass pattern - skip fix if pattern found
korbb's avatar
korbb committed
2502
 */
2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514
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
2515 2516
    "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h 2>/dev/null`\n\
\n\
2517 2518 2519 2520 2521 2522 2523 2524 2525 2526
\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
 */
2527
#define MATH_HUGE_VAL_IFNDEF_FIXIDX      61
2528
tSCC zMath_Huge_Val_IfndefName[] =
2529 2530
     "math_huge_val_ifndef";

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 2557 2558
/*
 *  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
2559 2560 2561 2562
    (char*)NULL };

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

korbb's avatar
korbb committed
2569 2570 2571 2572
/*
 *  File name selection pattern
 */
tSCC zNested_CommentList[] =
korbb's avatar
korbb committed
2573
  "|rpc/rpc.h|";
korbb's avatar
korbb committed
2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584
/*
 *  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
2585
    "-e", "s@^\\(/\\*.*rpc/auth_des.h>.*\\)/\\*@\\1*/ /*@",
korbb's avatar
korbb committed
2586 2587 2588 2589
    (char*)NULL };

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

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

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

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

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

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

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

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

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

/*
 *  Fix Command Arguments for Next_Math_Prefix
 */
const char* apzNext_Math_PrefixPatch[] = { "sed",
korbb's avatar
korbb committed
2658 2659 2660 2661 2662
    "-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
2663 2664 2665 2666
    (char*)NULL };

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

korbb's avatar
korbb committed
2780 2781 2782 2783
/*
 *  File name selection pattern
 */
tSCC zNodeent_SyntaxList[] =
korbb's avatar
korbb committed
2784
  "|netdnet/dnetdb.h|";
korbb's avatar
korbb committed
2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795
/*
 *  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
2796
    "-e", "s/char.*na_addr *$/char *na_addr;/",
korbb's avatar
korbb committed
2797 2798 2799 2800
    (char*)NULL };

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

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

/*
korbb's avatar
korbb committed
2818
 *  perform the 'test' shell command - do fix on success
korbb's avatar
korbb committed
2819 2820
 */
tSCC zOsf_Namespace_ATest0[] =
korbb's avatar
korbb committed
2821 2822 2823 2824 2825 2826 2827 2828 2829
       " -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
2830
tTestDesc aOsf_Namespace_ATests[] = {
korbb's avatar
korbb committed
2831 2832 2833 2834
  { 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
2835 2836 2837 2838 2839

/*
 *  Fix Command Arguments for Osf_Namespace_A
 */
const char* apzOsf_Namespace_APatch[] = { "sed",
korbb's avatar
korbb committed
2840 2841 2842
    "-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
2843 2844 2845 2846
    (char*)NULL };

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

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

/*
korbb's avatar
korbb committed
2864
 *  perform the 'test' shell command - do fix on success
korbb's avatar
korbb committed
2865 2866
 */
tSCC zOsf_Namespace_BTest0[] =
korbb's avatar
korbb committed
2867 2868 2869 2870 2871 2872 2873 2874 2875
       " -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
2876
tTestDesc aOsf_Namespace_BTests[] = {
korbb's avatar
korbb committed
2877 2878 2879 2880
  { 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
2881 2882 2883 2884 2885

/*
 *  Fix Command Arguments for Osf_Namespace_B
 */
const char* apzOsf_Namespace_BPatch[] = { "sed",
korbb's avatar
korbb committed
2886 2887 2888 2889
    "-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
2890 2891 2892 2893
    (char*)NULL };

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

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

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

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

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

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

2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952
/*
 *  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
2953
  { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964

/*
 *  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
2965
 *  Description of Rs6000_Double fix
korbb's avatar
korbb committed
2966
 */
2967
#define RS6000_DOUBLE_FIXIDX             73
korbb's avatar
korbb committed
2968
tSCC zRs6000_DoubleName[] =
2969 2970
     "rs6000_double";

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

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

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

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

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

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

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

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

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

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

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

/*
 *  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
3063 3064 3065 3066 3067

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

korbb's avatar
korbb committed
3071 3072 3073 3074
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Sco_Strict_Ansi fix
 */
3075
#define SCO_STRICT_ANSI_FIXIDX           76
korbb's avatar
korbb committed
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 3109 3110
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
 */
3111
#define SCO_STATIC_FUNC_FIXIDX           77
korbb's avatar
korbb committed
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 3153 3154
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
 */
3155
#define SCO_UTIME_FIXIDX                 78
korbb's avatar
korbb committed
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 3186 3187
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
3188 3189
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3190
 *  Description of Sony_Include fix
korbb's avatar
korbb committed
3191
 */
3192
#define SONY_INCLUDE_FIXIDX              79
korbb's avatar
korbb committed
3193
tSCC zSony_IncludeName[] =
3194 3195
     "sony_include";

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

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

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

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

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

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

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

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

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

3258 3259 3260 3261
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Stdio_Stdarg_H fix
 */
3262
#define STDIO_STDARG_H_FIXIDX            81
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 3293 3294
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
3295 3296
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3297
 *  Description of Stdio_Va_List fix
korbb's avatar
korbb committed
3298
 */
3299
#define STDIO_VA_LIST_FIXIDX             82
korbb's avatar
korbb committed
3300
tSCC zStdio_Va_ListName[] =
3301 3302
     "stdio_va_list";

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

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

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

/*
 *  Fix Command Arguments for Stdio_Va_List
 */
3326 3327 3328 3329 3330 3331 3332
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
3333
s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3334 3335 3336 3337
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
3338 3339
    (char*)NULL };

korbb's avatar
korbb committed
3340 3341 3342 3343
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Sun_Auth_Proto fix
 */
3344
#define SUN_AUTH_PROTO_FIXIDX            83
korbb's avatar
korbb committed
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 3378 3379
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
3380 3381
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3382
 *  Description of Sun_Bogus_Ifdef fix
korbb's avatar
korbb committed
3383
 */
3384
#define SUN_BOGUS_IFDEF_FIXIDX           84
korbb's avatar
korbb committed
3385
tSCC zSun_Bogus_IfdefName[] =
3386 3387
     "sun_bogus_ifdef";

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

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

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

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

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

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

/*
korbb's avatar
korbb committed
3434
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
3435 3436 3437 3438 3439 3440
 */
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
3441
  { TT_EGREP,    zSun_Bogus_Ifdef_Sun4cSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3442 3443 3444 3445 3446

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

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

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

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

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

/*
 *  Fix Command Arguments for Sun_Catmacro
 */
const char* apzSun_CatmacroPatch[] = { "sed",
korbb's avatar
korbb committed
3482 3483 3484 3485 3486 3487
    "-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
3488 3489 3490 3491
    (char*)NULL };

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

korbb's avatar
korbb committed
3498 3499 3500 3501
/*
 *  File name selection pattern
 */
tSCC zSun_MallocList[] =
korbb's avatar
korbb committed
3502
  "|malloc.h|";
korbb's avatar
korbb committed
3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513
/*
 *  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
3514 3515 3516 3517
    "-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
3518 3519 3520 3521
    (char*)NULL };

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

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

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

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

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

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

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

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

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

/*
 *  Fix Command Arguments for Sun_Signal
 */
const char* apzSun_SignalPatch[] = { "sed",
korbb's avatar
korbb committed
3587 3588 3589 3590 3591 3592
    "-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
3593 3594 3595 3596
    (char*)NULL };

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

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

/*
 *  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
3622 3623 3624 3625 3626

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

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

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

/*
 *  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
3659 3660 3661 3662 3663

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

korbb's avatar
korbb committed
3667 3668 3669 3670
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 *  Description of Svr4_Getcwd fix
 */
3671
#define SVR4_GETCWD_FIXIDX               92
korbb's avatar
korbb committed
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 3704 3705
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
 */
3706
#define SVR4_PROFIL_FIXIDX               93
korbb's avatar
korbb committed
3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728
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
3729 3730
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
3731
 *  Description of Systypes fix
korbb's avatar
korbb committed
3732
 */
3733
#define SYSTYPES_FIXIDX                  94
korbb's avatar
korbb committed
3734
tSCC zSystypesName[] =
3735 3736
     "systypes";

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

/*
korbb's avatar
korbb committed
3748
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
3749 3750 3751 3752 3753 3754
 */
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
3755
  { TT_EGREP,    zSystypesSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
3756 3757 3758 3759 3760

/*
 *  Fix Command Arguments for Systypes
 */
const char* apzSystypesPatch[] = { "sed",
korbb's avatar
korbb committed
3761
    "-e", "/^[ \t]*\\*[ \t]*typedef unsigned int size_t;/N",
korbb's avatar
korbb committed
3762 3763 3764 3765 3766 3767 3768 3769 3770 3771
    "-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
3772
    "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/typedef __SIZE_TYPE__ size_t/",
korbb's avatar
korbb committed
3773 3774 3775 3776
    "-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
3777
    "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/typedef __PTRDIFF_TYPE__ ptrdiff_t/",
korbb's avatar
korbb committed
3778 3779 3780 3781 3782 3783 3784
    "-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
3785
    "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/typedef __WCHAR_TYPE__ wchar_t/",
korbb's avatar
korbb committed
3786 3787 3788 3789
    (char*)NULL };

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

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

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

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

3818 3819 3820 3821
#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
3822 3823

/*
3824
 *  Fix Command Arguments for Systypes_Stdlib_Size_T
korbb's avatar
korbb committed
3825
 */
3826
const char* apzSystypes_Stdlib_Size_TPatch[] = { "sed",
korbb's avatar
korbb committed
3827 3828 3829 3830 3831
    "-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
3832 3833 3834 3835
    (char*)NULL };

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

korbb's avatar
korbb committed
3842 3843 3844 3845
/*
 *  File name selection pattern
 */
tSCC zSysv68_StringList[] =
korbb's avatar
korbb committed
3846
  "|string.h|";
korbb's avatar
korbb committed
3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857
/*
 *  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
3858 3859 3860 3861 3862 3863
    "-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
3864 3865 3866
    "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
extern unsigned int\\\n\
\\2/",
korbb's avatar
korbb committed
3867 3868
    "-e", "/^extern int$/N",
    "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
korbb's avatar
korbb committed
3869 3870 3871 3872
    (char*)NULL };

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

korbb's avatar
korbb committed
3879 3880 3881 3882
/*
 *  File name selection pattern
 */
tSCC zSysz_Stdlib_For_SunList[] =
korbb's avatar
korbb committed
3883
  "|stdlib.h|";
korbb's avatar
korbb committed
3884 3885 3886
/*
 *  Machine/OS name selection pattern
 */
3887
#define apzSysz_Stdlib_For_SunMachs (const char**)NULL
korbb's avatar
korbb committed
3888 3889 3890 3891 3892 3893 3894
#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
3895 3896 3897 3898 3899
    "-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",
3900
    "-e", "s/char[ \t]*\\*[ \t]*bsearch/void \\*\tbsearch/g",
korbb's avatar
korbb committed
3901
    "-e", "s/int[ \t][ \t]*exit/void\texit/g",
korbb's avatar
korbb committed
3902 3903 3904 3905
    (char*)NULL };

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

korbb's avatar
korbb committed
3912 3913 3914 3915
/*
 *  File name selection pattern
 */
tSCC zSysz_Stdtypes_For_SunList[] =
korbb's avatar
korbb committed
3916
  "|sys/stdtypes.h|";
korbb's avatar
korbb committed
3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927
/*
 *  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
3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942
    "-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
3943 3944 3945 3946
    (char*)NULL };

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

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

/*
 *  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
3972 3973 3974 3975 3976

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

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

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

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

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

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

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

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

/*
 *  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
4043 4044 4045 4046 4047

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

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

korbb's avatar
korbb committed
4059 4060 4061 4062
/*
 *  File name selection pattern
 */
tSCC zUltrix_ConstList[] =
korbb's avatar
korbb committed
4063
  "|stdio.h|";
korbb's avatar
korbb committed
4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074
/*
 *  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
4075 4076 4077 4078 4079 4080 4081 4082 4083
    "-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
4084 4085 4086 4087
    (char*)NULL };

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

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

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

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

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

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

korbb's avatar
korbb committed
4129 4130 4131 4132
/*
 *  File name selection pattern
 */
tSCC zUltrix_Nested_CmntList[] =
korbb's avatar
korbb committed
4133
  "|rpc/svc.h|";
korbb's avatar
korbb committed
4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144
/*
 *  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
4145
    "-e", "s@^\\( \\*\tint protocol;  \\)/\\*@\\1*/ /*@",
korbb's avatar
korbb committed
4146 4147 4148 4149
    (char*)NULL };

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

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

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

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

/*
 *  Fix Command Arguments for Ultrix_Static
 */
const char* apzUltrix_StaticPatch[] = { "sed",
korbb's avatar
korbb committed
4180 4181 4182
    "-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
4183 4184 4185 4186
    (char*)NULL };

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

korbb's avatar
korbb committed
4193 4194 4195 4196 4197 4198 4199 4200 4201 4202
/*
 *  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
4203
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
4204 4205
 */
tSCC zUndefine_NullSelect0[] =
4206
       "^#[ \t]*define[ \t]*[ \t]NULL[ \t\r]";
korbb's avatar
korbb committed
4207 4208

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

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

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

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

korbb's avatar
korbb committed
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 4268 4269
/*
 *  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
4270 4271
/* * * * * * * * * * * * * * * * * * * * * * * * * *
 *
korbb's avatar
korbb committed
4272
 *  Description of Va_I960_Macro fix
korbb's avatar
korbb committed
4273
 */
4274
#define VA_I960_MACRO_FIXIDX             108
korbb's avatar
korbb committed
4275
tSCC zVa_I960_MacroName[] =
4276 4277
     "va_i960_macro";

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

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

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

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

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

korbb's avatar
korbb committed
4316 4317 4318 4319
/*
 *  File name selection pattern
 */
tSCC zVoid_NullList[] =
korbb's avatar
korbb committed
4320
  "|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
4321 4322 4323 4324 4325 4326
/*
 *  Machine/OS name selection pattern
 */
#define apzVoid_NullMachs (const char**)NULL

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

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

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

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

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

/*
korbb's avatar
korbb committed
4362
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
4363 4364 4365 4366 4367 4368
 */
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
4369
  { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4370 4371 4372 4373 4374

/*
 *  Fix Command Arguments for Vxworks_Gcc_Problem
 */
const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
korbb's avatar
korbb committed
4375
    "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
korbb's avatar
korbb committed
4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390
    "-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
4391 4392 4393 4394
    (char*)NULL };

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

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

/*
korbb's avatar
korbb committed
4412
 *  content selection pattern - do fix if pattern found
korbb's avatar
korbb committed
4413 4414 4415 4416 4417 4418
 */
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
4419
  { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
korbb's avatar
korbb committed
4420 4421 4422 4423 4424

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

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

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

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

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

#define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
tTestDesc aVxworks_Needs_VxworksTests[] = {
korbb's avatar
korbb committed
4464 4465 4466 4467
  { 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
4468 4469 4470 4471 4472

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

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

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

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

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

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

/*
 *  Fix Command Arguments for Vxworks_Time
 */
const char* apzVxworks_TimePatch[] = { "sed",
korbb's avatar
korbb committed
4516 4517 4518 4519 4520 4521 4522 4523 4524
    "-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
4525
    "-e", "s/VOIDFUNCPTR/__gcc_VOIDFUNCPTR/g",
korbb's avatar
korbb committed
4526 4527 4528 4529
    (char*)NULL };

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

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

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

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

/*
 *  Fix Command Arguments for X11_Class
 */
const char* apzX11_ClassPatch[] = { "sed",
korbb's avatar
korbb committed
4560 4561 4562 4563 4564 4565
    "-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
4566 4567 4568 4569
    (char*)NULL };

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

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

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

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

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

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

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

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

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

/*
 *  Fix Command Arguments for X11_New
 */
const char* apzX11_NewPatch[] = { "sed",
korbb's avatar
korbb committed
4635 4636 4637 4638 4639 4640
    "-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
4641
    "-e", "s/Widget new,/Widget c_new,/g",
korbb's avatar
korbb committed
4642 4643 4644 4645
    (char*)NULL };

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

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

/*
 *  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
4671 4672 4673 4674 4675

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

4681

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

korbb's avatar
korbb committed
4690
tFixDesc fixDescList[ FIX_COUNT ] = {
korbb's avatar
korbb committed
4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725
  {  zAaa_Ki_IfaceName,    zAaa_Ki_IfaceList,
     apzAaa_Ki_IfaceMachs, (regex_t*)NULL,
     AAA_KI_IFACE_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAaa_Ki_IfaceTests,   apzAaa_Ki_IfacePatch },

  {  zAaa_KiName,    zAaa_KiList,
     apzAaa_KiMachs, (regex_t*)NULL,
     AAA_KI_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAaa_KiTests,   apzAaa_KiPatch },

  {  zAaa_Ki_CallsName,    zAaa_Ki_CallsList,
     apzAaa_Ki_CallsMachs, (regex_t*)NULL,
     AAA_KI_CALLS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAaa_Ki_CallsTests,   apzAaa_Ki_CallsPatch },

  {  zAaa_Ki_DefsName,    zAaa_Ki_DefsList,
     apzAaa_Ki_DefsMachs, (regex_t*)NULL,
     AAA_KI_DEFS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAaa_Ki_DefsTests,   apzAaa_Ki_DefsPatch },

  {  zAaa_Bad_FixesName,    zAaa_Bad_FixesList,
     apzAaa_Bad_FixesMachs, (regex_t*)NULL,
     AAA_BAD_FIXES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAaa_Bad_FixesTests,   apzAaa_Bad_FixesPatch },

  {  zAaa_TimeName,    zAaa_TimeList,
     apzAaa_TimeMachs, (regex_t*)NULL,
     AAA_TIME_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAaa_TimeTests,   apzAaa_TimePatch },

  {  zAab_Dgux_Int_VarargsName,    zAab_Dgux_Int_VarargsList,
     apzAab_Dgux_Int_VarargsMachs, (regex_t*)NULL,
     AAB_DGUX_INT_VARARGS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAab_Dgux_Int_VarargsTests,   apzAab_Dgux_Int_VarargsPatch },

4726 4727 4728 4729
  {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
     apzAab_Fd_Zero_Asm_Posix_Types_HMachs, (regex_t*)NULL,
     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
4730

4731 4732 4733 4734
  {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
     apzAab_Fd_Zero_Gnu_Types_HMachs, (regex_t*)NULL,
     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
4735

4736 4737 4738 4739
  {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
     apzAab_Fd_Zero_Selectbits_HMachs, (regex_t*)NULL,
     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
4740

4741 4742 4743 4744 4745
  {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
     apzAab_Sun_MemcpyMachs, (regex_t*)NULL,
     AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch },

korbb's avatar
korbb committed
4746 4747 4748 4749 4750
  {  zAab_Svr4_Replace_ByteorderName,    zAab_Svr4_Replace_ByteorderList,
     apzAab_Svr4_Replace_ByteorderMachs, (regex_t*)NULL,
     AAB_SVR4_REPLACE_BYTEORDER_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAab_Svr4_Replace_ByteorderTests,   apzAab_Svr4_Replace_ByteorderPatch },

4751 4752 4753 4754 4755
  {  zAab_Ultrix_Ansi_CompatName,    zAab_Ultrix_Ansi_CompatList,
     apzAab_Ultrix_Ansi_CompatMachs, (regex_t*)NULL,
     AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
     aAab_Ultrix_Ansi_CompatTests,   apzAab_Ultrix_Ansi_CompatPatch },

korbb's avatar
korbb committed
4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825
  {  zAix_SyswaitName,    zAix_SyswaitList,
     apzAix_SyswaitMachs, (regex_t*)NULL,
     AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY,
     aAix_SyswaitTests,   apzAix_SyswaitPatch },

  {  zAix_VolatileName,    zAix_VolatileList,
     apzAix_VolatileMachs, (regex_t*)NULL,
     AIX_VOLATILE_TEST_CT, FD_MACH_ONLY,
     aAix_VolatileTests,   apzAix_VolatilePatch },

  {  zAlpha_GetoptName,    zAlpha_GetoptList,
     apzAlpha_GetoptMachs, (regex_t*)NULL,
     ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY,
     aAlpha_GetoptTests,   apzAlpha_GetoptPatch },

  {  zAlpha_ParensName,    zAlpha_ParensList,
     apzAlpha_ParensMachs, (regex_t*)NULL,
     ALPHA_PARENS_TEST_CT, FD_MACH_ONLY,
     aAlpha_ParensTests,   apzAlpha_ParensPatch },

  {  zAlpha_SbrkName,    zAlpha_SbrkList,
     apzAlpha_SbrkMachs, (regex_t*)NULL,
     ALPHA_SBRK_TEST_CT, FD_MACH_ONLY,
     aAlpha_SbrkTests,   apzAlpha_SbrkPatch },

  {  zArm_Norcroft_HintName,    zArm_Norcroft_HintList,
     apzArm_Norcroft_HintMachs, (regex_t*)NULL,
     ARM_NORCROFT_HINT_TEST_CT, FD_MACH_ONLY,
     aArm_Norcroft_HintTests,   apzArm_Norcroft_HintPatch },

  {  zArm_WcharName,    zArm_WcharList,
     apzArm_WcharMachs, (regex_t*)NULL,
     ARM_WCHAR_TEST_CT, FD_MACH_ONLY,
     aArm_WcharTests,   apzArm_WcharPatch },

  {  zAux_AsmName,    zAux_AsmList,
     apzAux_AsmMachs, (regex_t*)NULL,
     AUX_ASM_TEST_CT, FD_MACH_ONLY,
     aAux_AsmTests,   apzAux_AsmPatch },

  {  zAvoid_BoolName,    zAvoid_BoolList,
     apzAvoid_BoolMachs, (regex_t*)NULL,
     AVOID_BOOL_TEST_CT, FD_MACH_ONLY,
     aAvoid_BoolTests,   apzAvoid_BoolPatch },

  {  zBad_Struct_TermName,    zBad_Struct_TermList,
     apzBad_Struct_TermMachs, (regex_t*)NULL,
     BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY,
     aBad_Struct_TermTests,   apzBad_Struct_TermPatch },

  {  zBadquoteName,    zBadquoteList,
     apzBadquoteMachs, (regex_t*)NULL,
     BADQUOTE_TEST_CT, FD_MACH_ONLY,
     aBadquoteTests,   apzBadquotePatch },

  {  zBad_LvalName,    zBad_LvalList,
     apzBad_LvalMachs, (regex_t*)NULL,
     BAD_LVAL_TEST_CT, FD_MACH_ONLY,
     aBad_LvalTests,   apzBad_LvalPatch },

  {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
     apzBroken_Assert_StdioMachs, (regex_t*)NULL,
     BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY,
     aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch },

  {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
     apzBroken_Assert_StdlibMachs, (regex_t*)NULL,
     BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY,
     aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch },

4826 4827 4828 4829 4830
  {  zBroken_CabsName,    zBroken_CabsList,
     apzBroken_CabsMachs, (regex_t*)NULL,
     BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
     aBroken_CabsTests,   apzBroken_CabsPatch },

korbb's avatar
korbb committed
4831 4832 4833 4834 4835
  {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
     apzDec_Intern_AsmMachs, (regex_t*)NULL,
     DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
     aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch },

korbb's avatar
korbb committed
4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850
  {  zEcd_CursorName,    zEcd_CursorList,
     apzEcd_CursorMachs, (regex_t*)NULL,
     ECD_CURSOR_TEST_CT, FD_MACH_ONLY,
     aEcd_CursorTests,   apzEcd_CursorPatch },

  {  zHp_InlineName,    zHp_InlineList,
     apzHp_InlineMachs, (regex_t*)NULL,
     HP_INLINE_TEST_CT, FD_MACH_ONLY,
     aHp_InlineTests,   apzHp_InlinePatch },

  {  zHp_SysfileName,    zHp_SysfileList,
     apzHp_SysfileMachs, (regex_t*)NULL,
     HP_SYSFILE_TEST_CT, FD_MACH_ONLY,
     aHp_SysfileTests,   apzHp_SysfilePatch },

korbb's avatar
korbb committed
4851 4852 4853 4854
  {  zCxx_UnreadyName,    zCxx_UnreadyList,
     apzCxx_UnreadyMachs, (regex_t*)NULL,
     CXX_UNREADY_TEST_CT, FD_MACH_ONLY,
     aCxx_UnreadyTests,   apzCxx_UnreadyPatch },
korbb's avatar
korbb committed
4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865

  {  zHpux_MaxintName,    zHpux_MaxintList,
     apzHpux_MaxintMachs, (regex_t*)NULL,
     HPUX_MAXINT_TEST_CT, FD_MACH_ONLY,
     aHpux_MaxintTests,   apzHpux_MaxintPatch },

  {  zHpux_SystimeName,    zHpux_SystimeList,
     apzHpux_SystimeMachs, (regex_t*)NULL,
     HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY,
     aHpux_SystimeTests,   apzHpux_SystimePatch },

4866 4867 4868 4869 4870
  {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
     apzHpux8_Bogus_InlinesMachs, (regex_t*)NULL,
     HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
     aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch },

4871 4872 4873 4874 4875
  {  zHpux11_Uint32_CName,    zHpux11_Uint32_CList,
     apzHpux11_Uint32_CMachs, (regex_t*)NULL,
     HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY,
     aHpux11_Uint32_CTests,   apzHpux11_Uint32_CPatch },

4876 4877 4878 4879
  {  zIsc_Omits_With_StdcName,    zIsc_Omits_With_StdcList,
     apzIsc_Omits_With_StdcMachs, (regex_t*)NULL,
     ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY,
     aIsc_Omits_With_StdcTests,   apzIsc_Omits_With_StdcPatch },
korbb's avatar
korbb committed
4880

4881 4882 4883 4884 4885
  {  zIo_Use_QuotesName,    zIo_Use_QuotesList,
     apzIo_Use_QuotesMachs, (regex_t*)NULL,
     IO_USE_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
     aIo_Use_QuotesTests,   apzIo_Use_QuotesPatch },

korbb's avatar
korbb committed
4886 4887
  {  zIo_Def_QuotesName,    zIo_Def_QuotesList,
     apzIo_Def_QuotesMachs, (regex_t*)NULL,
4888
     IO_DEF_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
korbb's avatar
korbb committed
4889 4890
     aIo_Def_QuotesTests,   apzIo_Def_QuotesPatch },

4891 4892 4893 4894 4895 4896 4897 4898 4899
  {  zCtrl_Use_QuotesName,    zCtrl_Use_QuotesList,
     apzCtrl_Use_QuotesMachs, (regex_t*)NULL,
     CTRL_USE_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
     aCtrl_Use_QuotesTests,   apzCtrl_Use_QuotesPatch },

  {  zCtrl_Def_QuotesName,    zCtrl_Def_QuotesList,
     apzCtrl_Def_QuotesMachs, (regex_t*)NULL,
     CTRL_DEF_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
     aCtrl_Def_QuotesTests,   apzCtrl_Def_QuotesPatch },
korbb's avatar
korbb committed
4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920

  {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
     apzIp_Missing_SemiMachs, (regex_t*)NULL,
     IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
     aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch },

  {  zIrix_Multiline_CmntName,    zIrix_Multiline_CmntList,
     apzIrix_Multiline_CmntMachs, (regex_t*)NULL,
     IRIX_MULTILINE_CMNT_TEST_CT, FD_MACH_ONLY,
     aIrix_Multiline_CmntTests,   apzIrix_Multiline_CmntPatch },

  {  zIrix_SockaddrName,    zIrix_SockaddrList,
     apzIrix_SockaddrMachs, (regex_t*)NULL,
     IRIX_SOCKADDR_TEST_CT, FD_MACH_ONLY,
     aIrix_SockaddrTests,   apzIrix_SockaddrPatch },

  {  zIrix_Struct__FileName,    zIrix_Struct__FileList,
     apzIrix_Struct__FileMachs, (regex_t*)NULL,
     IRIX_STRUCT__FILE_TEST_CT, FD_MACH_ONLY,
     aIrix_Struct__FileTests,   apzIrix_Struct__FilePatch },

4921 4922 4923 4924 4925
  {  zIrix_Asm_ApostropheName,    zIrix_Asm_ApostropheList,
     apzIrix_Asm_ApostropheMachs, (regex_t*)NULL,
     IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY,
     aIrix_Asm_ApostropheTests,   apzIrix_Asm_ApostrophePatch },

korbb's avatar
korbb committed
4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972
  {  zIsc_FmodName,    zIsc_FmodList,
     apzIsc_FmodMachs, (regex_t*)NULL,
     ISC_FMOD_TEST_CT, FD_MACH_ONLY,
     aIsc_FmodTests,   apzIsc_FmodPatch },

  {  zMotorola_NestedName,    zMotorola_NestedList,
     apzMotorola_NestedMachs, (regex_t*)NULL,
     MOTOROLA_NESTED_TEST_CT, FD_MACH_ONLY,
     aMotorola_NestedTests,   apzMotorola_NestedPatch },

  {  zIsc_Sys_LimitsName,    zIsc_Sys_LimitsList,
     apzIsc_Sys_LimitsMachs, (regex_t*)NULL,
     ISC_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
     aIsc_Sys_LimitsTests,   apzIsc_Sys_LimitsPatch },

  {  zKandr_ConcatName,    zKandr_ConcatList,
     apzKandr_ConcatMachs, (regex_t*)NULL,
     KANDR_CONCAT_TEST_CT, FD_MACH_ONLY,
     aKandr_ConcatTests,   apzKandr_ConcatPatch },

  {  zLimits_IfndefsName,    zLimits_IfndefsList,
     apzLimits_IfndefsMachs, (regex_t*)NULL,
     LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY,
     aLimits_IfndefsTests,   apzLimits_IfndefsPatch },

  {  zLynx_Void_IntName,    zLynx_Void_IntList,
     apzLynx_Void_IntMachs, (regex_t*)NULL,
     LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY,
     aLynx_Void_IntTests,   apzLynx_Void_IntPatch },

  {  zLynxos_Fcntl_ProtoName,    zLynxos_Fcntl_ProtoList,
     apzLynxos_Fcntl_ProtoMachs, (regex_t*)NULL,
     LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY,
     aLynxos_Fcntl_ProtoTests,   apzLynxos_Fcntl_ProtoPatch },

  {  zM88k_Bad_Hypot_OptName,    zM88k_Bad_Hypot_OptList,
     apzM88k_Bad_Hypot_OptMachs, (regex_t*)NULL,
     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,
     apzM88k_Bad_S_IfMachs, (regex_t*)NULL,
     M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY,
     aM88k_Bad_S_IfTests,   apzM88k_Bad_S_IfPatch },

  {  zM88k_Multi_InclName,    zM88k_Multi_InclList,
     apzM88k_Multi_InclMachs, (regex_t*)NULL,
korbb's avatar
korbb committed
4973
     M88K_MULTI_INCL_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
korbb's avatar
korbb committed
4974 4975
     aM88k_Multi_InclTests,   apzM88k_Multi_InclPatch },

4976 4977 4978 4979 4980
  {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
     apzMachine_Ansi_H_Va_ListMachs, (regex_t*)NULL,
     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
4981 4982
  {  zMachine_NameName,    zMachine_NameList,
     apzMachine_NameMachs, (regex_t*)NULL,
4983
     MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
korbb's avatar
korbb committed
4984 4985 4986 4987 4988 4989 4990
     aMachine_NameTests,   apzMachine_NamePatch },

  {  zMath_ExceptionName,    zMath_ExceptionList,
     apzMath_ExceptionMachs, (regex_t*)NULL,
     MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY,
     aMath_ExceptionTests,   apzMath_ExceptionPatch },

4991 4992 4993 4994 4995 4996 4997 4998 4999
  {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
     apzMath_Huge_Val_From_Dbl_MaxMachs, (regex_t*)NULL,
     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,
     apzMath_Huge_Val_IfndefMachs, (regex_t*)NULL,
     MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY,
     aMath_Huge_Val_IfndefTests,   apzMath_Huge_Val_IfndefPatch },
korbb's avatar
korbb committed
5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050

  {  zNested_CommentName,    zNested_CommentList,
     apzNested_CommentMachs, (regex_t*)NULL,
     NESTED_COMMENT_TEST_CT, FD_MACH_ONLY,
     aNested_CommentTests,   apzNested_CommentPatch },

  {  zNews_Os_RecursionName,    zNews_Os_RecursionList,
     apzNews_Os_RecursionMachs, (regex_t*)NULL,
     NEWS_OS_RECURSION_TEST_CT, FD_MACH_ONLY,
     aNews_Os_RecursionTests,   apzNews_Os_RecursionPatch },

  {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
     apzNext_Math_PrefixMachs, (regex_t*)NULL,
     NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY,
     aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch },

  {  zNext_TemplateName,    zNext_TemplateList,
     apzNext_TemplateMachs, (regex_t*)NULL,
     NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY,
     aNext_TemplateTests,   apzNext_TemplatePatch },

  {  zNext_VolitileName,    zNext_VolitileList,
     apzNext_VolitileMachs, (regex_t*)NULL,
     NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY,
     aNext_VolitileTests,   apzNext_VolitilePatch },

  {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
     apzNext_Wait_UnionMachs, (regex_t*)NULL,
     NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY,
     aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch },

  {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
     apzNodeent_SyntaxMachs, (regex_t*)NULL,
     NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY,
     aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch },

  {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
     apzOsf_Namespace_AMachs, (regex_t*)NULL,
     OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY,
     aOsf_Namespace_ATests,   apzOsf_Namespace_APatch },

  {  zOsf_Namespace_BName,    zOsf_Namespace_BList,
     apzOsf_Namespace_BMachs, (regex_t*)NULL,
     OSF_NAMESPACE_B_TEST_CT, FD_MACH_ONLY,
     aOsf_Namespace_BTests,   apzOsf_Namespace_BPatch },

  {  zPthread_Page_SizeName,    zPthread_Page_SizeList,
     apzPthread_Page_SizeMachs, (regex_t*)NULL,
     PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY,
     aPthread_Page_SizeTests,   apzPthread_Page_SizePatch },

5051 5052 5053 5054 5055
  {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
     apzRead_Ret_TypeMachs, (regex_t*)NULL,
     READ_RET_TYPE_TEST_CT, FD_MACH_ONLY,
     aRead_Ret_TypeTests,   apzRead_Ret_TypePatch },

korbb's avatar
korbb committed
5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070
  {  zRs6000_DoubleName,    zRs6000_DoubleList,
     apzRs6000_DoubleMachs, (regex_t*)NULL,
     RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY,
     aRs6000_DoubleTests,   apzRs6000_DoublePatch },

  {  zRs6000_FchmodName,    zRs6000_FchmodList,
     apzRs6000_FchmodMachs, (regex_t*)NULL,
     RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY,
     aRs6000_FchmodTests,   apzRs6000_FchmodPatch },

  {  zRs6000_ParamName,    zRs6000_ParamList,
     apzRs6000_ParamMachs, (regex_t*)NULL,
     RS6000_PARAM_TEST_CT, FD_MACH_ONLY,
     aRs6000_ParamTests,   apzRs6000_ParamPatch },

korbb's avatar
korbb committed
5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085
  {  zSco_Strict_AnsiName,    zSco_Strict_AnsiList,
     apzSco_Strict_AnsiMachs, (regex_t*)NULL,
     SCO_STRICT_ANSI_TEST_CT, FD_MACH_ONLY,
     aSco_Strict_AnsiTests,   apzSco_Strict_AnsiPatch },

  {  zSco_Static_FuncName,    zSco_Static_FuncList,
     apzSco_Static_FuncMachs, (regex_t*)NULL,
     SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
     aSco_Static_FuncTests,   apzSco_Static_FuncPatch },

  {  zSco_UtimeName,    zSco_UtimeList,
     apzSco_UtimeMachs, (regex_t*)NULL,
     SCO_UTIME_TEST_CT, FD_MACH_ONLY,
     aSco_UtimeTests,   apzSco_UtimePatch },

korbb's avatar
korbb committed
5086 5087 5088 5089 5090 5091 5092 5093 5094 5095
  {  zSony_IncludeName,    zSony_IncludeList,
     apzSony_IncludeMachs, (regex_t*)NULL,
     SONY_INCLUDE_TEST_CT, FD_MACH_ONLY,
     aSony_IncludeTests,   apzSony_IncludePatch },

  {  zStatsswtchName,    zStatsswtchList,
     apzStatsswtchMachs, (regex_t*)NULL,
     STATSSWTCH_TEST_CT, FD_MACH_ONLY,
     aStatsswtchTests,   apzStatsswtchPatch },

5096 5097 5098 5099 5100
  {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
     apzStdio_Stdarg_HMachs, (regex_t*)NULL,
     STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY,
     aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch },

korbb's avatar
korbb committed
5101 5102
  {  zStdio_Va_ListName,    zStdio_Va_ListList,
     apzStdio_Va_ListMachs, (regex_t*)NULL,
5103
     STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
korbb's avatar
korbb committed
5104 5105
     aStdio_Va_ListTests,   apzStdio_Va_ListPatch },

korbb's avatar
korbb committed
5106 5107 5108 5109 5110
  {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
     apzSun_Auth_ProtoMachs, (regex_t*)NULL,
     SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY,
     aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch },

korbb's avatar
korbb committed
5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150
  {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
     apzSun_Bogus_IfdefMachs, (regex_t*)NULL,
     SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY,
     aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch },

  {  zSun_Bogus_Ifdef_Sun4cName,    zSun_Bogus_Ifdef_Sun4cList,
     apzSun_Bogus_Ifdef_Sun4cMachs, (regex_t*)NULL,
     SUN_BOGUS_IFDEF_SUN4C_TEST_CT, FD_MACH_ONLY,
     aSun_Bogus_Ifdef_Sun4cTests,   apzSun_Bogus_Ifdef_Sun4cPatch },

  {  zSun_CatmacroName,    zSun_CatmacroList,
     apzSun_CatmacroMachs, (regex_t*)NULL,
     SUN_CATMACRO_TEST_CT, FD_MACH_ONLY,
     aSun_CatmacroTests,   apzSun_CatmacroPatch },

  {  zSun_MallocName,    zSun_MallocList,
     apzSun_MallocMachs, (regex_t*)NULL,
     SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
     aSun_MallocTests,   apzSun_MallocPatch },

  {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
     apzSun_Rusers_SemiMachs, (regex_t*)NULL,
     SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
     aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch },

  {  zSun_SignalName,    zSun_SignalList,
     apzSun_SignalMachs, (regex_t*)NULL,
     SUN_SIGNAL_TEST_CT, FD_MACH_ONLY,
     aSun_SignalTests,   apzSun_SignalPatch },

  {  zSunos_Matherr_DeclName,    zSunos_Matherr_DeclList,
     apzSunos_Matherr_DeclMachs, (regex_t*)NULL,
     SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY,
     aSunos_Matherr_DeclTests,   apzSunos_Matherr_DeclPatch },

  {  zSunos_StrlenName,    zSunos_StrlenList,
     apzSunos_StrlenMachs, (regex_t*)NULL,
     SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY,
     aSunos_StrlenTests,   apzSunos_StrlenPatch },

korbb's avatar
korbb committed
5151 5152 5153 5154 5155 5156 5157 5158 5159 5160
  {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
     apzSvr4_GetcwdMachs, (regex_t*)NULL,
     SVR4_GETCWD_TEST_CT, FD_MACH_ONLY,
     aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch },

  {  zSvr4_ProfilName,    zSvr4_ProfilList,
     apzSvr4_ProfilMachs, (regex_t*)NULL,
     SVR4_PROFIL_TEST_CT, FD_MACH_ONLY,
     aSvr4_ProfilTests,   apzSvr4_ProfilPatch },

korbb's avatar
korbb committed
5161 5162 5163 5164 5165
  {  zSystypesName,    zSystypesList,
     apzSystypesMachs, (regex_t*)NULL,
     SYSTYPES_TEST_CT, FD_MACH_ONLY,
     aSystypesTests,   apzSystypesPatch },

5166 5167 5168 5169
  {  zSystypes_Stdlib_Size_TName,    zSystypes_Stdlib_Size_TList,
     apzSystypes_Stdlib_Size_TMachs, (regex_t*)NULL,
     SYSTYPES_STDLIB_SIZE_T_TEST_CT, FD_MACH_ONLY,
     aSystypes_Stdlib_Size_TTests,   apzSystypes_Stdlib_Size_TPatch },
korbb's avatar
korbb committed
5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190

  {  zSysv68_StringName,    zSysv68_StringList,
     apzSysv68_StringMachs, (regex_t*)NULL,
     SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
     aSysv68_StringTests,   apzSysv68_StringPatch },

  {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
     apzSysz_Stdlib_For_SunMachs, (regex_t*)NULL,
     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,
     apzSysz_Stdtypes_For_SunMachs, (regex_t*)NULL,
     SYSZ_STDTYPES_FOR_SUN_TEST_CT, FD_MACH_ONLY,
     aSysz_Stdtypes_For_SunTests,   apzSysz_Stdtypes_For_SunPatch },

  {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
     apzTinfo_CplusplusMachs, (regex_t*)NULL,
     TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY,
     aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch },

korbb's avatar
korbb committed
5191 5192 5193 5194 5195
  {  zUltrix_Fix_FixprotoName,    zUltrix_Fix_FixprotoList,
     apzUltrix_Fix_FixprotoMachs, (regex_t*)NULL,
     ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY,
     aUltrix_Fix_FixprotoTests,   apzUltrix_Fix_FixprotoPatch },

korbb's avatar
korbb committed
5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225
  {  zUltrix_Atof_ParamName,    zUltrix_Atof_ParamList,
     apzUltrix_Atof_ParamMachs, (regex_t*)NULL,
     ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY,
     aUltrix_Atof_ParamTests,   apzUltrix_Atof_ParamPatch },

  {  zUltrix_ConstName,    zUltrix_ConstList,
     apzUltrix_ConstMachs, (regex_t*)NULL,
     ULTRIX_CONST_TEST_CT, FD_MACH_ONLY,
     aUltrix_ConstTests,   apzUltrix_ConstPatch },

  {  zUltrix_IfdefName,    zUltrix_IfdefList,
     apzUltrix_IfdefMachs, (regex_t*)NULL,
     ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY,
     aUltrix_IfdefTests,   apzUltrix_IfdefPatch },

  {  zUltrix_Nested_CmntName,    zUltrix_Nested_CmntList,
     apzUltrix_Nested_CmntMachs, (regex_t*)NULL,
     ULTRIX_NESTED_CMNT_TEST_CT, FD_MACH_ONLY,
     aUltrix_Nested_CmntTests,   apzUltrix_Nested_CmntPatch },

  {  zUltrix_StaticName,    zUltrix_StaticList,
     apzUltrix_StaticMachs, (regex_t*)NULL,
     ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
     aUltrix_StaticTests,   apzUltrix_StaticPatch },

  {  zUndefine_NullName,    zUndefine_NullList,
     apzUndefine_NullMachs, (regex_t*)NULL,
     UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY,
     aUndefine_NullTests,   apzUndefine_NullPatch },

korbb's avatar
korbb committed
5226 5227 5228 5229 5230
  {  zUnixware7_Byteorder_FixName,    zUnixware7_Byteorder_FixList,
     apzUnixware7_Byteorder_FixMachs, (regex_t*)NULL,
     UNIXWARE7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY,
     aUnixware7_Byteorder_FixTests,   apzUnixware7_Byteorder_FixPatch },

korbb's avatar
korbb committed
5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278
  {  zVa_I960_MacroName,    zVa_I960_MacroList,
     apzVa_I960_MacroMachs, (regex_t*)NULL,
     VA_I960_MACRO_TEST_CT, FD_MACH_ONLY,
     aVa_I960_MacroTests,   apzVa_I960_MacroPatch },

  {  zVoid_NullName,    zVoid_NullList,
     apzVoid_NullMachs, (regex_t*)NULL,
     VOID_NULL_TEST_CT, FD_MACH_ONLY,
     aVoid_NullTests,   apzVoid_NullPatch },

  {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
     apzVxworks_Gcc_ProblemMachs, (regex_t*)NULL,
     VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
     aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch },

  {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
     apzVxworks_Needs_VxtypesMachs, (regex_t*)NULL,
     VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY,
     aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch },

  {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
     apzVxworks_Needs_VxworksMachs, (regex_t*)NULL,
     VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
     aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch },

  {  zVxworks_TimeName,    zVxworks_TimeList,
     apzVxworks_TimeMachs, (regex_t*)NULL,
     VXWORKS_TIME_TEST_CT, FD_MACH_ONLY,
     aVxworks_TimeTests,   apzVxworks_TimePatch },

  {  zX11_ClassName,    zX11_ClassList,
     apzX11_ClassMachs, (regex_t*)NULL,
     X11_CLASS_TEST_CT, FD_MACH_ONLY,
     aX11_ClassTests,   apzX11_ClassPatch },

  {  zX11_Class_UsageName,    zX11_Class_UsageList,
     apzX11_Class_UsageMachs, (regex_t*)NULL,
     X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY,
     aX11_Class_UsageTests,   apzX11_Class_UsagePatch },

  {  zX11_NewName,    zX11_NewList,
     apzX11_NewMachs, (regex_t*)NULL,
     X11_NEW_TEST_CT, FD_MACH_ONLY,
     aX11_NewTests,   apzX11_NewPatch },

  {  zX11_SprintfName,    zX11_SprintfList,
     apzX11_SprintfMachs, (regex_t*)NULL,
     X11_SPRINTF_TEST_CT, FD_MACH_ONLY,
korbb's avatar
korbb committed
5279
     aX11_SprintfTests,   apzX11_SprintfPatch }
korbb's avatar
korbb committed
5280
};