Browse code

core: added mod fix helper fixup_pvar_none(...)

- first parameter is PV and the rest are not fixed up

Daniel-Constantin Mierla authored on 06/10/2012 07:38:57
Showing 2 changed files
... ...
@@ -342,6 +342,23 @@ int fixup_free_pvar_null(void** param, int param_no)
342 342
 	return fixup_free_pvar_all(param, param_no);
343 343
 }
344 344
 
345
+int fixup_pvar_none(void** param, int param_no)
346
+{
347
+	if (param_no == 1)
348
+		return fixup_pvar_all(param, param_no);
349
+	return 0;
350
+}
351
+
352
+
353
+
354
+int fixup_free_pvar_none(void** param, int param_no)
355
+{
356
+	if (param_no == 1)
357
+		return fixup_free_pvar_all(param, param_no);
358
+	return 0;
359
+}
360
+
361
+
345 362
 /* must be written "by hand", see above (fixup_pvar_pvar).
346 363
 FIXUP_F2T(pvar_str, 1, 2, 1, FPARAM_PVS, FPARAM_STR)
347 364
 FIXUP_F2T(pvar_str_str, 1, 3, 1, FPARAM_PVS, FPARAM_STR)
... ...
@@ -96,6 +96,9 @@ int fixup_regexpNL_none(void** param, int param_no);
96 96
 int fixup_pvar_null(void **param, int param_no);
97 97
 int fixup_free_pvar_null(void** param, int param_no);
98 98
 
99
+int fixup_pvar_none(void** param, int param_no);
100
+int fixup_free_pvar_none(void** param, int param_no);
101
+
99 102
 int fixup_pvar_pvar(void **param, int param_no);
100 103
 int fixup_free_pvar_pvar(void** param, int param_no);
101 104