aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/grecs.h2
-rw-r--r--include/grecs/doc.h2
-rw-r--r--include/grecs/error.h2
-rw-r--r--include/grecs/format.h2
-rw-r--r--include/grecs/json.h2
-rw-r--r--include/grecs/lex.h8
-rw-r--r--include/grecs/list.h2
-rw-r--r--include/grecs/locus.h2
-rw-r--r--include/grecs/mem.h2
-rw-r--r--include/grecs/node.h2
-rw-r--r--include/grecs/opt.h2
-rw-r--r--include/grecs/parser.h2
-rw-r--r--include/grecs/preproc.h9
-rw-r--r--include/grecs/sockaddr.h2
-rw-r--r--include/grecs/symtab.h2
-rw-r--r--include/grecs/table.h2
-rw-r--r--include/grecs/tree.h2
-rw-r--r--include/grecs/txtacc.h3
-rw-r--r--include/grecs/util.h2
-rw-r--r--include/grecs/value.h2
-rw-r--r--include/grecs/version.h2
21 files changed, 26 insertions, 30 deletions
diff --git a/include/grecs.h b/include/grecs.h
index eac11d4..051efa6 100644
--- a/include/grecs.h
+++ b/include/grecs.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/doc.h b/include/grecs/doc.h
index b2514fb..e394675 100644
--- a/include/grecs/doc.h
+++ b/include/grecs/doc.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/error.h b/include/grecs/error.h
index 8630b8a..9534974 100644
--- a/include/grecs/error.h
+++ b/include/grecs/error.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/format.h b/include/grecs/format.h
index 7ac8458..4301982 100644
--- a/include/grecs/format.h
+++ b/include/grecs/format.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/json.h b/include/grecs/json.h
index 49a6b87..2714ca4 100644
--- a/include/grecs/json.h
+++ b/include/grecs/json.h
@@ -1,5 +1,5 @@
/* This file is part of Grecs.
- Copyright (C) 2012-2016 Sergey Poznyakoff.
+ Copyright (C) 2012-2022 Sergey Poznyakoff.
Grecs is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/include/grecs/lex.h b/include/grecs/lex.h
index ecd9a5b..a037159 100644
--- a/include/grecs/lex.h
+++ b/include/grecs/lex.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -25,11 +25,9 @@ void grecs_destroy_text(void);
struct grecs_symtab *grecs_text_table(void);
void grecs_parse_line_directive(char *text, grecs_locus_t *ploc,
- struct grecs_locus_point *ppoint,
- size_t *pxlines);
+ struct grecs_locus_point *ppoint);
void grecs_parse_line_directive_cpp(char *text, grecs_locus_t *ploc,
- struct grecs_locus_point *ppoint,
- size_t *pxlines);
+ struct grecs_locus_point *ppoint);
void grecs_line_acc_create(void);
void grecs_line_acc_free(void);
diff --git a/include/grecs/list.h b/include/grecs/list.h
index f950176..c40608c 100644
--- a/include/grecs/list.h
+++ b/include/grecs/list.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/locus.h b/include/grecs/locus.h
index 4ca6d21..1fd08e4 100644
--- a/include/grecs/locus.h
+++ b/include/grecs/locus.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/mem.h b/include/grecs/mem.h
index de46b32..6d8c879 100644
--- a/include/grecs/mem.h
+++ b/include/grecs/mem.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/node.h b/include/grecs/node.h
index 752b002..c25be26 100644
--- a/include/grecs/node.h
+++ b/include/grecs/node.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/opt.h b/include/grecs/opt.h
index 5153033..45fa0b1 100644
--- a/include/grecs/opt.h
+++ b/include/grecs/opt.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/parser.h b/include/grecs/parser.h
index 41b3ae4..23b6f0e 100644
--- a/include/grecs/parser.h
+++ b/include/grecs/parser.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/preproc.h b/include/grecs/preproc.h
index 798e879..3b696fe 100644
--- a/include/grecs/preproc.h
+++ b/include/grecs/preproc.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -21,11 +21,8 @@
extern const char *grecs_preprocessor;
-size_t grecs_preproc_fill_buffer(char *buf, size_t size);
void grecs_preproc_add_include_dir(char *dir);
-int grecs_preproc_init(const char *name);
-void grecs_preproc_done(void);
-int grecs_preproc_run(const char *config_file, const char *extpp);
+int grecs_preprocess(char const *name, int trace);
#define GRECS_STD_INCLUDE 0x01
#define GRECS_USR_INCLUDE 0x02
@@ -37,7 +34,7 @@ int grecs_foreach_include_dir(int flag, int (*fun)(int, const char *, void *),
char *grecs_find_include_file(const char *name, int allow_cwd);
FILE *grecs_preproc_extrn_start(const char *file, pid_t *ppid);
-void grecs_preproc_extrn_shutdown(pid_t pid);
+int grecs_preproc_extrn_shutdown(pid_t pid);
void grecs_include_path_clear(void);
void grecs_include_path_setup(const char *dir, ...);
diff --git a/include/grecs/sockaddr.h b/include/grecs/sockaddr.h
index b999364..8c18b43 100644
--- a/include/grecs/sockaddr.h
+++ b/include/grecs/sockaddr.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2017 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/symtab.h b/include/grecs/symtab.h
index e079ea5..886554f 100644
--- a/include/grecs/symtab.h
+++ b/include/grecs/symtab.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/table.h b/include/grecs/table.h
index d7d0a8c..c308229 100644
--- a/include/grecs/table.h
+++ b/include/grecs/table.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/tree.h b/include/grecs/tree.h
index f13a74b..90fd382 100644
--- a/include/grecs/tree.h
+++ b/include/grecs/tree.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/txtacc.h b/include/grecs/txtacc.h
index d6dc1c4..9c18328 100644
--- a/include/grecs/txtacc.h
+++ b/include/grecs/txtacc.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -32,5 +32,6 @@ void grecs_txtacc_grow_string_escape(grecs_txtacc_t, const char *);
} while (0)
char *grecs_txtacc_finish(grecs_txtacc_t, int);
void grecs_txtacc_free_string(grecs_txtacc_t, char *);
+void grecs_txtacc_clear(struct grecs_txtacc *acc);
#endif
diff --git a/include/grecs/util.h b/include/grecs/util.h
index cf3bee1..4443c8e 100644
--- a/include/grecs/util.h
+++ b/include/grecs/util.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/value.h b/include/grecs/value.h
index 480db9d..6ecdc17 100644
--- a/include/grecs/value.h
+++ b/include/grecs/value.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
diff --git a/include/grecs/version.h b/include/grecs/version.h
index f37adc6..6daeb1f 100644
--- a/include/grecs/version.h
+++ b/include/grecs/version.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2022 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the

Return to:

Send suggestions and report system problems to the System administrator.