1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00
This commit is contained in:
Gabor Adam Toth 2011-04-30 15:46:17 +02:00
parent b24592cf02
commit b4c6008ffd
3 changed files with 10 additions and 3 deletions

View file

@ -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 psyc_parse(psycParseState* state, char* oper, psycString* name, psycString* value)
{ {
psycParseRC ret; // a return 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 // Start position of the current line in the buffer
// in case we return insufficent, we rewind to this position. // 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 // fall thru
case PSYC_PART_ROUTING: case PSYC_PART_ROUTING:
pos = state->cursor;
if (state->routingLength > 0) if (state->routingLength > 0)
{ {
if (state->buffer.ptr[state->cursor] != '\n') if (state->buffer.ptr[state->cursor] != '\n')

View file

@ -1,2 +1,9 @@
/* psyc_text() */ /* psyc_text() */
int psyc_text(char *template, size_t tlen,
char **buffer, size_t *blen,
psyctextCB lookupValue,
char *braceOpen, char *braceClose)
{
}

View file

@ -15,8 +15,9 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netdb.h> #include <netdb.h>
#include <math.h> #include <math.h>
#include <assert.h>
#include <psyc/lib.h> #include <psyc.h>
#include <psyc/parser.h> #include <psyc/parser.h>
#include <psyc/render.h> #include <psyc/render.h>
#include <psyc/syntax.h> #include <psyc/syntax.h>