view macro.h @ 17:76da41da923f

added macro table
author David A. Holland
date Mon, 20 Dec 2010 01:15:43 -0500
parents f6177d3ed5c2
children c08a947d8f30
line wrap: on
line source

#include <stdbool.h>
#include <stddef.h>

struct place;

void macros_init(void);
void macros_cleanup(void);

void macro_define(struct place *, const char *macro,
		  struct place *, const char *expansion);
void macro_undef(const char *macro);
bool macro_isdefined(const char *macro);

char *macroexpand(struct place *, char *buf, size_t len, bool honordefined);

void macro_sendline(struct place *, char *buf, size_t len);
void macro_sendeof(struct place *);