--- psiconv/trunk/lib/psiconv/parse_routines.h 1999/10/11 16:15:14 12 +++ psiconv/trunk/lib/psiconv/parse_routines.h 2000/12/13 16:30:21 63 @@ -1,6 +1,6 @@ /* parse_routines.h - Part of psiconv, a PSION 5 file formats converter - Copyright (c) 1999 Frodo Looijaard + Copyright (c) 1999, 2000 Frodo Looijaard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,24 +20,20 @@ #ifndef PSICONV_PARSE_ROUTINES_H #define PSICONV_PARSE_ROUTINES_H -#include "data.h" -#include "parse.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + /* *************** - * parse_aux.c * + * misc.c * *************** */ -/* These functions print error, warning, progress and debug information to - stderr */ -extern void psiconv_fatal(int level, psiconv_u32 off, const char *format,...); -extern void psiconv_warn(int level, psiconv_u32 off, const char *format,...); -extern void psiconv_progress(int level, psiconv_u32 off, - const char *format,...); -extern void psiconv_debug(int level, psiconv_u32 off, const char *format,...); - /* This function returns a copy of a string, that contains no ASCII codes that are not printable. You should free this string yourself when you are - done with it. */ + done with it. Returns NULL if there is not enough memory left. */ extern char *psiconv_make_printable(const char *s); /* ************** @@ -182,12 +178,21 @@ ***************** */ extern int psiconv_parse_paint_data_section(const psiconv_buffer buf,int lev, - psiconv_u32 off, int *length, + psiconv_u32 off, int *length, + int isclipart, psiconv_paint_data_section *result); -extern int psiconv_parse_mbm_jumptable_section(const psiconv_buffer buf,int lev, +extern int psiconv_parse_jumptable_section(const psiconv_buffer buf,int lev, psiconv_u32 off, int *length, - psiconv_mbm_jumptable_section *result); + psiconv_jumptable_section *result); +extern int psiconv_parse_sketch_section(const psiconv_buffer buf, int lev, + psiconv_u32 off, int *length, int is_object, + psiconv_sketch_section *result); +extern int psiconv_parse_clipart_section(const psiconv_buffer buf, int lev, + psiconv_u32 off, int *length, + psiconv_clipart_section *result); + + @@ -204,4 +209,13 @@ extern int psiconv_parse_mbm_file(const psiconv_buffer buf,int lev, psiconv_u32 off, psiconv_mbm_f *result); +extern int psiconv_parse_sketch_file(const psiconv_buffer buf,int lev, + psiconv_u32 off, psiconv_sketch_f *result); + +extern int psiconv_parse_clipart_file(const psiconv_buffer buf,int lev, + psiconv_u32 off, psiconv_clipart_f *result); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* PSICONV_PARSE_ROUTINES_H */