In quickmark(), don't write to the return value of getenv().
[vimprobable2.git] / utilities.h
blob5607e4cf1646be6ec60cedecba6402b64a4a9a85
1 /*
2 (c) 2009 by Leon Winter
3 (c) 2009-2011 by Hannes Schueller
4 (c) 2009-2010 by Matto Fransen
5 (c) 2010-2011 by Hans-Peter Deifel
6 (c) 2010-2011 by Thomas Adam
7 see LICENSE file
8 */
10 /* config file */
11 #define RCFILE "%s/.config/vimprobable/vimprobablerc", getenv("HOME")
13 /* max entries in command history */
14 #define COMMANDHISTSIZE 50
16 gboolean read_rcfile(const char *config);
17 void save_command_history(char *line);
18 gboolean process_save_qmark(const char *bm, WebKitWebView *webview);
19 void make_keyslist(void);
20 gboolean parse_colour(char *color);
21 gboolean mappings(const Arg *arg);
22 gboolean process_mapping(char *keystring, int maprecord, char *cmd);
23 gboolean process_map_line(char *line);
24 gboolean changemapping(Key *search_key, int maprecord, char *cmd);
25 gboolean process_line_arg(const Arg *arg);
26 gboolean build_taglist(const Arg *arg, FILE *f);
27 void set_error(const char *error);
28 void give_feedback(const char *feedback);
29 Listelement * complete_list(const char *searchfor, const int mode, Listelement *elementlist);
30 Listelement * add_list(const char *element, Listelement *elementlist);
31 int count_list(Listelement *elementlist);
32 void free_list(Listelement *elementlist);
34 enum ConfigFileError read_searchengines(const char *filename);
35 char *find_uri_for_searchengine(const char *handle);
36 void make_searchengines_list(Searchengine *searchengines, int length);