/* Define if you have the <sys/ndir.h> header file. */
#undef HAVE_SYS_NDIR_H
+/* Define if you have the <sys/io.h> header file. */
+#undef HAVE_IO_H
+
/* Define if you have the <sys/bsdtypes.h> header file. */
#undef HAVE_SYS_BSDTYPES_H
PACKAGE=swftools
-VERSION=2007-12-09-2003
+VERSION=2007-04-28-2027
# ------------------------------------------------------------------
-for ac_header in zlib.h gif_lib.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
+
+for ac_header in zlib.h gif_lib.h io.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
AC_CONFIG_HEADER(config.h)
AC_HEADER_DIRENT
AC_HEADER_STDC
- AC_CHECK_HEADERS(zlib.h gif_lib.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h)
+ AC_CHECK_HEADERS(zlib.h gif_lib.h io.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h)
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
top_srcdir = @top_srcdir@
include ../Makefile.common
-DEVICES = devices/swf.$(O) devices/arts.$(O) #devices/lrf.$(O) devices/opengl.$(O)
+DEVICES = devices/swf.$(O) devices/arts.$(O) devices/artsutils.$(O) #devices/lrf.$(O) devices/opengl.$(O)
all: librfxswf$(A) libpdf$(A) art/libart$(A) libbase$(A) libgfx$(A) $(DEVICES)
$(C) devices/render.c -o devices/render.$(O)
devices/opengl.$(O): devices/opengl.c devices/opengl.h
$(C) devices/opengl.c -o devices/opengl.$(O)
-devices/arts.$(O): devices/arts.c devices/arts.h devices/artsutils.c
+devices/arts.$(O): devices/arts.c devices/arts.h devices/artsutils.h
$(C) devices/arts.c -o devices/arts.$(O)
+devices/artsutils.$(O): devices/artsutils.c devices/artsutils.h
+ $(C) devices/artsutils.c -o devices/artsutils.$(O)
devices/record.$(O): devices/record.c devices/record.h
$(C) devices/record.c -o devices/record.$(O)
devices/text.$(O): devices/text.c devices/text.h
void writer_init_memwriter(writer_t*w, void*data, int len)
{
struct memwrite_t *mr;
- mr = (memwrite_t *)malloc(sizeof(struct memwrite_t));
+ mr = (struct memwrite_t*)malloc(sizeof(struct memwrite_t));
mr->data = (unsigned char *)data;
mr->length = len;
memset(w, 0, sizeof(writer_t));
#include "../../config.h"
#include "../art/libart.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
ArtVpath* gfxline_to_ArtVpath(gfxline_t*line);
ArtSVP* gfxfillToSVP(gfxline_t*line, int perturb);
void show_path(ArtSVP*path);
ArtSVP* gfxstrokeToSVP(gfxline_t*line, gfxcoord_t width, gfx_capType cap_style, gfx_joinType joint_style, double miterLimit);
gfxline_t* SVPtogfxline(ArtSVP*svp);
+#ifdef __cplusplus
+}
+#endif
+
#endif
free(i->filename);i->filename = 0;
}
-int fileresult_save(struct _gfxresult*gfx, char*filename)
+int fileresult_save(struct _gfxresult*gfx, const char*filename)
{
gfxresult_internal_t*i = (gfxresult_internal_t*)gfx->internal;
FILE*fi,*fo;
return 0;
}
-void* fileresult_get(struct _gfxresult*gfx, char*name)
+void* fileresult_get(struct _gfxresult*gfx, const char*name)
{
return 0;
}
{
textpage_t*i= (textpage_t*)r->internal;
}
-int text_result_save(gfxresult_t*r, char*filename)
+int text_result_save(gfxresult_t*r, const char*filename)
{
textpage_t*i= (textpage_t*)r->internal;
if(!i) {
fclose(fi);
return 1;
}
-void*text_result_get(gfxresult_t*r, char*name)
+void*text_result_get(gfxresult_t*r, const char*name)
{
textpage_t*i= (textpage_t*)r->internal;
if(!strcmp(name,"text")) {
$(L) swfrender.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libgfx$(A) ../lib/swf/swf.$(O) ../lib/libbase$(A) $(LIBS)
$(STRIP) $@
-PDF2SWF_OBJ=../lib/librfxswf$(A) ../lib/libpdf$(A) ../lib/devices/arts.$(O) ../lib/devices/swf.$(O) ../lib/art/libart$(A) ../lib/libgfx$(A) ../lib/libbase$(A)
+PDF2SWF_OBJ=../lib/librfxswf$(A) ../lib/libpdf$(A) ../lib/devices/arts.$(O) ../lib/devices/artsutils.$(O) ../lib/devices/swf.$(O) ../lib/art/libart$(A) ../lib/libgfx$(A) ../lib/libbase$(A)
pdf2swf$(E): pdf2swf.$(O) $(PDF2SWF_OBJ)
$(LL) pdf2swf.$(O) -o $@ $(PDF2SWF_OBJ) $(LIBS) $(CXXLIBS)
$(STRIP) $@