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) (unidiff)
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
@@ -286,9 +286,10 @@ struct grecs_list *grecs_value_list_create(void);
286void grecs_line_acc_create(void); 286void grecs_line_acc_create(void);
287void grecs_line_acc_free(void); 287void grecs_line_acc_free(void);
288void grecs_line_acc_grow_char(int c); 288void grecs_line_acc_grow_char(int c);
289void grecs_line_acc_grow_char_unescape(int c); 289int grecs_line_acc_grow_char_unescape(int c);
290void grecs_line_acc_grow(const char *text, size_t len); 290void grecs_line_acc_grow(const char *text, size_t len);
291void grecs_line_acc_grow_unescape_last(char *text, size_t len); 291void grecs_line_acc_grow_unescape_last(char *text, size_t len,
292 grecs_locus_t const *loc);
292 293
293void grecs_line_begin(void); 294void grecs_line_begin(void);
294#define grecs_line_add grecs_line_acc_grow 295#define grecs_line_add grecs_line_acc_grow
diff --git a/src/lineacc.c b/src/lineacc.c
index c1957a6..3d5b4d6 100644
--- a/src/lineacc.c
+++ b/src/lineacc.c
@@ -61,7 +61,8 @@ grecs_line_acc_grow(const char *text, size_t len)
61 61
62/* Same, but unescapes the last character from text */ 62/* Same, but unescapes the last character from text */
63void 63void
64grecs_line_acc_grow_unescape_last(char *text, size_t len, grecs_locus_t *loc) 64grecs_line_acc_grow_unescape_last(char *text, size_t len,
65 grecs_locus_t const *loc)
65{ 66{
66 grecs_txtacc_grow(line_acc, text, len - 2); 67 grecs_txtacc_grow(line_acc, text, len - 2);
67 if (grecs_line_acc_grow_char_unescape(text[len - 1]) && loc) 68 if (grecs_line_acc_grow_char_unescape(text[len - 1]) && loc)

Return to:

Send suggestions and report system problems to the System administrator.