mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
psycString init fix
This commit is contained in:
parent
ab30ef650c
commit
a370f3f486
1 changed files with 10 additions and 10 deletions
|
@ -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};
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue