mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
death the parser
This commit is contained in:
parent
90579e33da
commit
ee44312e5c
12 changed files with 41 additions and 25 deletions
|
@ -1,8 +1,10 @@
|
|||
# Why do we have a Makefile in the include directory?
|
||||
|
||||
prefix = /usr
|
||||
includedir = ${prefix}/include
|
||||
|
||||
INSTALL = install
|
||||
HEADERS = packet.h parser.h render.h syntax.h text.h
|
||||
HEADERS = packet.h parse.h render.h syntax.h text.h
|
||||
|
||||
install: ${HEADERS}
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef PSYC_PACKET_H
|
||||
# define PSYC_PACKET_H
|
||||
|
||||
#include <psyc.h>
|
||||
#include <psyc/syntax.h>
|
||||
|
@ -143,4 +142,5 @@ psycPacket psyc_newRawPacket2 (psycModifier *routing, size_t routinglen,
|
|||
const char *content, size_t contentlen,
|
||||
psycPacketFlag flag);
|
||||
|
||||
#endif // PSYC_PACKET_H
|
||||
#define PSYC_PACKET_H
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#ifndef PSYC_PARSE_H
|
||||
|
||||
/**
|
||||
* @file psyc/parser.h
|
||||
* @file psyc/parse.h
|
||||
* @brief Interface for various PSYC parser functions.
|
||||
*
|
||||
* All parsing functions and the definitions they use are
|
||||
|
@ -108,9 +110,6 @@
|
|||
|
||||
/** @{ */ // begin of parser group
|
||||
|
||||
#ifndef PSYC_PARSER_H
|
||||
# define PSYC_PARSER_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <psyc.h>
|
||||
|
@ -411,6 +410,7 @@ psycParseRC psyc_parse (psycParseState *state, char *oper,
|
|||
psycParseListRC psyc_parseList (psycParseListState *state, psycString *name,
|
||||
psycString *value, psycString *elem);
|
||||
|
||||
#endif // PSYC_PARSER_H
|
||||
|
||||
/** @} */ // end of parser group
|
||||
|
||||
#define PSYC_PARSE_H
|
||||
#endif
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef PSYC_RENDER_H
|
||||
# define PSYC_RENDER_H
|
||||
|
||||
#include <psyc/packet.h>
|
||||
|
||||
|
@ -39,6 +38,7 @@ psycRenderRC psyc_render (psycPacket *packet, char *buffer, size_t buflen);
|
|||
*/
|
||||
psycRenderRC psyc_renderList (psycList *list, char *buffer, size_t buflen);
|
||||
|
||||
#endif // PSYC_RENDER_H
|
||||
|
||||
/** @} */ // end of render group
|
||||
|
||||
#define PSYC_RENDER_H
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef PSYC_SYNTAX_H
|
||||
#define PSYC_SYNTAX_H
|
||||
|
||||
#ifndef PSYC_LIST_SIZE_LIMIT
|
||||
# define PSYC_LIST_SIZE_LIMIT 404
|
||||
|
@ -42,4 +41,5 @@
|
|||
#define PSYC_ROUTING_MERGE 2
|
||||
#define PSYC_ROUTING_RENDER 4
|
||||
|
||||
#endif /* PSYC_SYNTAX_H */
|
||||
#define PSYC_SYNTAX_H
|
||||
#endif
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#ifndef PSYC_TEXT_H
|
||||
|
||||
/**
|
||||
* @file psyc/text.h
|
||||
* @brief Interface for text template rendering.
|
||||
|
@ -157,3 +159,6 @@ size_t psyc_getTextBytesWritten (psycTextState *state)
|
|||
psycTextRC psyc_text (psycTextState *state, psycTextCB getValue);
|
||||
|
||||
/** @} */ // end of text group
|
||||
|
||||
#define PSYC_TEXT_H
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue