From f2ccc82183c201fa7b2f427a5e81eccba656774b Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: ćšć, 06 8æ 2015 17:58:19 +0800 Subject: [PATCH] Update .gitignore with *.bak pattern --- libscpi/src/lexer.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libscpi/src/lexer.c b/libscpi/src/lexer.c index c0505cc..45b19ce 100644 --- a/libscpi/src/lexer.c +++ b/libscpi/src/lexer.c @@ -245,7 +245,7 @@ * @param chr * @return */ -static int skipChr(lex_state_t * state, int chr) { +static int skipChr(lex_state_t * state, char chr) { if (!iseos(state) && ischr(state, chr)) { state->pos++; return SKIP_OK; @@ -594,8 +594,8 @@ * @return */ int scpiLex_NondecimalNumericData(lex_state_t * state, scpi_token_t * token) { - token->ptr = state->pos; int someNumbers = 0; + token->ptr = state->pos; if (skipChr(state, '#')) { if (!iseos(state)) { if (isH(state->pos[0])) { @@ -630,7 +630,7 @@ return (c >= 0) && (c <= 0x7f); } -static int skipQuoteProgramData(lex_state_t * state, int quote) { +static void skipQuoteProgramData(lex_state_t * state, char quote) { while (!iseos(state)) { if (isascii7bit(state->pos[0]) && !ischr(state, quote)) { state->pos++; @@ -646,11 +646,11 @@ } } -static int skipDoubleQuoteProgramData(lex_state_t * state) { +static void skipDoubleQuoteProgramData(lex_state_t * state) { skipQuoteProgramData(state, '"'); } -static int skipSingleQuoteProgramData(lex_state_t * state) { +static void skipSingleQuoteProgramData(lex_state_t * state) { skipQuoteProgramData(state, '\''); } @@ -716,8 +716,8 @@ int i; int arbitraryBlockLength = 0; const char * ptr = state->pos; - token->ptr = state->pos; int validData = -1; + token->ptr = state->pos; if (skipChr(state, '#')) { if (!iseos(state) && isNonzeroDigit(state->pos[0])) { -- Gitblit v1.9.1