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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*******************************************************/
/* "C" Language Integrated Production System */
/* */
/* CLIPS Version 6.40 07/05/18 */
/* */
/* I/O FUNCTIONS HEADER FILE */
/*******************************************************/
/*************************************************************/
/* Purpose: */
/* */
/* Principal Programmer(s): */
/* Gary D. Riley */
/* */
/* Contributing Programmer(s): */
/* */
/* Revision History: */
/* */
/* 6.24: Added the get-char, set-locale, and */
/* read-number functions. */
/* */
/* Modified printing of floats in the format */
/* function to use the locale from the set-locale */
/* function. */
/* */
/* Moved IllegalLogicalNameMessage function to */
/* argacces.c. */
/* */
/* 6.30: Changed integer type/precision. */
/* */
/* Support for long long integers. */
/* */
/* Removed the undocumented use of t in the */
/* printout command to perform the same function */
/* as crlf. */
/* */
/* Replaced EXT_IO and BASIC_IO compiler flags */
/* with IO_FUNCTIONS compiler flag. */
/* */
/* Added a+, w+, rb, ab, r+b, w+b, and a+b modes */
/* for the open function. */
/* */
/* Removed conditional code for unsupported */
/* compilers/operating systems (IBM_MCW and */
/* MAC_MCW). */
/* */
/* Used gensprintf instead of sprintf. */
/* */
/* Added put-char function. */
/* */
/* Added SetFullCRLF which allows option to */
/* specify crlf as \n or \r\n. */
/* */
/* Added AwaitingInput flag. */
/* */
/* Added const qualifiers to remove C++ */
/* deprecation warnings. */
/* */
/* 6.40: Removed LOCALE definition. */
/* */
/* Pragma once and other inclusion changes. */
/* */
/* Added support for booleans with <stdbool.h>. */
/* */
/* Removed use of void pointers for specific */
/* data structures. */
/* */
/* UDF redesign. */
/* */
/* Added print and println functions. */
/* */
/* Added unget-char function. */
/* */
/* Added flush, rewind, tell, seek, and chdir */
/* functions. */
/* */
/*************************************************************/
#ifndef _H_iofun
#pragma once
#define _H_iofun
void IOFunctionDefinitions(Environment *);
#if IO_FUNCTIONS
bool SetFullCRLF(Environment *,bool);
void PrintoutFunction(Environment *,UDFContext *,UDFValue *);
void PrintFunction(Environment *,UDFContext *,UDFValue *);
void PrintlnFunction(Environment *,UDFContext *,UDFValue *);
void ReadFunction(Environment *,UDFContext *,UDFValue *);
void OpenFunction(Environment *,UDFContext *,UDFValue *);
void CloseFunction(Environment *,UDFContext *,UDFValue *);
void FlushFunction(Environment *,UDFContext *,UDFValue *);
void RewindFunction(Environment *,UDFContext *,UDFValue *);
void TellFunction(Environment *,UDFContext *,UDFValue *);
void SeekFunction(Environment *,UDFContext *,UDFValue *);
void GetCharFunction(Environment *,UDFContext *,UDFValue *);
void UngetCharFunction(Environment *,UDFContext *,UDFValue *);
void PutCharFunction(Environment *,UDFContext *,UDFValue *);
void ReadlineFunction(Environment *,UDFContext *,UDFValue *);
void FormatFunction(Environment *,UDFContext *,UDFValue *);
void RemoveFunction(Environment *,UDFContext *,UDFValue *);
void ChdirFunction(Environment *,UDFContext *,UDFValue *);
void RenameFunction(Environment *,UDFContext *,UDFValue *);
void SetLocaleFunction(Environment *,UDFContext *,UDFValue *);
void ReadNumberFunction(Environment *,UDFContext *,UDFValue *);
#endif
#endif /* _H_iofun */