-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstprop.h
More file actions
41 lines (36 loc) · 1.37 KB
/
constprop.h
File metadata and controls
41 lines (36 loc) · 1.37 KB
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
#pragma once
/*
*******************************************************************************************
CONSTPROP.H : DECLARATION OF FUNCTIONS ADDED IN CONSTPROP.C HERE
********************************************************************************************
*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include "Expression.h"
/*
*******************************************************************************************
THIS STRUCTURE CAN BE USED TO STORE THE CONSTANT VALUE AND THE VARIABLE IT IS ASSIGNED TO.
*********************************************************************************************
*/
typedef struct _refConst {
char* name;
long val;
struct _refConst* next;
} refConst;
extern refConst *lastNode, *headNode;
extern bool madeChange;
/*
*******************************************************************************************
FUNCTION DECLARATIONS
********************************************************************************************
*/
void FreeList();
void UpdateConstList(char* name, long val);
void TrackConst(NodeList* funcdecls);
bool ConstProp(NodeList* funcdecls);
/*
******************************************************************************************
ADD DECLARATIONS OF ANY FUNCTIONS YOU ADD BELOW THIS LINE
*******************************************************************************************
*/