summaryrefslogtreecommitdiffstats
path: root/baseline/source/susan/wccfile.h
diff options
context:
space:
mode:
authorJoshua Bakita <bakitajoshua@gmail.com>2019-10-07 19:13:39 -0400
committerJoshua Bakita <bakitajoshua@gmail.com>2019-10-07 19:13:39 -0400
commit386b7d3366f1359a265da207a9cafa3edf553b64 (patch)
treec76120c2c138faed822e4ae386be6ef22a738a78 /baseline/source/susan/wccfile.h
parent54a3f7091a2146b29c73a6fdc4b62a5c4ad7a3d8 (diff)
Reorganize and commit all the modified TACLeBench code and run scripts
Diffstat (limited to 'baseline/source/susan/wccfile.h')
-rw-r--r--baseline/source/susan/wccfile.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/baseline/source/susan/wccfile.h b/baseline/source/susan/wccfile.h
new file mode 100644
index 0000000..9314361
--- /dev/null
+++ b/baseline/source/susan/wccfile.h
@@ -0,0 +1,24 @@
1#ifndef WCC_FILE_H
2#define WCC_FILE_H
3
4enum _Origin_ { WCCSEEK_SET, WCCSEEK_CUR, WCCSEEK_END };
5typedef enum _Origin_ Origin;
6typedef unsigned int size_x;
7
8#define EOFX -1
9
10struct wccFILE {
11 char* data;
12 size_x size;
13 unsigned cur_pos;
14};
15
16size_x susan_wccfread (void* ptr, size_x size, size_x count, struct wccFILE* stream);
17int susan_wccfseek (struct wccFILE* stream, long int offset, Origin origin);
18int susan_wccfgetpos (struct wccFILE* stream, unsigned* position);
19int susan_wccfeof (struct wccFILE* stream);
20int susan_wccfgetc (struct wccFILE *stream);
21char *susan_wccfgets (char *str, int num, struct wccFILE *stream );
22
23#endif
24