changeset 119:af8d59c76155

preprocess: Add declaration of main preprocessing function
author Lewin Bormann <lbo@spheniscida.de>
date Sat, 31 Aug 2019 21:32:01 +0200
parents da9989546b1b
children 6dfb1988cc70
files src/preprocess.c src/preprocess.h
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/preprocess.c	Sat Aug 31 21:30:48 2019 +0200
+++ b/src/preprocess.c	Sat Aug 31 21:32:01 2019 +0200
@@ -3,6 +3,10 @@
 #include <src/built-ins.h>
 #include <src/value.h>
 
+void ypreprocess(yexpr_t* expr) {
+    assert(false /* not yet implemented */);
+}
+
 void ypreprocess_resolve_builtins(yexpr_t* expr) {
     switch (expr->typ) {
         case YEXPR_NUMBER:
--- a/src/preprocess.h	Sat Aug 31 21:30:48 2019 +0200
+++ b/src/preprocess.h	Sat Aug 31 21:32:01 2019 +0200
@@ -11,6 +11,11 @@
  */
 
 /**
+ * @brief Apply preprocessing stages, listed as individual functions below.
+ */
+void ypreprocess(yexpr_t* expr);
+
+/**
  * @brief Replace IDs that reference a built-in by built-in expressions.
  */
 void ypreprocess_resolve_builtins(yexpr_t* expr);