From b4c6008ffd8339c0c0d0025034adb8f2529b439d Mon Sep 17 00:00:00 2001 From: Gabor Adam Toth Date: Sat, 30 Apr 2011 15:46:17 +0200 Subject: [PATCH] + --- src/parser.c | 3 +-- src/text.c | 7 +++++++ test/testServer.c | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/parser.c b/src/parser.c index 501c300..7701644 100644 --- a/src/parser.c +++ b/src/parser.c @@ -222,7 +222,7 @@ inline psycParseRC psyc_parseModifier(psycParseState* state, char* oper, psycStr psycParseRC psyc_parse(psycParseState* state, char* oper, psycString* name, psycString* value) { psycParseRC ret; // a return value - size_t pos; // a cursor position + size_t pos = state->cursor; // a cursor position // Start position of the current line in the buffer // in case we return insufficent, we rewind to this position. @@ -245,7 +245,6 @@ psycParseRC psyc_parse(psycParseState* state, char* oper, psycString* name, psyc // fall thru case PSYC_PART_ROUTING: - pos = state->cursor; if (state->routingLength > 0) { if (state->buffer.ptr[state->cursor] != '\n') diff --git a/src/text.c b/src/text.c index 95dcc88..6bc8c1d 100644 --- a/src/text.c +++ b/src/text.c @@ -1,2 +1,9 @@ /* psyc_text() */ +int psyc_text(char *template, size_t tlen, + char **buffer, size_t *blen, + psyctextCB lookupValue, + char *braceOpen, char *braceClose) +{ + +} diff --git a/test/testServer.c b/test/testServer.c index 64a6f00..4cb9088 100644 --- a/test/testServer.c +++ b/test/testServer.c @@ -15,8 +15,9 @@ #include #include #include +#include -#include +#include #include #include #include