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

formating change in parser.h

This commit is contained in:
Marenz 2011-05-03 23:15:31 +02:00
parent 444bf2a5f4
commit 09e8943afe

View file

@ -131,7 +131,7 @@ typedef struct
* @param state Pointer to the state struct that should be initiated.
*/
static inline
void psyc_initParseState (psycParseState* state)
void psyc_initParseState ( psycParseState* state )
{
memset(state, 0, sizeof(psycParseState));
}
@ -143,7 +143,7 @@ void psyc_initParseState (psycParseState* state)
* @param flags Flags to be set for the parser, see psycParseFlag.
*/
static inline
void psyc_initParseState2 (psycParseState* state, uint8_t flags)
void psyc_initParseState2 ( psycParseState* state, uint8_t flags )
{
memset(state, 0, sizeof(psycParseState));
state->flags = flags;
@ -160,7 +160,7 @@ void psyc_initParseState2 (psycParseState* state, uint8_t flags)
* @see psycString
*/
static inline
void psyc_setParseBuffer (psycParseState* state, psycString buffer)
void psyc_setParseBuffer ( psycParseState* state, psycString buffer )
{
state->buffer = buffer;
state->cursor = 0;
@ -181,7 +181,7 @@ void psyc_setParseBuffer (psycParseState* state, psycString buffer)
* @see psycString
*/
static inline
void psyc_setParseBuffer2 (psycParseState* state, char *buffer, size_t length)
void psyc_setParseBuffer2 ( psycParseState* state, char *buffer, size_t length )
{
psyc_setParseBuffer(state, psyc_newString(buffer, length));
}
@ -192,7 +192,7 @@ void psyc_setParseBuffer2 (psycParseState* state, char *buffer, size_t length)
* @param state Pointer to the list state struct that should be initiated.
*/
static inline
void psyc_initParseListState (psycParseListState* state)
void psyc_initParseListState ( psycParseListState* state )
{
memset(state, 0, sizeof(psycParseListState));
}
@ -201,20 +201,20 @@ void psyc_initParseListState (psycParseListState* state)
* Sets a new buffer in the list parser state struct with data to be parsed.
*/
static inline
void psyc_setParseListBuffer (psycParseListState* state, psycString buffer)
void psyc_setParseListBuffer ( psycParseListState* state, psycString buffer )
{
state->buffer = buffer;
state->cursor = 0;
}
static inline
void psyc_setParseListBuffer2 (psycParseListState* state, char *buffer, size_t length)
void psyc_setParseListBuffer2 ( psycParseListState* state, char *buffer, size_t length )
{
psyc_setParseListBuffer(state, psyc_newString(buffer, length));
}
static inline
size_t psyc_getContentLength (psycParseState* s)
size_t psyc_getContentLength ( psycParseState* s )
{
return s->contentLength;
}
@ -232,12 +232,12 @@ size_t psyc_getContentLength (psycParseState* s)
* @param value A pointer to a psycString. It will point to the
* value/body the variable/method and its length will be set accordingly
*/
psycParseRC psyc_parse (psycParseState* state, char* oper, psycString* name, psycString* value);
psycParseRC psyc_parse ( psycParseState* state, char* oper, psycString* name, psycString* value);
/**
* List value parser.
*/
psycParseListRC psyc_parseList (psycParseListState* state, psycString *name, psycString* value, psycString* elem);
psycParseListRC psyc_parseList ( psycParseListState* state, psycString *name, psycString* value, psycString* elem);
#endif // PSYC_PARSER_H