Browse code

Void data ptr introduced as select parameter type, to be used e.g. by fixup call

Michal Matyska authored on 20/02/2006 18:59:34
Showing 2 changed files
... ...
@@ -65,7 +65,7 @@ int resolve_select(select_t* s)
65 65
 		case SEL_PARAM_INT:
66 66
 			DBG("resolve_select: [%d]\n", s->params[param_idx].v.i);
67 67
 			break;
68
-		case SEL_PARAM_DIV:
68
+		default:
69 69
 			/* just to avoid the warning */
70 70
 			break;
71 71
 		}
... ...
@@ -99,11 +99,13 @@ typedef enum {
99 99
 	SEL_PARAM_INT,  /* Integer parameter */
100 100
 	SEL_PARAM_STR,  /* String parameter */
101 101
 	SEL_PARAM_DIV,  /* Integer value got from parsing table */
102
+	SEL_PARAM_PTR   /* void* data got from e.g. fixup call */
102 103
 } select_param_type_t;
103 104
 	
104 105
 typedef union {
105 106
 	int i;  /* Integer value */
106 107
 	str s;  /* String value */
108
+	void* p;/* Any data ptr */
107 109
 } select_param_value_t;
108 110
 	
109 111
 typedef struct sel_param {