26 |
#include <config.h> |
#include <config.h> |
27 |
#endif |
#endif |
28 |
|
|
29 |
|
#include "../src/lisp.h" |
30 |
|
|
31 |
#include <sys/types.h> |
#include <sys/types.h> |
32 |
#include <stdio.h> |
#include <stdio.h> |
33 |
#include <ctype.h> |
#include <ctype.h> |
35 |
#include "lwlib-utils.h" |
#include "lwlib-utils.h" |
36 |
#include <X11/StringDefs.h> |
#include <X11/StringDefs.h> |
37 |
|
|
|
extern long *xmalloc(); |
|
|
|
|
38 |
#if defined (USE_LUCID) |
#if defined (USE_LUCID) |
39 |
#include "lwlib-Xlw.h" |
#include "lwlib-Xlw.h" |
40 |
#endif |
#endif |
237 |
if (wv->name) free (wv->name); |
if (wv->name) free (wv->name); |
238 |
if (wv->value) free (wv->value); |
if (wv->value) free (wv->value); |
239 |
if (wv->key) free (wv->key); |
if (wv->key) free (wv->key); |
|
if (wv->help) free (wv->help); |
|
240 |
|
|
241 |
wv->name = wv->value = wv->key = wv->help = (char *) 0xDEADBEEF; |
wv->name = wv->value = wv->key = (char *) 0xDEADBEEF; |
242 |
|
|
243 |
if (wv->toolkit_data && wv->free_toolkit_data) |
if (wv->toolkit_data && wv->free_toolkit_data) |
244 |
{ |
{ |
275 |
copy->name = safe_strdup (val->name); |
copy->name = safe_strdup (val->name); |
276 |
copy->value = safe_strdup (val->value); |
copy->value = safe_strdup (val->value); |
277 |
copy->key = safe_strdup (val->key); |
copy->key = safe_strdup (val->key); |
278 |
copy->help = safe_strdup (val->help); |
copy->help = val->help; |
279 |
copy->enabled = val->enabled; |
copy->enabled = val->enabled; |
280 |
copy->button_type = val->button_type; |
copy->button_type = val->button_type; |
281 |
copy->selected = val->selected; |
copy->selected = val->selected; |
545 |
safe_free_str (val1->key); |
safe_free_str (val1->key); |
546 |
val1->key = safe_strdup (val2->key); |
val1->key = safe_strdup (val2->key); |
547 |
} |
} |
548 |
if (safe_strcmp (val1->help, val2->help)) |
if (! EQ (val1->help, val2->help)) |
549 |
{ |
{ |
550 |
EXPLAIN (val1->name, change, VISIBLE_CHANGE, "help change", |
EXPLAIN (val1->name, change, VISIBLE_CHANGE, "help change", |
551 |
val1->help, val2->help); |
val1->help, val2->help); |
552 |
change = max (change, VISIBLE_CHANGE); |
change = max (change, VISIBLE_CHANGE); |
553 |
safe_free_str (val1->help); |
val1->help = val2->help; |
|
val1->help = safe_strdup (val2->help); |
|
554 |
} |
} |
555 |
if (val1->enabled != val2->enabled) |
if (val1->enabled != val2->enabled) |
556 |
{ |
{ |