summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/lib/lib.h
blob: 366af21485a3d58f5023b5e49657587cf042d73d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* lib.h: declare prototypes for functions in lib.a.
  Public domain. */

#ifndef LIB_LIB_H
#define LIB_LIB_H

/* basechsuffix.c */
extern string basenamechangesuffix (const_string, const_string, const_string);

/* chartostring.c */
extern string chartostring (char);

/* eofeoln.c */
/*
 * definition of eof() contradicts corecrt_io.h in Visual Studio 2019.
 *
 */
#if defined(_MSC_VER) && _MSC_VER > 1916
#define eof(x) myeof(x)
#endif /* _MSC_VER */
extern boolean eof (FILE *);
extern boolean eoln (FILE *);
extern void readln (FILE *);

/* fprintreal.c */
extern void fprintreal (FILE *, double, int, int);

/* inputint.c */
extern integer inputint (FILE *);

/* input2int.c */
extern void zinput2ints (integer *, integer *);
extern void zinput3ints (integer *, integer *, integer *);

/* main.c (or win32main.c or texmfmp.c) */
#ifndef NOT_WEB2C
/* Only used in Web2C programs and possibly harmful otherwise.  */
extern int argc;
extern string *argv;
extern string cmdline (int);
extern void mainbody (void); /* generated by web2c */
#endif

/* openclose.c */
extern boolean open_input (FILE **, int, const_string fopen_mode);
extern boolean open_output (FILE **, const_string fopen_mode);
extern boolean open_input_with_dirname (FILE **, int, const char *);
extern void close_file (FILE *);
extern void recorder_change_filename (string);
extern void recorder_record_input (const_string);
extern void recorder_record_output (const_string);

extern string fullnameoffile;
extern boolean recorder_enabled;
extern string output_directory;

/* printversion.c */
extern void printversionandexit (const_string, const_string, const_string, const_string);

/* setupvar.c */
/* Set an array size from texmf.cnf.  */
extern void setupboundvariable (integer *, const_string, integer);

/* texmfmp.c */
extern boolean texmf_yesno(const_string);

/* version.c */
extern const char *versionstring;

/* zround.c */
extern integer zround (double);

#endif /* not LIB_LIB_H */