mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
psycString init
This commit is contained in:
parent
fe79060f1c
commit
ab30ef650c
4 changed files with 18 additions and 14 deletions
|
@ -33,7 +33,7 @@ int main (int argc, char **argv)
|
|||
else
|
||||
psyc_initParseState(&state);
|
||||
|
||||
psyc_setParseBuffer(&state, psyc_newString(buffer, idx));
|
||||
psyc_setParseBuffer2(&state, buffer, idx);
|
||||
|
||||
// try parsing that now
|
||||
do
|
||||
|
|
|
@ -234,7 +234,7 @@ int main (int argc, char **argv)
|
|||
{
|
||||
// we got some data from a client
|
||||
parsebuf = recvbuf - contbytes;
|
||||
psyc_setParseBuffer(&parsers[i], psyc_newString(parsebuf, contbytes + nbytes));
|
||||
psyc_setParseBuffer2(&parsers[i], parsebuf, contbytes + nbytes);
|
||||
contbytes = 0;
|
||||
oper = 0;
|
||||
name.length = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue