global.h 348 B

12345678910111213141516171819202122232425
  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. };
  10. struct context
  11. {
  12. struct GModule *module;
  13. struct Option *option;
  14. struct Flag *flag;
  15. struct Option *first_option;
  16. struct Flag *first_flag;
  17. int state;
  18. FILE *fp;
  19. int line;
  20. };
  21. extern int translate_output;