GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include "globals.h"
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_html (char *s, int size, FILE *stream) |
int | is_text (char *s) |
char * | nc_fgets_nb (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 *myfile) |
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.
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 * | myfile | ) |
int chop | ( | char * | string | ) |
Definition at line 86 of file tools.c.
Referenced by dump_html(), get_package_name(), and new_item().
Definition at line 190 of file tools.c.
References ERR_REGISTER_ENTRIES_GISMAN, free(), malloc(), 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 fclose(), 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(), fclose(), fd, is_text(), MAXSTR, nc_fgets(), NULL, print_error(), and sprintf().
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(), fclose(), MAXSTR, nc_fgets(), NULL, and print_error().
Referenced by test_install().
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, fclose(), file, MAXSTR, nc_fgets_nb(), NULL, print_error(), and sprintf().
Referenced by check_extension(), and main().
Definition at line 125 of file tools.c.
References ERR_REGISTER_ENTRIES_GISMAN, free(), malloc(), MAXSTR, n, NULL, tools::pos, and print_error().
Referenced by check_ext_menu(), new_ext_html(), new_item(), and new_submenu().
int is_text | ( | char * | s | ) |
Definition at line 474 of file tools.c.
Referenced by dump_html(), and nc_fgets_nb().
void list_binaries | ( | char * | package | ) |
void mkdir_s | ( | char * | pathname, |
char * | mode | ||
) |
char* nc_fgets | ( | char * | s, |
int | size, | ||
FILE * | stream | ||
) |
Definition at line 307 of file tools.c.
References free(), malloc(), MAXSTR, nc_fgets(), NULL, and sprintf().
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 free(), malloc(), MAXSTR, nc_fgets_html(), NULL, tools::pos, dialogs::s, and sprintf().
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 free(), is_text(), malloc(), MAXSTR, nc_fgets_nb(), NULL, and sprintf().
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, fclose(), MAXSTR, print_error(), and sprintf().
Referenced by bin_install(), restore(), source_install(), and uninstall().
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(), sprintf(), and VERBOSE.
Referenced by main().