equal
deleted
inserted
replaced
19 * USA |
19 * USA |
20 */ |
20 */ |
21 |
21 |
22 #include <glib.h> |
22 #include <glib.h> |
23 #include <string.h> |
23 #include <string.h> |
|
24 #include <stdlib.h> |
24 |
25 |
25 #include <mcabber/commands.h> |
26 #include <mcabber/commands.h> |
26 #include <mcabber/compl.h> |
27 #include <mcabber/compl.h> |
27 #include <mcabber/logprint.h> |
28 #include <mcabber/logprint.h> |
28 #include <mcabber/settings.h> |
29 #include <mcabber/settings.h> |
161 res = g_strdup (""); // XXX leave NULL here? |
162 res = g_strdup (""); // XXX leave NULL here? |
162 g_free (l->str_value); |
163 g_free (l->str_value); |
163 l->str_value = res; |
164 l->str_value = res; |
164 } else |
165 } else |
165 return FALSE; |
166 return FALSE; |
|
167 |
|
168 return TRUE; |
166 } |
169 } |
167 |
170 |
168 static gboolean op_tail (value_t *l, value_t *r) |
171 static gboolean op_tail (value_t *l, value_t *r) |
169 { |
172 { |
170 if (l->type == TYPE_UNDEF) { |
173 if (l->type == TYPE_UNDEF) { |
200 res = g_strdup (""); // XXX leave NULL here? |
203 res = g_strdup (""); // XXX leave NULL here? |
201 g_free (l->str_value); |
204 g_free (l->str_value); |
202 l->str_value = res; |
205 l->str_value = res; |
203 } else |
206 } else |
204 return FALSE; |
207 return FALSE; |
|
208 |
|
209 return TRUE; |
205 } |
210 } |
206 |
211 |
207 static gboolean op_plus (value_t *l, value_t *r) |
212 static gboolean op_plus (value_t *l, value_t *r) |
208 { |
213 { |
209 if (l->type == TYPE_UNDEF) { |
214 if (l->type == TYPE_UNDEF) { |
798 destroy_value (val); |
803 destroy_value (val); |
799 } |
804 } |
800 |
805 |
801 static void do_let (char *arg) |
806 static void do_let (char *arg) |
802 { |
807 { |
803 char *varname; |
|
804 value_t *value; |
808 value_t *value; |
805 int namelen; |
809 int namelen; |
806 char *val = strchr (arg, '='); |
810 char *val = strchr (arg, '='); |
807 |
811 |
808 if (!val) { |
812 if (!val) { |