global.h 361 B

1234567891011121314151617181920212223242526
  1. #include <stdio.h>
  2. #include <grass/gis.h>
  3. enum state
  4. {
  5. S_TOPLEVEL,
  6. S_MODULE,
  7. S_FLAG,
  8. S_OPTION,
  9. S_RULES
  10. };
  11. struct context
  12. {
  13. struct GModule *module;
  14. struct Option *option;
  15. struct Flag *flag;
  16. struct Option *first_option;
  17. struct Flag *first_flag;
  18. int state;
  19. FILE *fp;
  20. int line;
  21. };
  22. extern int translate_output;