Skip to content

Commit 2bd8d40

Browse files
committed
Comment out #pragma header in File.sac
1 parent aa24e7b commit 2bd8d40

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

src/stdio/File.sac

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export all;
2020
external syserr, File fopen(string NAME, string MODE);
2121
#pragma effect TheFileSystem
2222
#pragma linkobj "src/File/File.o"
23-
#pragma header "src/File/File.h"
23+
// #pragma header "src/File/File.h"
2424
#pragma linkname "SACfopen"
2525
#pragma linksign [0,1,2,3]
2626
/*
@@ -34,7 +34,7 @@ external syserr fclose(File STREAM);
3434
#pragma effect TheFileSystem
3535
#pragma linkobj "src/File/File.o"
3636
#pragma linkname "SACfclose"
37-
#pragma header "src/File/File.h"
37+
// #pragma header "src/File/File.h"
3838
/*
3939
* Close the stream given by the file handle STREAM.
4040
*/
@@ -43,7 +43,7 @@ external syserr fclose(File STREAM);
4343
external syserr, File, string mkstemp(string template);
4444
#pragma effect TheFileSystem
4545
#pragma linkobj "src/File/File.o"
46-
#pragma header "src/File/File.h"
46+
// #pragma header "src/File/File.h"
4747
#pragma linkname "SACmkstemp"
4848
#pragma linksign [0,1,2,2]
4949
/*
@@ -75,7 +75,7 @@ syserr, File, string tmpfile()
7575
external syserr fremove(string fname);
7676
#pragma effect TheFileSystem
7777
#pragma linkobj "src/File/File.o"
78-
#pragma header "src/File/File.h"
78+
// #pragma header "src/File/File.h"
7979
/*
8080
* Remove file or directory.
8181
*/
@@ -88,23 +88,23 @@ external syserr fremove(string fname);
8888

8989
external syserr fputc(char C, File &STREAM);
9090
#pragma linkobj "src/File/File.o"
91-
#pragma header "src/File/File.h"
91+
// #pragma header "src/File/File.h"
9292
#pragma linkname "SACfputc"
9393
/*
9494
* Write the character C to the output stream STREAM.
9595
*/
9696

9797
external char fgetc(File &STREAM);
9898
#pragma linksign [0,1]
99-
#pragma header "src/File/File.h"
99+
// #pragma header "src/File/File.h"
100100
#pragma linkname "SACfgetc"
101101
/*
102102
* Get the next character from the input stream STREAM.
103103
*/
104104

105105
external syserr ungetc(char C, File &STREAM);
106106
#pragma linkobj "src/File/File.o"
107-
#pragma header "src/File/File.h"
107+
// #pragma header "src/File/File.h"
108108
#pragma linkname "SACungetc"
109109
/*
110110
* Put the character C back to the input stream STREAM for further
@@ -115,7 +115,7 @@ external syserr ungetc(char C, File &STREAM);
115115

116116
external syserr fputs(string S, File &STREAM);
117117
#pragma linkobj "src/File/File.o"
118-
#pragma header "src/File/File.h"
118+
// #pragma header "src/File/File.h"
119119
#pragma linkname "SACfputs"
120120
/*
121121
* Write string S to stream.
@@ -124,7 +124,7 @@ external syserr fputs(string S, File &STREAM);
124124
external syserr, string fgets (int size, File &STREAM);
125125
#pragma linkname "SACfgets"
126126
#pragma linkobj "src/File/File.o"
127-
#pragma header "src/File/File.h"
127+
// #pragma header "src/File/File.h"
128128
#pragma linksign [0,1,2,3]
129129
#pragma sacarg [1]
130130
/*
@@ -153,7 +153,7 @@ syserr, string fgetl (File &stream)
153153

154154
external void fprintf(File &STREAM, string FORMAT, ...);
155155
#pragma linkobj "src/File/File.o"
156-
#pragma header "src/File/File.h"
156+
// #pragma header "src/File/File.h"
157157
#pragma linkname "SACfprintf"
158158
/*
159159
* Print formatted output to STREAM which must be open for writing.
@@ -164,7 +164,7 @@ external void fprintf(File &STREAM, string FORMAT, ...);
164164

165165
external int, ... fscanf(File &STREAM, string FORMAT);
166166
#pragma linkobj "src/File/File.o"
167-
#pragma header "src/File/File.h"
167+
// #pragma header "src/File/File.h"
168168
#pragma linkname "SACfscanf"
169169
#pragma linksign [0,1,2]
170170
/*
@@ -180,7 +180,7 @@ external int, ... fscanf(File &STREAM, string FORMAT);
180180

181181
external string fscans(File &STREAM, int MAX);
182182
#pragma linkobj "src/File/File.o"
183-
#pragma header "src/File/File.h"
183+
// #pragma header "src/File/File.h"
184184
/*
185185
* Read the next character string from the input stream STREAM. Strings
186186
* are delimited by any whitespace character including the
@@ -190,7 +190,7 @@ external string fscans(File &STREAM, int MAX);
190190

191191
external string fscanl(File &STREAM, int MAX);
192192
#pragma linkobj "src/File/File.o"
193-
#pragma header "src/File/File.h"
193+
// #pragma header "src/File/File.h"
194194
/*
195195
* Read the next line from the input stream STREAM. Lines are character
196196
* strings delimited by any new-line or end-of-file symbol.
@@ -206,15 +206,15 @@ external string fscanl(File &STREAM, int MAX);
206206

207207
external bool feof(File &STREAM);
208208
#pragma linkobj "src/File/File.o"
209-
#pragma header "src/File/File.h"
209+
// #pragma header "src/File/File.h"
210210
#pragma linkname "SACfeof"
211211
/*
212212
* Test the stream STREAM for having reached the end of the respective file.
213213
*/
214214

215215
external int fflush(File &STREAM);
216216
#pragma linkobj "src/File/File.o"
217-
#pragma header "src/File/File.h"
217+
// #pragma header "src/File/File.h"
218218
#pragma linkname "SACfflush"
219219
/*
220220
* Write the buffer of a buffered output stream STREAM
@@ -223,7 +223,7 @@ external int fflush(File &STREAM);
223223

224224
external int fseek(File &STREAM, int OFFSET, int BASE);
225225
#pragma linkobj "src/File/File.o"
226-
#pragma header "src/File/File.h"
226+
// #pragma header "src/File/File.h"
227227
#pragma linkname "SACfseek"
228228
/*
229229
* Reposition the stream STREAM. The new position is given as an offset
@@ -233,7 +233,7 @@ external int fseek(File &STREAM, int OFFSET, int BASE);
233233

234234
external int ftell(File &STREAM);
235235
#pragma linkobj "src/File/File.o"
236-
#pragma header "src/File/File.h"
236+
// #pragma header "src/File/File.h"
237237
#pragma linkname "SACftell"
238238
/*
239239
* Return the offset of the current byte relative to

0 commit comments

Comments
 (0)