mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
small changes for linking
This commit is contained in:
parent
52eac395f6
commit
d0c0958ddf
4 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
CC=clang
|
CC=cc
|
||||||
|
|
||||||
dietlib:
|
dietlib:
|
||||||
/opt/diet/bin/diet ${CC} -c -Os parser.c -o libpsyc.o -DDEBUG
|
/opt/diet/bin/diet ${CC} -c -Os parser.c -o libpsyc.o -DDEBUG
|
||||||
|
|
|
@ -106,7 +106,7 @@ inline int PSYC_parseHeader(
|
||||||
* real length of the packet and thus
|
* real length of the packet and thus
|
||||||
* searches for the terminator.
|
* searches for the terminator.
|
||||||
*/
|
*/
|
||||||
int PSYC_parseOpenBody(
|
extern int PSYC_parseOpenBody(
|
||||||
unsigned int* cursor,
|
unsigned int* cursor,
|
||||||
const uint8_t * data, unsigned int dlength,
|
const uint8_t * data, unsigned int dlength,
|
||||||
const uint8_t** name, unsigned int *nlength,
|
const uint8_t** name, unsigned int *nlength,
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
* <0 on a parsing error.
|
* <0 on a parsing error.
|
||||||
* This invalidates all but the cursor
|
* This invalidates all but the cursor
|
||||||
* out paramater. */
|
* out paramater. */
|
||||||
int PSYC_parseHeader(
|
extern int PSYC_parseHeader(
|
||||||
unsigned int* cursor,
|
unsigned int* cursor,
|
||||||
const uint8_t * data, unsigned int dlength,
|
const uint8_t * data, unsigned int dlength,
|
||||||
const uint8_t** name, unsigned int *nlength,
|
const uint8_t** name, unsigned int *nlength,
|
||||||
|
@ -110,7 +110,7 @@ int PSYC_parseClosedBody(
|
||||||
* real length of the packet and thus
|
* real length of the packet and thus
|
||||||
* searches for the terminator.
|
* searches for the terminator.
|
||||||
*/
|
*/
|
||||||
int PSYC_parseOpenBody(
|
extern int PSYC_parseOpenBody(
|
||||||
unsigned int* cursor,
|
unsigned int* cursor,
|
||||||
const uint8_t * data, unsigned int dlength,
|
const uint8_t * data, unsigned int dlength,
|
||||||
const uint8_t** name, unsigned int *nlength,
|
const uint8_t** name, unsigned int *nlength,
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
CFLAGS=-I.. -DDEBUG -lpsyc
|
CFLAGS=-L.. -I.. -DDEBUG -lpsyc
|
||||||
|
|
||||||
it: testParser
|
it: testParser
|
||||||
|
|
Loading…
Reference in a new issue