PageRenderTime 24ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/xts5/src/bin/mc/mcproto.h

#
C Header | 257 lines | 183 code | 7 blank | 67 comment | 1 complexity | 5eebdea37d1700627435459772047b49 MD5 | raw file
  1. /*
  2. Copyright (c) 2005 X.Org Foundation LLC
  3. Permission is hereby granted, free of charge, to any person obtaining a copy of
  4. this software and associated documentation files (the "Software"), to deal in
  5. the Software without restriction, including without limitation the rights to
  6. use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
  7. of the Software, and to permit persons to whom the Software is furnished to do
  8. so, subject to the following conditions:
  9. The above copyright notice and this permission notice shall be included in all
  10. copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  17. SOFTWARE.
  18. */
  19. /*
  20. *
  21. * Copyright (c) Applied Testing and Technology, Inc. 1995
  22. * All Rights Reserved.
  23. *
  24. * Project: VSW5
  25. *
  26. * File: src/bin/mc/mcproto.h
  27. *
  28. * Description:
  29. * Function signatures for mc utilities
  30. *
  31. * Modifications:
  32. * $Log: mcproto.h,v $
  33. * Revision 1.1 2005-02-12 14:37:14 anderson
  34. * Initial revision
  35. *
  36. * Revision 8.0 1998/12/23 23:24:16 mar
  37. * Branch point for Release 5.0.2
  38. *
  39. * Revision 7.0 1998/10/30 22:42:26 mar
  40. * Branch point for Release 5.0.2b1
  41. *
  42. * Revision 6.0 1998/03/02 05:16:42 tbr
  43. * Branch point for Release 5.0.1
  44. *
  45. * Revision 5.0 1998/01/26 03:13:15 tbr
  46. * Branch point for Release 5.0.1b1
  47. *
  48. * Revision 4.0 1995/12/15 08:41:25 tbr
  49. * Branch point for Release 5.0.0
  50. *
  51. * Revision 3.2 1995/12/15 00:38:14 andy
  52. * Prepare for GA Release
  53. *
  54. */
  55. /*
  56. Portions of this software are based on Xlib and X Protocol Test Suite.
  57. We have used this material under the terms of its copyright, which grants
  58. free use, subject to the conditions below. Note however that those
  59. portions of this software that are based on the original Test Suite have
  60. been significantly revised and that all such revisions are copyright (c)
  61. 1995 Applied Testing and Technology, Inc. Insomuch as the proprietary
  62. revisions cannot be separated from the freely copyable material, the net
  63. result is that use of this software is governed by the ApTest copyright.
  64. */
  65. #if __STDC__ == 1
  66. void mcstart(char *buf);
  67. void mcend(char *buf);
  68. void mccopyright(FILE *fp, char *buf);
  69. void mcheader(FILE *fp, char *buf);
  70. int defargnames(void);
  71. void mcassertion(FILE *fp, char *buf);
  72. int assertfill(FILE *fp, char *buf, FILE *outfp, char *prefix);
  73. int joinpunct(int c);
  74. void mcstrategy(FILE *fp, char *buf);
  75. void mccode(FILE *fp, register char *buf);
  76. void mcexterncode(FILE *fp, char *buf);
  77. int funcstart(void);
  78. int funcend(void);
  79. int doxcall(FILE *fp, char *buf);
  80. void mcdefassertion(FILE *fp, char *buf);
  81. void mcincstart(char *buf);
  82. void mcincend(char *buf);
  83. int hashcmd(char *buf);
  84. int doif(char *buf);
  85. int doelse(void);
  86. int doendif(void);
  87. void defargtype(char *name, int num);
  88. int errtext(char *buf);
  89. int valerror(char *buf);
  90. int valerrdefs(void);
  91. int erralternates(char *out);
  92. int errcode(char *bp);
  93. void mepcopyright(FILE *fp, char *buf);
  94. void mepecho(FILE *fp, char *buf);
  95. void mepstart(char *buf);
  96. void mepend(char *buf);
  97. void mepset(char *buf);
  98. void mepcomment(char *buf);
  99. FILE *nextfile(struct mclist *sources);
  100. void outcopy(char *file);
  101. FILE *cretmpfile(char *file, char **crefile);
  102. int outfile(FILE *fp);
  103. int remfiles(void);
  104. int includefile(char *file, char *bp);
  105. void filetemp(char *name);
  106. char *mcpath(char *file);
  107. int gccomps(FILE *fp, char *buf);
  108. void macopyright(FILE *fp, char *buf);
  109. void maheader(FILE *fp, char *buf);
  110. void maassertion(FILE *fp, char *buf);
  111. void madefassertion(FILE *fp, char *buf);
  112. void mastart(char *buf);
  113. void maend(char *buf);
  114. void macomment(char *buf);
  115. int main(int argc, char **argv);
  116. char *newline(FILE *fp, char *buf);
  117. int putbackline(char *line);
  118. void expandxname(char *line);
  119. int err(char *mess);
  120. int errexit(void);
  121. char *mcstrdup(char *s);
  122. char *strinstr(char *s1, char *s2);
  123. int isassertwanted(int a);
  124. void mmstart(char *buf);
  125. void mmend(char *buf);
  126. void mmcopyright(FILE *fp, char *buf);
  127. void mmheader(FILE *fp, char *buf);
  128. void mmmake(FILE *fp, char *buf);
  129. void mmcfiles(FILE *fp, char *buf);
  130. void mmincstart(char *name);
  131. struct mclist *createmclist(void);
  132. struct mclist *addmclist(struct mclist *list, char *string);
  133. char *getmclistitem(struct mclist *list, int n);
  134. void mascopyright(FILE *fp, char *buf);
  135. void masheader(FILE *fp, char *buf);
  136. void masassertion(FILE *fp, char *buf);
  137. void masstrategy(FILE *fp, char *buf);
  138. void masdefassertion(FILE *fp, char *buf);
  139. void masstart(char *buf);
  140. void masend(char *buf);
  141. int dosections(FILE *fp, char *buf);
  142. int assertion(FILE *fp, char *buf);
  143. void do1sec(FILE *fp, char *buf, int sec);
  144. int dohook(char *buf, int hook);
  145. void skip(FILE *fp, char *buf);
  146. void echo(FILE *fp, char *buf, FILE *fpout);
  147. void echon(FILE *fp, char *buf, FILE *fpout);
  148. void dodefaults(char *buf);
  149. int setcmd(char *bp);
  150. char *name12(char *inname);
  151. char *name12lc(char *name);
  152. char *name10(char *name);
  153. char *name10lc(char *name);
  154. int main(int argc, char **argv);
  155. char *strinstr(char *s1, char *s2);
  156. #else
  157. void mcstart();
  158. void mcend();
  159. void mccopyright();
  160. void mcheader();
  161. int defargnames();
  162. void mcassertion();
  163. int assertfill();
  164. int joinpunct();
  165. void mcstrategy();
  166. void mccode();
  167. void mcexterncode();
  168. int funcstart();
  169. int funcend();
  170. int doxcall();
  171. void mcdefassertion();
  172. void mcincstart();
  173. void mcincend();
  174. int hashcmd();
  175. int doif();
  176. int doelse();
  177. int doendif();
  178. void defargtype();
  179. int errtext();
  180. int valerror();
  181. int valerrdefs();
  182. int erralternates();
  183. int errcode();
  184. void mepcopyright();
  185. void mepecho();
  186. void mepstart();
  187. void mepend();
  188. void mepset();
  189. void mepcomment();
  190. FILE *nextfile();
  191. void outcopy();
  192. FILE *cretmpfile();
  193. int outfile();
  194. int remfiles();
  195. int includefile();
  196. void filetemp();
  197. char *mcpath();
  198. int gccomps();
  199. void macopyright();
  200. void maheader();
  201. void maassertion();
  202. void madefassertion();
  203. void mastart();
  204. void maend();
  205. void macomment();
  206. int main();
  207. char *newline();
  208. int putbackline();
  209. void expandxname();
  210. int err();
  211. int errexit();
  212. char *mcstrdup();
  213. char *strinstr();
  214. int isassertwanted();
  215. void mmstart();
  216. void mmend();
  217. void mmcopyright();
  218. void mmheader();
  219. void mmmake();
  220. void mmcfiles();
  221. void mmincstart();
  222. struct mclist *createmclist();
  223. struct mclist *addmclist();
  224. char *getmclistitem();
  225. void mascopyright();
  226. void masheader();
  227. void masassertion();
  228. void masstrategy();
  229. void masdefassertion();
  230. void masstart();
  231. void masend();
  232. int dosections();
  233. int assertion();
  234. void do1sec();
  235. int dohook();
  236. void skip();
  237. void echo();
  238. void echon();
  239. void dodefaults();
  240. int setcmd();
  241. char *name12();
  242. char *name12lc();
  243. char *name10();
  244. char *name10lc();
  245. int main();
  246. char *strinstr();
  247. #endif