1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

avoid shadowing a global declaration from unistd.h

This commit is contained in:
psyc://loupsycedyglgamf.onion/~lynX 2016-01-29 23:33:27 +00:00
parent f5e2ea036d
commit be9ceb909d

View file

@ -101,14 +101,10 @@ psyc_text_state_init (PsycTextState *state,
{ {
state->cursor = 0; state->cursor = 0;
state->written = 0; state->written = 0;
state->tmpl = (PsycString) { state->tmpl = (PsycString) { tmplen, tmpl };
tmplen, tmpl}; state->buffer = (PsycString) { buflen, buffer };
state->buffer = (PsycString) { state->open = (PsycString) { 1, "[" };
buflen, buffer}; state->close = (PsycString) { 1, "]" };
state->open = (PsycString) {
1, "["};
state->close = (PsycString) {
1, "]"};
} }
/** /**
@ -119,28 +115,24 @@ psyc_text_state_init (PsycTextState *state,
* @param tmplen Length of input buffer. * @param tmplen Length of input buffer.
* @param buffer Output buffer where the rendered text is going to be written. * @param buffer Output buffer where the rendered text is going to be written.
* @param buflen Length of output buffer. * @param buflen Length of output buffer.
* @param open Opening brace. * @param ope Opening brace.
* @param openlen Length of opening brace. * @param opelen Length of opening brace.
* @param close Closing brace. * @param clo Closing brace.
* @param closelen Length of closing brace. * @param clolen Length of closing brace.
*/ */
static inline void static inline void
psyc_text_state_init_custom (PsycTextState *state, psyc_text_state_init_custom (PsycTextState *state,
char *tmpl, size_t tmplen, char *tmpl, size_t tmplen,
char *buffer, size_t buflen, char *buffer, size_t buflen,
char *open, size_t openlen, char *ope, size_t opelen,
char *close, size_t closelen) char *clo, size_t cloelen)
{ {
state->cursor = 0; state->cursor = 0;
state->written = 0; state->written = 0;
state->tmpl = (PsycString) { state->tmpl = (PsycString) { tmplen, tmpl };
tmplen, tmpl}; state->buffer = (PsycString) { buflen, buffer };
state->buffer = (PsycString) { state->open = (PsycString) { opelen, ope };
buflen, buffer}; state->close = (PsycString) { clolen, clo };
state->open = (PsycString) {
openlen, open};
state->close = (PsycString) {
closelen, close};
} }
/** /**