aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-18 14:49:43 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-05-18 14:49:43 +0300
commit9388982950195420a96db58f04a5e6d0f292559e (patch)
treeea221e93570a6b5cf0c8c4ef7580b6069a552dec /src
parentc8865a0d524f3d545836bd4581329089a357661e (diff)
downloadgrecs-9388982950195420a96db58f04a5e6d0f292559e.tar.gz
grecs-9388982950195420a96db58f04a5e6d0f292559e.tar.bz2
Minor change.
* src/grecs.h (grecs_include_path_clear): New proto. * src/preproc.c (grecs_include_path_clear): New function.
Diffstat (limited to 'src')
-rw-r--r--src/grecs.h1
-rw-r--r--src/preproc.c9
2 files changed, 10 insertions, 0 deletions
diff --git a/src/grecs.h b/src/grecs.h
index 5eef48d..3662204 100644
--- a/src/grecs.h
+++ b/src/grecs.h
@@ -272,6 +272,7 @@ char *grecs_install_text(const char *str);
272void grecs_destroy_text(void); 272void grecs_destroy_text(void);
273struct grecs_symtab *grecs_text_table(void); 273struct grecs_symtab *grecs_text_table(void);
274 274
275void grecs_include_path_clear(void);
275void grecs_include_path_setup(const char *dir, ...); 276void grecs_include_path_setup(const char *dir, ...);
276void grecs_include_path_setup_v(char **dirs); 277void grecs_include_path_setup_v(char **dirs);
277 278
diff --git a/src/preproc.c b/src/preproc.c
index 4ab3066..1eeddd0 100644
--- a/src/preproc.c
+++ b/src/preproc.c
@@ -272,6 +272,15 @@ incl_free(void *data)
272} 272}
273 273
274void 274void
275grecs_include_path_clear()
276{
277 if (include_path)
278 grecs_list_clear(include_path);
279 if (std_include_path)
280 grecs_list_clear(std_include_path);
281}
282
283void
275grecs_include_path_setup_v(char **dirs) 284grecs_include_path_setup_v(char **dirs)
276{ 285{
277 if (!include_path) { 286 if (!include_path) {

Return to:

Send suggestions and report system problems to the System administrator.