From d2e686fcfaa5bb45f812922da95ffc2a378c0bab Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sun, 7 Sep 2014 08:03:16 +0200 Subject: [PATCH] s/TA_deltas_parse/TA_deltas_parse_buffer/. --- lib/tadeltas.c | 10 +++++----- lib/tadeltas.h | 20 ++++++++++---------- lib/ttfautohint.c | 4 +++- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/lib/tadeltas.c b/lib/tadeltas.c index c7d1c35..e230fad 100644 --- a/lib/tadeltas.c +++ b/lib/tadeltas.c @@ -826,11 +826,11 @@ get_line(char** pos) TA_Error -TA_deltas_parse(FONT* font, - Deltas** deltas, - unsigned int* errlinenum_p, - char** errline_p, - char** errpos_p) +TA_deltas_parse_buffer(FONT* font, + Deltas** deltas, + unsigned int* errlinenum_p, + char** errline_p, + char** errpos_p) { FT_Error error; diff --git a/lib/tadeltas.h b/lib/tadeltas.h index 1105ba9..b0a8e41 100644 --- a/lib/tadeltas.h +++ b/lib/tadeltas.h @@ -51,7 +51,7 @@ extern "C" { /* * A structure to hold delta exceptions for a glyph. A linked list of it - * gets allocated by a successful call to `TA_deltas_parse'. Use + * gets allocated by a successful call to `TA_deltas_parse_buffer'. Use * `TA_deltas_free' to deallocate the list. * * `x_shift' and `y_shift' are always in the range [-8;8]. @@ -183,10 +183,10 @@ TA_deltas_scanner_done(Deltas_Context* context); * The returned error codes are in the range 0x200-0x2FF; see * `ttfautohint-errors.h' for all possible values. * - * If the user provides a non-NULL `deltas' value, `TA_deltas_parse' stores - * the parsed result in `*deltas'. If there is no data (for example, an - * empty string or whitespace only) nothing gets allocated, and `*deltas' is - * set to NULL. + * If the user provides a non-NULL `deltas' value, `TA_deltas_parse_buffer' + * stores the parsed result in `*deltas'. If there is no data (for example, + * an empty string or whitespace only) nothing gets allocated, and `*deltas' + * is set to NULL. * * In case of error, `errlinenum_p' gives the line number in the delta * exceptions file where the error occurred, `errline_p' the corresponding @@ -197,11 +197,11 @@ TA_deltas_scanner_done(Deltas_Context* context); */ TA_Error -TA_deltas_parse(FONT* font, - Deltas** deltas, - unsigned int* errlinenum_p, - char** errline_p, - char** errpos_p); +TA_deltas_parse_buffer(FONT* font, + Deltas** deltas, + unsigned int* errlinenum_p, + char** errline_p, + char** errpos_p); /* diff --git a/lib/ttfautohint.c b/lib/ttfautohint.c index a860410..00c8a66 100644 --- a/lib/ttfautohint.c +++ b/lib/ttfautohint.c @@ -475,7 +475,9 @@ No_check: } /* process delta exceptions data */ - error = TA_deltas_parse(font, &deltas, &errlinenum, &errline, &errpos); + error = TA_deltas_parse_buffer(font, + &deltas, + &errlinenum, &errline, &errpos); if (error) { free_errline = 1; -- 2.11.4.GIT