-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcommon.hpp
39 lines (32 loc) · 813 Bytes
/
common.hpp
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
#ifndef __COMMON_H
#define __COMMON_H
//#define DEBUG 1
//#define DEBUG_BINARY 1
//#define QUITME 1
#define FUNCTION_NAME_LIMIT 20
#include <string>
#include <vector>
#include <iostream>
#include "types.hpp"
/* CRAP ADDED TO BE WEEDED OUT */
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <map>
#include <cstdlib>
#include <fstream>
#include <string.h>
/* END OF CRAP */
using namespace std;
void ascii( u8 character );
void hexdump( char * pointer , u32 length );
void printStringVector( vector<string> lines );
void printCharVector( vector<char> line );
void stripCarriageReturns( string& StringToModify );
u32 ReadFile(const char* filename, char* buffer);
vector<char> readLine1(char * buffer, int len);
#if 0
string readLine2(char * buffer, int len);
#endif
#endif