-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.h
41 lines (32 loc) · 982 Bytes
/
common.h
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
// Common prototypes for functions used in this project.
#ifndef COMMON_H
#define COMMON_H
#include "datatypes.h"
/* sys communication functions */
void killer(int dummy);
/* Parser Functions */
rstring read_file(char* filename);
ated parse(rstring text);
void dealloc_ated(ated object);
void test();
char* substring(char* src, int len);
void printfn(const char *fmt, ...);
void crocodile_test();
char get_byte(rstring* buff);
/* Sound Handling Functions */
void handle_sound(adata_t* data);
void inject_audio(adata_t* adata, char* filepath);
int Callback(const void *input,
void *output,
unsigned long frameCount,
const PaStreamCallbackTimeInfo* paTimeInfo,
PaStreamCallbackFlags statusFlags,
void *userData);
/* ncurses helpers */
char *randstring(int length);
void genstars(int num);
void handle_winch(int sig);
/* Misc. */
int random_number(int min_num, int max_num);
char *getstring(int length);
#endif