psycString init fix

This commit is contained in:
Gabor Adam Toth 2011-05-06 15:33:52 +02:00
parent a2815d6971
commit 7a5d751477
1 changed files with 10 additions and 10 deletions

View File

@ -78,12 +78,12 @@ void psyc_initTextState (psycTextState *state,
char *template, size_t tlen,
char *buffer, size_t blen)
{
state->cursor = 0;
state->written = 0;
state->template = {tlen, template};
state->buffer = {blen, buffer};
state->open = {1, "["};
state->close = {1, "]"};
state->cursor = 0;
state->written = 0;
state->template = (psycString) {tlen, template};
state->buffer = (psycString) {blen, buffer};
state->open = (psycString) {1, "["};
state->close = (psycString) {1, "]"};
}
/**
@ -106,10 +106,10 @@ void psyc_initTextState2 (psycTextState *state,
char *open, size_t openlen,
char *close, size_t closelen)
{
state->template = {tlen, template};
state->buffer = {blen, buffer};
state->open = {openlen, open};
state->close = {closelen, close};
state->template = (psycString) {tlen, template};
state->buffer = (psycString) {blen, buffer};
state->open = (psycString) {openlen, open};
state->close = (psycString) {closelen, close};
}
/**