My Project
Loading...
Searching...
No Matches
macro.h
Go to the documentation of this file.
1
4#ifndef __MACRO
5#define __MACRO
6
7#define MACRO_DEFINED _("macro already defined")
8typedef struct MacroArg_ *MacroArg;
9typedef struct Macro_ * Macro;
10
11struct MacroArg_ {
12 char * name;
13 GwText text;
16 struct pos_t pos;
17};
18
19MacroArg new_macroarg(MemPool p, const m_str);
20void clean_macroarg(const MacroArg);
21
22struct Macro_ {
23 char * name;
24 GwText * text;
28 m_str file;
29 struct pos_t pos;
30};
31
32void macro_del(const Hash);
33Macro macro_add(const Hash, m_str);
34bool macro_rem(const Hash, m_str);
35Macro macro_has(const Hash, m_str);
36#endif
void macro_del(const Hash)
Macro macro_has(const Hash, m_str)
struct Macro_ * Macro
Definition macro.h:9
MacroArg new_macroarg(MemPool p, const m_str)
Definition macro.c:4
void clean_macroarg(const MacroArg)
Definition macro.c:11
Macro macro_add(const Hash, m_str)
struct MacroArg_ * MacroArg
Definition macro.h:8
bool macro_rem(const Hash, m_str)
MacroArg next
Definition macro.h:14
Macro orig
Definition macro.h:15
struct pos_t pos
Definition macro.h:16
char * name
Definition macro.h:12
GwText text
Definition macro.h:13
Definition macro.h:22
m_str file
Definition macro.h:28
struct pos_t pos
Definition macro.h:29
MacroArg args
Definition macro.h:26
MacroArg base
Definition macro.h:25
Macro next
Definition macro.h:27
GwText * text
Definition macro.h:24
char * name
Definition macro.h:23
Definition gwlog.h:7