Re: [pdf-devel] errors building for mingw32

2009-10-28 Thread jemarch
OK. After adding this code you suggest: Sorry, I forgot to include the PUBLIC block: /* BEGIN PUBLIC */ #ifdef PDF_HOST_WIN32 #   include #endif /* END PUBLIC */

Re: [pdf-devel] errors building for mingw32

2009-10-28 Thread Pablo Vasquez
OK. After adding this code you suggest: #ifdef PDF_HOST_WIN32 # include #endif I get: [...] libtool: link: ranlib .libs/libgnupdf.a libtool: link: rm -fr .libs/libgnupdf.lax libtool: link: ( cd ".libs" && rm -f "libgnupdf.la" && ln -s "../ libgnupdf.la" " libgnupdf.la" ) chmod +x ../src/extra

Re: [pdf-devel] errors building for mingw32

2009-10-28 Thread jemarch
Hi Pablo. And the piece of code from pdf-time.h: #ifdef PDF_HOST_WIN32   /* Windows-specific function to set the time with a pdf_i64_t */   pdf_status_t   pdf_time_w32_set_from_filetime (pdf_time_t time_var,   const FILETIME *p_filetime); #end

Re: [pdf-devel] Problems adding gnulib module unistr/u8-check

2009-10-28 Thread jemarch
I'd like to use gnulib's unistr/u8-check module from the token writer. After using gnulib-tool (from gnulib's git repository) to import it I get this error from ./bootstrap: Bootstrapping the GNU PDF Library with: autoreconf -i configure.ac:33: error: AC_PROG_CC cannot b

Re: Re : [pdf-devel] Tokeniser Module - Unit Test: test cases and suggestions

2009-10-28 Thread jemarch
The latest version of pdf_token_buffer_new puts an 'X' after every buffer that's not null terminated. The idea is that code treating the value as a C string, like printf("%s\n", pdf_token_get_string_data(token)); will produce a value that's clearly incorrect. If we didn't do thi

Re: [pdf-devel] Token writer code

2009-10-28 Thread jemarch
Hi Michael. Here's the current version of my token writer code for review. It's basically complete, but I'll need to read over it again and do some more testing before submitting a final version. Many thanks. My comments follow. + /* PDF32000 7.5.1: "lines that are not part of st