/[emacs]/emacs/lwlib/lwlib.c
ViewVC logotype

Diff of /emacs/lwlib/lwlib.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.43 by monnier, Sat Sep 30 17:03:27 2000 UTC revision 1.44 by rms, Sun Dec 2 04:52:12 2001 UTC
# Line 26  Boston, MA 02111-1307, USA.  */ Line 26  Boston, MA 02111-1307, USA.  */
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>
# Line 33  Boston, MA 02111-1307, USA.  */ Line 35  Boston, MA 02111-1307, USA.  */
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
# Line 237  free_widget_value_tree (wv) Line 237  free_widget_value_tree (wv)
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      {      {
# Line 276  copy_widget_value_tree (val, change) Line 275  copy_widget_value_tree (val, change)
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;
# Line 546  merge_widget_value (val1, val2, level, c Line 545  merge_widget_value (val1, val2, level, c
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      {      {

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26