proto.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /* -*- buffer-read-only: t -*- vi: set ro:
  2. *
  3. * Prototypes for autoopts
  4. * Generated Sun Apr 17 11:55:34 PDT 2005
  5. */
  6. #ifndef AUTOOPTS_PROTO_H_GUARD
  7. #define AUTOOPTS_PROTO_H_GUARD
  8. #ifndef LOCAL
  9. # define LOCAL extern
  10. # define REDEF_LOCAL 1
  11. #else
  12. # undef REDEF_LOCAL
  13. #endif
  14. /*
  15. * Extracted from autoopts.c
  16. */
  17. LOCAL tSuccess
  18. handleOption( tOptions* pOpts, tOptState* pOptState );
  19. LOCAL tSuccess
  20. longOptionFind( tOptions* pOpts, char* pzOptName, tOptState* pOptState );
  21. LOCAL tSuccess
  22. shortOptionFind( tOptions* pOpts, tUC optValue, tOptState* pOptState );
  23. LOCAL tSuccess
  24. doImmediateOpts( tOptions* pOpts );
  25. LOCAL tSuccess
  26. doRegularOpts( tOptions* pOpts );
  27. /*
  28. * Extracted from configfile.c
  29. */
  30. LOCAL void
  31. internalFileLoad( tOptions* pOpts );
  32. LOCAL char*
  33. parseAttributes(
  34. tOptions* pOpts,
  35. char* pzText,
  36. tOptionLoadMode* pMode,
  37. tOptionValue* pType );
  38. LOCAL tSuccess
  39. validateOptionsStruct( tOptions* pOpts, const char* pzProgram );
  40. /*
  41. * Extracted from cook.c
  42. */
  43. /*
  44. * Extracted from enumeration.c
  45. */
  46. /*
  47. * Extracted from environment.c
  48. */
  49. LOCAL void
  50. doPrognameEnv( tOptions* pOpts, teEnvPresetType type );
  51. LOCAL void
  52. doEnvPresets( tOptions* pOpts, teEnvPresetType type );
  53. /*
  54. * Extracted from load.c
  55. */
  56. LOCAL void
  57. mungeString( char* pzTxt, tOptionLoadMode mode );
  58. LOCAL void
  59. loadOptionLine(
  60. tOptions* pOpts,
  61. tOptState* pOS,
  62. char* pzLine,
  63. tDirection direction,
  64. tOptionLoadMode load_mode );
  65. /*
  66. * Extracted from makeshell.c
  67. */
  68. /*
  69. * Extracted from nested.c
  70. */
  71. /*
  72. * Extracted from putshell.c
  73. */
  74. /*
  75. * Extracted from save.c
  76. */
  77. /*
  78. * Extracted from sort.c
  79. */
  80. LOCAL void
  81. optionSort( tOptions* pOpts );
  82. /*
  83. * Extracted from stack.c
  84. */
  85. LOCAL void
  86. addArgListEntry( void** ppAL, void* entry );
  87. /*
  88. * Extracted from text_mmap.c
  89. */
  90. LOCAL void*
  91. text_mmap( const char* pzFile, int prot, int flags, tmap_info_t* pMI );
  92. LOCAL int
  93. text_munmap( tmap_info_t* pMI );
  94. /*
  95. * Extracted from tokenize.c
  96. */
  97. /*
  98. * Extracted from usage.c
  99. */
  100. /*
  101. * Extracted from version.c
  102. */
  103. #ifdef REDEF_LOCAL
  104. # undef LOCAL
  105. # define LOCAL
  106. #endif
  107. #endif /* AUTOOPTS_PROTO_H_GUARD */