-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathread_binary.h
More file actions
25 lines (21 loc) · 763 Bytes
/
read_binary.h
File metadata and controls
25 lines (21 loc) · 763 Bytes
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
/*
Copyright 2002-2004 John Plevyak, All Rights Reserved
*/
#ifndef _read_binary_H_
#define _read_binary_H_
typedef struct BinaryTablesHead {
int n_relocs;
int n_strings;
int d_parser_tables_loc;
int tables_size;
int strings_size;
} BinaryTablesHead;
typedef struct BinaryTables {
D_ParserTables *parser_tables_gram;
char *tables;
} BinaryTables;
BinaryTables *read_binary_tables(char *file_name, D_ReductionCode spec_code, D_ReductionCode final_code);
BinaryTables *read_binary_tables_from_file(FILE *fp, D_ReductionCode spec_code, D_ReductionCode final_code);
BinaryTables *read_binary_tables_from_string(unsigned char *buf, D_ReductionCode spec_code, D_ReductionCode final_code);
void free_BinaryTables(BinaryTables *binary_tables);
#endif