diff pwm.h @ 27:722a45b4028b

Add define command for defining macros Macros are parsed when they are defined with the D command and can subsequently be used as arguments for other commands. Handle out of memory errors directly in tok.c.
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Mon, 25 Sep 2017 21:21:25 +0200
parents 1b89066d992c
children e3db02d7f1f4
line wrap: on
line diff
--- a/pwm.h	Thu Sep 21 09:45:59 2017 +0200
+++ b/pwm.h	Mon Sep 25 21:21:25 2017 +0200
@@ -55,6 +55,7 @@
 	int		unsaved_changes;
 	unsigned int	next_id;
 	char		password[PWS3_MAX_PASSWORD_LEN + 1];
+	struct macro_head *macro_head;
 };
 
 void	pwm_err(struct pwm_ctx *, char *, ...);