From d0c0958ddf428d10819515454968831ecec39764 Mon Sep 17 00:00:00 2001 From: Mathias Laurenz Baumann Date: Wed, 1 Sep 2010 15:47:26 +0200 Subject: [PATCH] small changes for linking --- src/Makefile | 2 +- src/parser.c | 2 +- src/parser.h | 4 ++-- src/tests/Makefile | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Makefile b/src/Makefile index e78f5bf..5bf2de1 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,4 @@ -CC=clang +CC=cc dietlib: /opt/diet/bin/diet ${CC} -c -Os parser.c -o libpsyc.o -DDEBUG diff --git a/src/parser.c b/src/parser.c index c1973e3..277c994 100644 --- a/src/parser.c +++ b/src/parser.c @@ -106,7 +106,7 @@ inline int PSYC_parseHeader( * real length of the packet and thus * searches for the terminator. */ -int PSYC_parseOpenBody( +extern int PSYC_parseOpenBody( unsigned int* cursor, const uint8_t * data, unsigned int dlength, const uint8_t** name, unsigned int *nlength, diff --git a/src/parser.h b/src/parser.h index 961de00..1c7979c 100644 --- a/src/parser.h +++ b/src/parser.h @@ -36,7 +36,7 @@ * <0 on a parsing error. * This invalidates all but the cursor * out paramater. */ -int PSYC_parseHeader( +extern int PSYC_parseHeader( unsigned int* cursor, const uint8_t * data, unsigned int dlength, const uint8_t** name, unsigned int *nlength, @@ -110,7 +110,7 @@ int PSYC_parseClosedBody( * real length of the packet and thus * searches for the terminator. */ -int PSYC_parseOpenBody( +extern int PSYC_parseOpenBody( unsigned int* cursor, const uint8_t * data, unsigned int dlength, const uint8_t** name, unsigned int *nlength, diff --git a/src/tests/Makefile b/src/tests/Makefile index 78e053f..347e93c 100644 --- a/src/tests/Makefile +++ b/src/tests/Makefile @@ -1,3 +1,3 @@ -CFLAGS=-I.. -DDEBUG -lpsyc +CFLAGS=-L.. -I.. -DDEBUG -lpsyc it: testParser