Skip to content

Commit

Permalink
It can now find the yajl includes. It doesn't compile yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
lehenbauer committed Mar 23, 2010
1 parent 0f4d339 commit db253c2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,5 +1,7 @@
autom4te.cache
configure
config.log
config.status
Makefile
pkgIndex.tcl
*.o
Expand Down
5 changes: 4 additions & 1 deletion Makefile.in
Expand Up @@ -144,7 +144,10 @@ TCLSH = $(TCLSH_ENV) $(TCLSH_PROG)

SHARED_BUILD = @SHARED_BUILD@

INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@
# NB FIX the configure script to do this the right way
YAJLINCLUDES=-I"/usr/local/include"

INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@ $(YAJLINCLUDES)
#INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@ @TK_INCLUDES@ @TK_XINCLUDES@

PKG_CFLAGS = @PKG_CFLAGS@
Expand Down
3 changes: 2 additions & 1 deletion generic/yajltcl.c
Expand Up @@ -3,6 +3,7 @@
*/

#include <tcl.h>
#include "yajltcl.h"


/*
Expand All @@ -20,7 +21,7 @@
*/


^L

/*
*----------------------------------------------------------------------
*
Expand Down
7 changes: 6 additions & 1 deletion generic/yajltcl.h
Expand Up @@ -8,10 +8,15 @@
* for details.
*/


/* NB - fix the configure script */
#include <yajl/yajl_common.h>
#include <yajl/yajl_gen.h>

extern int
yajltcl_yajlObjCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objvp[]);

typedef struct yajltcl_clientData
{
yajl_gen handle;
}
};

0 comments on commit db253c2

Please sign in to comment.