diff options
author | Joshua Bakita <bakitajoshua@gmail.com> | 2019-10-07 19:13:39 -0400 |
---|---|---|
committer | Joshua Bakita <bakitajoshua@gmail.com> | 2019-10-07 19:13:39 -0400 |
commit | 386b7d3366f1359a265da207a9cafa3edf553b64 (patch) | |
tree | c76120c2c138faed822e4ae386be6ef22a738a78 /baseline/source/susan/wccfile.h | |
parent | 54a3f7091a2146b29c73a6fdc4b62a5c4ad7a3d8 (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.h | 24 |
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 | |||
4 | enum _Origin_ { WCCSEEK_SET, WCCSEEK_CUR, WCCSEEK_END }; | ||
5 | typedef enum _Origin_ Origin; | ||
6 | typedef unsigned int size_x; | ||
7 | |||
8 | #define EOFX -1 | ||
9 | |||
10 | struct wccFILE { | ||
11 | char* data; | ||
12 | size_x size; | ||
13 | unsigned cur_pos; | ||
14 | }; | ||
15 | |||
16 | size_x susan_wccfread (void* ptr, size_x size, size_x count, struct wccFILE* stream); | ||
17 | int susan_wccfseek (struct wccFILE* stream, long int offset, Origin origin); | ||
18 | int susan_wccfgetpos (struct wccFILE* stream, unsigned* position); | ||
19 | int susan_wccfeof (struct wccFILE* stream); | ||
20 | int susan_wccfgetc (struct wccFILE *stream); | ||
21 | char *susan_wccfgets (char *str, int num, struct wccFILE *stream ); | ||
22 | |||
23 | #endif | ||
24 | |||