This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.h
90 lines (74 loc) · 2.37 KB
/
io.h
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*****************************************************************************
* Copyright 1994-2005, Elliot Mednick and Mark Hummel
* This file is part of Veriwell.
*
* Veriwell is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Veriwell is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Foobar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*****************************************************************************/
/* IO.H - IO prototypes */
#ifndef IO_H
#define IO_H
#include <stdarg.h>
// public methods
/*
* LibPath_t
* - structure to maintain linked list of library paths
*/
typedef struct LibPath_t {
struct LibPath_t *next;
char *path;
} LibPath_t;
#define NHANDLES 31
//static FILE *file_handles [NHANDLES];
//static int file_used [NHANDLES];
void printf_V_log(char *, ...);
void printf_V(char *, ...);
void printf_error_V(char *, ...);
void printf_V_key(char *, ...);
void fprintf_V(handle_t, char *, ...);
//void vprintf_V (char *, void *);
//void vfprintf_V (handle_t, char *, void *);
void vprintf_V_log(char *, va_list);
void vprintf_V(char *, va_list);
void vfprintf_V(handle_t, char *, va_list);
handle_t fopen_V(char *);
handle_t check_handle(handle_t);
void fclose_V(handle_t);
//tree check_library (char *, int);
void fflush_V(handle_t);
FILE *fopenbuf(char *, int);
void init_io(void);
//tree check_library (char *name, int numargs);
class File;
extern File *fin;
extern char *input_filename;
extern char *filename;
extern FILE *log_file;
extern FILE *key_file;
extern char *log_file_name;
extern char *key_file_name;
extern int log_enable;
extern int log_available;
extern int key_enable;
extern int key_available;
extern char *ypath;
extern char *ylibext;
extern char *incdir;
extern int global_print_override;
extern char *global_print_buffer;
extern char *global_print_p;
// private methods
#ifdef IO_C
#endif //IO_C
#endif //IO_H