Debian Codegraph @

terps/taylor/utility.h

raw symbols SCIP
1 //
2 // utility.h
3 // Part of TaylorMade, an interpreter for Adventure Soft UK games
4 //
5 // Created by Petter Sjölund on 2022-03-10.
6 //
7
8 #ifndef utility_h
9 #define utility_h
10
11 #include <stdio.h>
12
13 #include "glk.h"
14
15 void Display(winid_t w, const char *fmt, ...);
16 void CleanupAndExit(void);
17 void Fatal(const char *x);
18 void *MemAlloc(size_t size);
19 uint8_t *SeekToPos(uint8_t *buf, size_t offset);
20 void print_memory(int address, int length);
21 uint8_t *readFile(const char *name, size_t *size);
22
23 int rotate_left_with_carry(uint8_t *byte, int last_carry);
24 int rotate_right_with_carry(uint8_t *byte, int last_carry);
25
26 extern uint8_t *FileImage;
27 extern size_t FileImageLen;
28 extern uint8_t *EndOfData;
29 extern strid_t Transcript;
30
31 #endif /* utility_h */