absyntax/absyntax.cc
changeset 958 7474d2cd1d6e
parent 936 0f7bcc160568
child 965 c9eeb67ba939
--- a/absyntax/absyntax.cc	Sun Nov 30 12:49:42 2014 +0000
+++ b/absyntax/absyntax.cc	Sat Dec 06 19:11:32 2014 +0000
@@ -172,7 +172,16 @@
   /* corrent the new size */
   n--;
   /* elements = (symbol_c **)realloc(elements, n * sizeof(symbol_c *)); */
-}
+  /* TODO: adjust the location parameters, taking into account the removed element. */
+}
+
+
+/* remove element at position pos. */
+void list_c::clear(void) {
+  n = 0;
+  /* TODO: adjust the location parameters, taking into account the removed element. */
+}
+
 
 #define SYM_LIST(class_name_c, ...)								\
 class_name_c::class_name_c(									\