absyntax_utils/function_param_iterator.hh
changeset 625 c0bda77b37a0
parent 448 1bd18fc06911
child 662 b1b11dd09a54
--- a/absyntax_utils/function_param_iterator.hh	Tue Aug 14 19:40:01 2012 +0200
+++ b/absyntax_utils/function_param_iterator.hh	Wed Aug 22 16:46:17 2012 +0200
@@ -105,7 +105,10 @@
      */
     typedef enum {iterate_op, search_op} operation_t;
     operation_t current_operation;
-
+    
+    /* the last parameter/value returned by search() or next() */
+    symbol_c *last_returned_parameter; 
+    
   private:
     int   cmp_extparam_names(const char* s1, const char* s2);
     void* handle_param_list(list_c *list);
@@ -143,6 +146,7 @@
      * of the found parameter.
      */
     identifier_c *search(symbol_c *param_name);
+    identifier_c *search(const char *param_name);
 
     /* Returns the currently referenced parameter's default value,
      * or NULL if none is specified in the function declrataion itself.