Back to index

tetex-bin  3.0
pdfparse.h
Go to the documentation of this file.
00001 /*  $Header$
00002 
00003     This is dvipdfm, a DVI to PDF translator.
00004     Copyright (C) 1998, 1999 by Mark A. Wicks
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019     
00020     The author may be contacted via the e-mail address
00021 
00022        mwicks@kettering.edu
00023 */
00024 
00025        
00026 /*
00027     This is dvipdf, a DVI to PDF translator.
00028     Copyright (C) 1998  by Mark A. Wicks
00029 
00030     This program is free software; you can redistribute it and/or modify
00031     it under the terms of the GNU General Public License as published by
00032     the Free Software Foundation; either version 2 of the License, or
00033     (at your option) any later version.
00034 
00035     This program is distributed in the hope that it will be useful,
00036     but WITHOUT ANY WARRANTY; without even the implied warranty of
00037     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00038     GNU General Public License for more details.
00039 
00040     You should have received a copy of the GNU General Public License
00041     along with this program; if not, write to the Free Software
00042     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00043     
00044     The author may be contacted via the e-mail address
00045 
00046        mwicks@kettering.edu
00047 */
00048 
00049        
00050 #ifndef PDFPARSE_H
00051 
00052 #define PDFPARSE_H
00053 #include "numbers.h"
00054 #include "pdfobj.h"
00055 
00056 extern int is_an_int(const char *s);
00057 extern int is_a_number(const char *s);
00058 extern char *parse_ident (char **start, char *end);
00059 extern char *parse_val_ident (char **start, char *end);
00060 extern char *parse_c_ident (char **start, char *end);
00061 extern char *parse_number (char **start, char*end);
00062 extern char *parse_unsigned (char **start, char*end);
00063 extern void parse_crap (char **start, char *end);
00064 extern void skip_white (char **start, char *end);
00065 extern void skip_line (char **start, char *end);
00066 
00067 extern char *parse_c_string (char **start, char*end);
00068 extern pdf_obj *parse_pdf_string (char **start, char*end);
00069 extern pdf_obj *parse_pdf_name (char **start, char*end);
00070 extern pdf_obj *parse_pdf_array (char **start, char*end);
00071 extern pdf_obj *parse_pdf_object (char **start, char*end);
00072 extern pdf_obj *parse_pdf_dict (char **start, char*end);
00073 extern pdf_obj *parse_pdf_boolean (char **start, char*end);
00074 extern pdf_obj *parse_pdf_null (char **start, char*end);
00075 extern char *parse_pdf_reference (char **start, char*end);
00076 extern char *parse_opt_ident (char **start, char*end);
00077 
00078 extern void parse_key_val (char **start, char *end, char **key, char **val);
00079 extern void dump (char *start, char *end);
00080 
00081 #endif  /* PDFPARSE_H */