beta-0.89.2
[luatex.git] / source / texk / web2c / luatexdir / utils / utils.h
blob6818c33c7656a1989eb1a3330ba70dc69b24c6b4
1 /* utils.h
3 Copyright 1996-2006 Han The Thanh <thanh@pdftex.org>
4 Copyright 2006-2012 Taco Hoekwater <taco@luatex.org>
6 This file is part of LuaTeX.
8 LuaTeX is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 2 of the License, or (at your
11 option) any later version.
13 LuaTeX is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16 License for more details.
18 You should have received a copy of the GNU General Public License along
19 with LuaTeX; if not, see <http://www.gnu.org/licenses/>. */
22 #ifndef UTILS_H
23 # define UTILS_H
25 extern int epochseconds;
26 extern int microseconds;
28 void make_subset_tag(fd_entry *);
30 __attribute__ ((format(printf, 1, 2)))
31 void tex_printf(const char *, ...);
33 void garbage_warning(void);
34 size_t xfwrite(void *, size_t size, size_t nmemb, FILE *);
35 int xfflush(FILE *);
36 int xgetc(FILE *);
37 int xputc(int, FILE *);
38 scaled ext_xn_over_d(scaled, scaled, scaled);
39 void initversionstring(char **versions);
40 extern void check_buffer_overflow(int wsize);
41 extern void check_pool_overflow(int wsize);
43 extern char *cur_file_name;
45 # include "luatex-common.h"
47 #endif /* UTILS_H */