symbol.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*====================================================================*
  2. *
  3. * symbol.h - symbol table definitions and declarations;
  4. *
  5. * this file is a subset of the original with some additions not in
  6. * the original;
  7. *
  8. * Motley Tools by Charles Maier;
  9. * Copyright 2001-2006 by Charles Maier Associates;
  10. * Licensed under the Internet Software Consortium License;
  11. *
  12. *--------------------------------------------------------------------*/
  13. #ifndef SYMBOL_HEADER
  14. #define SYMBOL_HEADER
  15. /*====================================================================*
  16. * system header files;
  17. *--------------------------------------------------------------------*/
  18. #include <stdio.h>
  19. /*====================================================================*
  20. * custom header files;
  21. *--------------------------------------------------------------------*/
  22. #include "../tools/types.h"
  23. /*====================================================================*
  24. * functions;
  25. *--------------------------------------------------------------------*/
  26. char const * synonym (char const * term, const struct _term_ list [], size_t size);
  27. void assist (char const * name, char const * type, const struct _code_ list [], size_t size);
  28. signed lookup (char const * name, struct _code_ const list [], size_t size);
  29. char const * reword (code_t code, struct _code_ const list [], size_t size);
  30. void expect (const struct _code_ list [], size_t size, FILE *);
  31. char const * typename (struct _type_ const list [], size_t size, type_t type, char const * name);
  32. char const * codename (struct _code_ const list [], size_t size, code_t code, char const * name);
  33. void codelist (const struct _code_ list [], size_t size, char const * comma, char const * quote, FILE *);
  34. void typelist (const struct _type_ list [], size_t size, char const * comma, char const * quote, FILE *);
  35. void termlist (const struct _term_ list [], size_t size, char const * comma, char const * quote, FILE *);
  36. signed getargv (signed argc, char const * argv []);
  37. /*====================================================================*
  38. *
  39. *--------------------------------------------------------------------*/
  40. #endif