}
void
-command_evaluate_to_void(struct attr *attr, char *expr, int **error)
+command_evaluate_to_void(struct attr *attr, char *expr, int *error)
{
struct result res;
struct context ctx;
if (!ctx.error)
resolve(&ctx, &res, NULL);
if (error)
- *error=&ctx.error;
+ *error=ctx.error;
}
char *
-command_evaluate_to_string(struct attr *attr, char *expr, int **error)
+command_evaluate_to_string(struct attr *attr, char *expr, int *error)
{
struct result res;
struct context ctx;
if (!ctx.error)
ret=get_string(&ctx, &res);
if (error)
- *error=&ctx.error;
+ *error=ctx.error;
if (ctx.error)
return NULL;
else
}
int
-command_evaluate_to_int(struct attr *attr, char *expr, int **error)
+command_evaluate_to_int(struct attr *attr, char *expr, int *error)
{
struct result res;
struct context ctx;
if (!ctx.error)
ret=get_int(&ctx, &res);
if (error)
- *error=&ctx.error;
+ *error=ctx.error;
if (ctx.error)
return 0;
else
}
int
-command_evaluate_to_boolean(struct attr *attr, char *expr, int **error)
+command_evaluate_to_boolean(struct attr *attr, char *expr, int *error)
{
struct result res;
struct context ctx;
ret=res.attr.u.data != NULL;
}
if (error)
- *error=&ctx.error;
+ *error=ctx.error;
if (ctx.error)
return 0;
else
struct command_saved;
struct command_table;
struct navit;
-void command_evaluate_to_void(struct attr *attr, char *expr, int **error);
-char *command_evaluate_to_string(struct attr *attr, char *expr, int **error);
-int command_evaluate_to_int(struct attr *attr, char *expr, int **error);
-int command_evaluate_to_boolean(struct attr *attr, char *expr, int **error);
+void command_evaluate_to_void(struct attr *attr, char *expr, int *error);
+char *command_evaluate_to_string(struct attr *attr, char *expr, int *error);
+int command_evaluate_to_int(struct attr *attr, char *expr, int *error);
+int command_evaluate_to_boolean(struct attr *attr, char *expr, int *error);
void command_evaluate(struct attr *attr, char *expr);
void command_add_table_attr(struct command_table *table, int count, void *data, struct attr *attr);
void command_add_table(struct callback_list *cbl, struct command_table *table, int count, void *data);