parser_local_proto.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef __PARSER_LOCAL_PROTO_H__
  2. #define __PARSER_LOCAL_PROTO_H__
  3. #include <stdio.h>
  4. #include <grass/gis.h>
  5. struct Item
  6. {
  7. struct Option *option;
  8. struct Flag *flag;
  9. struct Item *next_item;
  10. };
  11. struct state {
  12. int no_interactive;
  13. int n_opts;
  14. int n_flags;
  15. int n_keys;
  16. int n_keys_alloc;
  17. int overwrite;
  18. int quiet;
  19. int has_required;
  20. struct GModule module_info; /* general information on the corresponding module */
  21. const char *pgm_name;
  22. const char *pgm_path;
  23. struct Flag first_flag; /* First flag in a linked list */
  24. struct Flag *current_flag; /* Pointer for traversing list */
  25. struct Option first_option;
  26. struct Option *current_option;
  27. struct Item first_item;
  28. struct Item *current_item;
  29. int n_items;
  30. };
  31. extern struct state *st;
  32. /* functions which are used by several parser functions in different files */
  33. void G__usage_xml(void);
  34. void G__usage_html(void);
  35. void G__script(void);
  36. void G__wps_print_process_description(void);
  37. int G__uses_new_gisprompt(void);
  38. void G__print_keywords(FILE *, void (*)(FILE *, const char *));
  39. #endif