summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org>2016-06-18 09:12:07 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2016-06-18 09:12:07 (GMT)
commit59f9073082a0033a9a54ea27b2409bd087d63709 (patch) (side-by-side diff)
tree6bff9d64adeff0cded727756e081defc35cc9915 /src
parent45c143f157d7225fac7df014d80fc73085e1a126 (diff)
downloadgrecs-59f9073082a0033a9a54ea27b2409bd087d63709.tar.gz
grecs-59f9073082a0033a9a54ea27b2409bd087d63709.tar.bz2
Fix prototypes.
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/grecs.hin5
-rw-r--r--src/lineacc.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/src/grecs.hin b/src/grecs.hin
index 812834f..486058e 100644
--- a/src/grecs.hin
+++ b/src/grecs.hin
@@ -283,15 +283,16 @@ grecs_parser_t grecs_get_parser_by_type(const char *type);
struct grecs_list *_grecs_simple_list_create(int dispose);
struct grecs_list *grecs_value_list_create(void);
void grecs_line_acc_create(void);
void grecs_line_acc_free(void);
void grecs_line_acc_grow_char(int c);
-void grecs_line_acc_grow_char_unescape(int c);
+int grecs_line_acc_grow_char_unescape(int c);
void grecs_line_acc_grow(const char *text, size_t len);
-void grecs_line_acc_grow_unescape_last(char *text, size_t len);
+void grecs_line_acc_grow_unescape_last(char *text, size_t len,
+ grecs_locus_t const *loc);
void grecs_line_begin(void);
#define grecs_line_add grecs_line_acc_grow
char *grecs_line_finish(void);
extern int grecs_string_convert(void *target, enum grecs_data_type type,
diff --git a/src/lineacc.c b/src/lineacc.c
index c1957a6..3d5b4d6 100644
--- a/src/lineacc.c
+++ b/src/lineacc.c
@@ -58,13 +58,14 @@ grecs_line_acc_grow(const char *text, size_t len)
{
grecs_txtacc_grow(line_acc, text, len);
}
/* Same, but unescapes the last character from text */
void
-grecs_line_acc_grow_unescape_last(char *text, size_t len, grecs_locus_t *loc)
+grecs_line_acc_grow_unescape_last(char *text, size_t len,
+ grecs_locus_t const *loc)
{
grecs_txtacc_grow(line_acc, text, len - 2);
if (grecs_line_acc_grow_char_unescape(text[len - 1]) && loc)
grecs_warning(loc, 0,
_("unknown escape sequence: '\\%c'"),
text[len - 1]);

Return to:

Send suggestions and report system problems to the System administrator.