-
Notifications
You must be signed in to change notification settings - Fork 1
/
general.h
70 lines (54 loc) · 2.64 KB
/
general.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/******************************************************************************
* CVS version:
* $Id: general.h,v 1.1 2004/05/05 22:00:08 nickie Exp $
******************************************************************************
*
* C header file : general.h
* Project : PCL Compiler
* Version : 1.0 alpha
* Written by : Nikolaos S. Papaspyrou ([email protected])
* Date : May 5, 2004
* Description : Generic symbol table in C, general header file
*
* Comments: (in Greek iso-8859-7)
* ---------
* Εθνικό Μετσόβιο Πολυτεχνείο.
* Σχολή Ηλεκτρολόγων Μηχανικών και Μηχανικών Υπολογιστών.
* Τομέας Τεχνολογίας Πληροφορικής και Υπολογιστών.
* Εργαστήριο Τεχνολογίας Λογισμικού
*/
#include <stdio.h>
#ifndef __GENERAL_H__
#define __GENERAL_H__
/* ---------------------------------------------------------------------
* ----------- Πρωτότυπα των συναρτήσεων διαχείρισης μνήμης ------------
* --------------------------------------------------------------------- */
void * new (size_t);
void delete (void *);
/* ---------------------------------------------------------------------
-------------- Καθολικές μεταβλητές του μεταγλωττιστή ---------------
--------------------------------------------------------------------- */
extern int linecount;
extern const char * filename;
/* ---------------------------------------------------------------------
---------------------- General Definitions Guide --------------------
--------------------------------------------------------------------- */
/* ommit definition if compiler is NOT meant to run on a Linux system */
#define LINUX_SYS
/* Library functions definitions */
#define LF_PARAM_NUM_MAX 2
#define LF_INTERNAL_NUM 6
#define LF_CALLABLE_NUM 15
#define LF_NUM (LF_INTERNAL_NUM + LF_CALLABLE_NUM)
/* Other definitions of global interest declared in local files:
* - QUAD_ARRAY_SIZE max number of quads in a function + 1 intermediate.h
* - STRINGS_MAX max number of string literals in a program final.c
* - STRING_LABEL_BUF_SIZE bytes for a string label, limits strings liter final.c
* - LABEL_BUF_SIZE bytes for a label, limits quads and functions final.c
* - SYMBOL_TABLE_SIZE number of buckets of the hash Symbol Table parser.c
*/
/* Definitions/Flags imposed by Makefile:
* - INTERMEDIATE: for intermediate code production only, not final assembly code
* - DEBUG: for printing various progress messages
*/
#endif