sitelib.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. #ifndef GRASS_SITELIBDEFS_H
  2. #define GRASS_SITELIBDEFS_H
  3. /* announce.c */
  4. int announce(char *);
  5. /* ask_quad.c */
  6. int ask_quad(int *);
  7. /* center.c */
  8. int center(char *, int);
  9. /* chain.c */
  10. int chain(char *);
  11. /* copy_sites.c */
  12. int copy_sites(SITE_LIST *, SITE_LIST *, int);
  13. /* copyfile.c */
  14. int copyfile(char *, char *);
  15. /* count_site.c */
  16. int count_sites(SITE_LIST *, int);
  17. /* counter.c */
  18. int counter_reset(char *, int);
  19. int counter(int);
  20. /* die.c */
  21. int die(char *);
  22. /* eq_sites.c */
  23. int equal_sites(SITE_LIST *, SITE_LIST *);
  24. /* execute.c */
  25. int execute(char *);
  26. /* hitreturn.c */
  27. int hitreturn(void);
  28. /* maximum.c */
  29. int maximum(register int *, int);
  30. /* memcopy.c */
  31. int memcopy(char *, char *, int);
  32. #ifdef MENU
  33. /* menu_hndlr.c */
  34. int menu_handler(MENU, char *);
  35. #endif
  36. /* meta_reprt.c */
  37. int meta_report(char *, char *, char *, int, int);
  38. /* parse.c */
  39. int parse(char *, char *[], int, char *);
  40. /* read_sites.c */
  41. int read_site_list(SITE_LIST *, FILE *);
  42. int get_site_list(SITE_LIST *, char *);
  43. /* region.c */
  44. char *format_res(double, char *, int);
  45. char *format_east(double, char *, int);
  46. char *format_north(double, char *, int);
  47. int scan_north(char *, double *);
  48. int scan_east(char *, double *);
  49. int scan_res(char *, double *);
  50. #ifdef REPORT
  51. /* report.c */
  52. REPORT *report_open(char *);
  53. REPORT *report_open_ref(char *, REPORT *);
  54. int report_close(REPORT *);
  55. int report_read(REPORT *);
  56. int report_record(REPORT *, char *);
  57. int report_read_record(REPORT *, char *);
  58. int report_scan(REPORT *);
  59. int report_matrix(REPORT *);
  60. /* rprt_finds.c */
  61. rprt_finds.c:int report_find_layer(REPORT *, int);
  62. rprt_finds.c:int report_find_cat(REPORT *, int, int);
  63. rprt_finds.c:int report_find_point(REPORT *, int);
  64. rprt_finds.c:int report_find_data(REPORT *, int, int);
  65. /* rprt_seeks.c */
  66. rprt_seeks.c:int report_seek_layers(REPORT *);
  67. rprt_seeks.c:int report_seek_points(REPORT *);
  68. rprt_seeks.c:int report_seek_cats(REPORT *);
  69. rprt_seeks.c:int report_seek_data(REPORT *);
  70. #endif
  71. /* rpt_screen.c */
  72. int new_report_screen(void);
  73. /* scan_int.c */
  74. int scan_int(char *, int *);
  75. /* scn_double.c */
  76. int scan_double(char *, double *);
  77. /* scopy.c */
  78. int scopy(char *, char *, int);
  79. /* site.c */
  80. int add_site(SITE_LIST *, double, double, char *);
  81. int initialize_site_list(SITE_LIST *);
  82. int rewind_site_list(SITE_LIST *);
  83. int next_site(SITE_LIST *, double *, double *, char **);
  84. int free_site_list(SITE_LIST *);
  85. /* sort_int.c */
  86. int sort_int(int[], int, int);
  87. /* trace.c */
  88. int trace(int);
  89. /* ut_to_cell.c */
  90. float northing_to_row(double, struct Cell_head *);
  91. float easting_to_col(double, struct Cell_head *);
  92. /* within_wnd.c */
  93. int within_window(double, double, struct Cell_head *);
  94. /* write_site.c */
  95. int put_site_list(SITE_LIST *, char *, int, int);
  96. int write_site_list(SITE_LIST *, FILE *, int, int);
  97. /* yes.c */
  98. int yes(char *);
  99. #endif