-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefs.h
35 lines (30 loc) · 751 Bytes
/
defs.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
// defs.h ... global definitions
// part of signature indexed files
// Defines types and constants used throughout code
// Written by John Shepherd, March 2019
#ifndef DEFS_H
#define DEFS_H 1
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "util.h"
#define PAGESIZE 4096
#define NO_PAGE 0xffffffff
#define MAXERRMSG 200
#define MAXTUPLEN 200
#define MAXRELNAME 200
#define MAXFILENAME MAXRELNAME+8
#define OK 0
#define NOT_OK 0xffffffff
#define FALSE 0
#define TRUE 1
typedef char Bool;
typedef unsigned char Byte;
typedef int Status;
typedef int File;
typedef unsigned int Offset;
typedef unsigned int Count;
typedef unsigned int Word;
typedef Offset PageID;
#endif