Debian Codegraph @

texk/web2c/lib/lib.h

raw
1 /* lib.h: declare prototypes for functions in lib.a.
2 Public domain. */
3
4 #ifndef LIB_LIB_H
5 #define LIB_LIB_H
6
7 /* basechsuffix.c */
8 extern string basenamechangesuffix (const_string, const_string, const_string);
9
10 /* chartostring.c */
11 extern string chartostring (char);
12
13 /* eofeoln.c */
14 /*
15 * definition of eof() contradicts corecrt_io.h in Visual Studio 2019.
16 *
17 */
18 #if defined(_MSC_VER) && _MSC_VER > 1916
19 #define eof(x) myeof(x)
20 #endif /* _MSC_VER */
21 extern boolean eof (FILE *);
22 extern boolean eoln (FILE *);
23 extern void readln (FILE *);
24
25 /* fprintreal.c */
26 extern void fprintreal (FILE *, double, int, int);
27
28 /* inputint.c */
29 extern integer inputint (FILE *);
30
31 /* input2int.c */
32 extern void zinput2ints (integer *, integer *);
33 extern void zinput3ints (integer *, integer *, integer *);
34
35 /* main.c (or win32main.c or texmfmp.c) */
36 #ifndef NOT_WEB2C
37 /* Only used in Web2C programs and possibly harmful otherwise. */
38 extern int argc;
39 extern string *argv;
40 extern string cmdline (int);
41 extern void mainbody (void); /* generated by web2c */
42 #endif
43
44 /* openclose.c */
45 extern boolean open_input (FILE **, int, const_string fopen_mode);
46 extern boolean open_output (FILE **, const_string fopen_mode);
47 extern boolean open_input_with_dirname (FILE **, int, const char *);
48 extern void close_file (FILE *);
49 extern void recorder_change_filename (string);
50 extern void recorder_record_input (const_string);
51 extern void recorder_record_output (const_string);
52
53 extern string fullnameoffile;
54 extern boolean recorder_enabled;
55 extern string output_directory;
56
57 /* printversion.c */
58 extern void printversionandexit (const_string, const_string, const_string, const_string);
59
60 /* setupvar.c */
61 /* Set an array size from texmf.cnf. */
62 extern void setupboundvariable (integer *, const_string, integer);
63
64 /* texmfmp.c */
65 extern boolean texmf_yesno(const_string);
66
67 /* version.c */
68 extern const char *versionstring;
69
70 /* zround.c */
71 extern integer zround (double);
72
73 #endif /* not LIB_LIB_H */