wmc.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * Main definitions and externals
  3. *
  4. * Copyright 2000 Bertho A. Stultiens (BS)
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  19. */
  20. #ifndef __WMC_WMC_H
  21. #define __WMC_WMC_H
  22. #include "../tools.h"
  23. #include "wmctypes.h"
  24. /*
  25. * The default codepage setting is only to
  26. * read and convert input which is non-message
  27. * text. It doesn't really matter that much because
  28. * all codepages map 0x00-0x7f to 0x0000-0x007f from
  29. * char to unicode and all non-message text should
  30. * be plain ASCII.
  31. * However, we do implement iso-8859-1 for 1-to-1
  32. * mapping for all other chars, so this is very close
  33. * to what we really want.
  34. */
  35. #define WMC_DEFAULT_CODEPAGE 28591
  36. extern int pedantic;
  37. extern int leave_case;
  38. extern int decimal;
  39. extern int custombit;
  40. extern int unicodein;
  41. extern int rcinline;
  42. extern char *output_name;
  43. extern const char *input_name;
  44. extern char *header_name;
  45. extern char *cmdline;
  46. extern const char *nlsdirs[];
  47. extern int line_number;
  48. extern int char_number;
  49. int mcy_parse(void);
  50. extern int mcy_debug;
  51. extern int want_nl;
  52. extern int want_line;
  53. extern int want_file;
  54. extern struct node *nodehead;
  55. extern struct lan_blk *lanblockhead;
  56. int mcy_lex(void);
  57. extern FILE *yyin;
  58. void set_codepage(int cp);
  59. void add_token(enum tok_enum type, const WCHAR *name, int tok, int cp, const WCHAR *alias, int fix);
  60. struct token *lookup_token(const WCHAR *s);
  61. void get_tokentable(struct token **tab, int *len);
  62. #endif