mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
compiles again
This commit is contained in:
parent
d278cbb0b7
commit
35342caced
7 changed files with 66 additions and 50 deletions
|
@ -7,7 +7,7 @@
|
|||
int main(int argc, char** argv)
|
||||
{
|
||||
int index, ret;
|
||||
uint8_t buffer[2048], modifier;
|
||||
char buffer[2048], modifier;
|
||||
PSYC_Array name, value, elem;
|
||||
PSYC_ParseState state;
|
||||
PSYC_ParseListState listState;
|
||||
|
|
|
@ -19,13 +19,13 @@ int writePresence(const char *avail, int availlen, const char *desc, int desclen
|
|||
}
|
||||
// if (PSYC_initBuffer(pb, WHATEVER)) die("PSYC_initBuffer hates me");
|
||||
|
||||
(void) PSYC_renderHeader(pb, "_context", 0,
|
||||
myUNI, sizeof(myUNI), PSYC_FLAG_ROUTING, 0);
|
||||
(void) PSYC_renderVar(pb, "_context", 0,
|
||||
myUNI, sizeof(myUNI), PSYC_RENDER_ROUTING, 0);
|
||||
|
||||
// the first call to PSYC_renderHeader() without PSYC_FLAG_ROUTING adds the
|
||||
// extra newline to the buffer. later vars with PSYC_FLAG_ROUTING cause an error.
|
||||
(void) PSYC_renderHeader(pb, "_degree_availability", 0, avail, availlen, 0, C_GLYPH_MODIFIER_ASSIGN);
|
||||
(void) PSYC_renderHeader(pb, "_description_presence", 0, desc, desclen, 0, C_GLYPH_MODIFIER_ASSIGN);
|
||||
// the first call to PSYC_renderHeader() without PSYC_RENDER_ROUTING adds the
|
||||
// extra newline to the buffer. later vars with PSYC_RENDER_ROUTING cause an error.
|
||||
(void) PSYC_renderVar(pb, "_degree_availability", 0, avail, availlen, 0, C_GLYPH_MODIFIER_ASSIGN);
|
||||
(void) PSYC_renderVar(pb, "_description_presence", 0, desc, desclen, 0, C_GLYPH_MODIFIER_ASSIGN);
|
||||
// presence is to be assigned permanently in distributed state
|
||||
|
||||
(void) PSYC_renderBody(pb, "_notice_presence", 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue