GRASS Programmer's Manual
6.4.3(2013)-r
|
Go to the source code of this file.
Functions | |
char * | basename (char *path) |
void | mkdir_s (char *pathname, char *mode) |
int | chop (char *string) |
int | insert_str (char *str, int pos, char **strarr) |
int | delete_str (int pos, char **strarr) |
int | find_pos (char *str, char **strarr, int start) |
void | dump_str (FILE *f, char **strarr) |
void | get_package_name (char *path, char *name) |
char * | nc_fgets (char *s, int size, FILE *stream) |
char * | nc_fgets_nb (char *s, int size, FILE *stream) |
char * | nc_fgets_html (char *s, int size, FILE *stream) |
void | dump_ascii (char *file, char *heading) |
void | dump_plain (char *file, char *tmpfile) |
void | dump_html (char *file, char *tmpfile) |
void | list_binaries (char *package) |
int | binaries_exist (char *package, char *binaries) |
int | check_filetype (char *file) |
void | wget_extension (char *url) |
void | su (char *gisbase, char *cmd) |
int | vercmp (int major, int minor, int revision, int major2, int minor2, int revision2) |
char* basename | ( | char * | path) |
Definition at line 33 of file tools.c.
References NULL.
Referenced by bin_install(), query_extension(), run_post(), show_details(), show_license(), source_clean(), source_install(), test_install(), and unpack_extension().
int binaries_exist | ( | char * | package, |
char * | binaries | ||
) |
int check_filetype | ( | char * | file) |
int chop | ( | char * | string) |
Definition at line 86 of file tools.c.
Referenced by dump_html(), get_package_name(), and new_item().
int delete_str | ( | int | pos, |
char ** | strarr | ||
) |
Definition at line 190 of file tools.c.
References ERR_REGISTER_ENTRIES_GISMAN, NULL, tools::pos, and print_error().
Referenced by delete_ext_html(), and deregister_entries_gisman().
void dump_ascii | ( | char * | file, |
char * | heading | ||
) |
Definition at line 539 of file tools.c.
References MAXSTR, nc_fgets_html(), and NULL.
Referenced by list_extensions(), query_extension(), show_details(), and show_license().
void dump_html | ( | char * | file, |
char * | tmpfile | ||
) |
Definition at line 597 of file tools.c.
References chop(), ERR_DUMP_PLAIN_TXT, errno, exit_db(), is_text(), MAXSTR, nc_fgets(), NULL, and print_error().
Referenced by bin_install(), and source_install().
void dump_plain | ( | char * | file, |
char * | tmpfile | ||
) |
Definition at line 563 of file tools.c.
References ERR_DUMP_PLAIN_TXT, errno, exit_db(), MAXSTR, nc_fgets(), NULL, and print_error().
Referenced by test_install().
int find_pos | ( | char * | str, |
char ** | strarr, | ||
int | start | ||
) |
Definition at line 230 of file tools.c.
References ERR_REGISTER_ENTRIES_GISMAN, and NULL.
Referenced by check_ext_menu(), delete_ext_html(), deregister_entries_gisman(), new_ext_html(), and new_submenu().
void get_package_name | ( | char * | path, |
char * | name | ||
) |
Definition at line 273 of file tools.c.
References chop(), ERR_INVALID_EXT, file, MAXSTR, nc_fgets_nb(), NULL, and print_error().
Referenced by check_extension(), and main().
int insert_str | ( | char * | str, |
int | pos, | ||
char ** | strarr | ||
) |
Definition at line 125 of file tools.c.
References ERR_REGISTER_ENTRIES_GISMAN, MAXSTR, NULL, tools::pos, and print_error().
Referenced by check_ext_menu(), new_ext_html(), new_item(), and new_submenu().
void list_binaries | ( | char * | package) |
void mkdir_s | ( | char * | pathname, |
char * | mode | ||
) |
Definition at line 73 of file tools.c.
Referenced by unpack_extension().
char* nc_fgets | ( | char * | s, |
int | size, | ||
FILE * | stream | ||
) |
Definition at line 307 of file tools.c.
References MAXSTR, nc_fgets(), and NULL.
Referenced by dump_html(), dump_plain(), and nc_fgets().
char* nc_fgets_html | ( | char * | s, |
int | size, | ||
FILE * | stream | ||
) |
Definition at line 339 of file tools.c.
References MAXSTR, nc_fgets_html(), NULL, tools::pos, and dialogs::s.
Referenced by dump_ascii(), and nc_fgets_html().
char* nc_fgets_nb | ( | char * | s, |
int | size, | ||
FILE * | stream | ||
) |
Definition at line 500 of file tools.c.
References is_text(), MAXSTR, nc_fgets_nb(), and NULL.
Referenced by check_dependencies(), check_extension(), depstr(), deregister_extension(), get_configure_options(), get_package_name(), nc_fgets_nb(), register_entries_gisman(), register_extension(), and restore_entries_gisman().
void su | ( | char * | gisbase, |
char * | cmd | ||
) |
Definition at line 796 of file tools.c.
References ERR_INSTALL_EXT, ERR_MISSING_CMD, errno, MAXSTR, and print_error().
Referenced by bin_install(), restore(), source_install(), and uninstall().
int vercmp | ( | int | major, |
int | minor, | ||
int | revision, | ||
int | major2, | ||
int | minor2, | ||
int | revision2 | ||
) |
Definition at line 832 of file tools.c.
Referenced by check_dependencies(), and register_extension().
void wget_extension | ( | char * | url) |
Definition at line 766 of file tools.c.
References ERR_DOWNLOAD, MAXSTR, print_done(), print_error(), and VERBOSE.
Referenced by main().