blob: d1cda0da18ce8b9449e22d12fe9c43298e7d4d8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "hashtable.h"
#ifndef SCOPE
#define SCOPE
typedef struct Scope {
hashtable_t* hashtable;
struct Scope* parent;
} scope_t;
scope_t* init_scope(scope_t parent);
pair_t* get_pair_global(scope_t* scope, char* key);
pair_t* get_pair_local(scope_t* scope, char* key);
#endif
|