diff options
| author | Jim Meyering | 2008-06-02 06:02:30 +0000 |
|---|---|---|
| committer | Jim Meyering | 2008-06-02 06:02:30 +0000 |
| commit | 5c19cd0bbb8f3b8142c0b8f90eebdd84b7a3eb29 (patch) | |
| tree | c8422462edc56d3d24568c24405cecb8ea50166b /lib-src | |
| parent | c2cd06e61e6f21eeb1077b557a22cc5aaf795676 (diff) | |
| download | emacs-5c19cd0bbb8f3b8142c0b8f90eebdd84b7a3eb29.tar.gz emacs-5c19cd0bbb8f3b8142c0b8f90eebdd84b7a3eb29.zip | |
* lib-src/ebrowse.c (xfree): Remove definition; s/xfree/free/
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 2 | ||||
| -rw-r--r-- | lib-src/ebrowse.c | 24 |
2 files changed, 9 insertions, 17 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 433df1698b5..95d06f5dfc1 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2008-06-02 Jim Meyering <meyering@redhat.com> | 1 | 2008-06-02 Jim Meyering <meyering@redhat.com> |
| 2 | 2 | ||
| 3 | * lib-src/ebrowse.c (xfree): Remove definition; s/xfree/free/ | ||
| 4 | |||
| 3 | remove useless if-before-free tests | 5 | remove useless if-before-free tests |
| 4 | * lib-src/ebrowse.c (xfree): Likewise. | 6 | * lib-src/ebrowse.c (xfree): Likewise. |
| 5 | * lib-src/etags.c (process_file_name, free_tree, free_fdesc): Likewise. | 7 | * lib-src/etags.c (process_file_name, free_tree, free_fdesc): Likewise. |
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index faa5be0e5d6..720e02081c5 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c | |||
| @@ -589,16 +589,6 @@ xrealloc (p, sz) | |||
| 589 | } | 589 | } |
| 590 | 590 | ||
| 591 | 591 | ||
| 592 | /* Like free but always check for null pointers.. */ | ||
| 593 | |||
| 594 | void | ||
| 595 | xfree (p) | ||
| 596 | void *p; | ||
| 597 | { | ||
| 598 | free (p); | ||
| 599 | } | ||
| 600 | |||
| 601 | |||
| 602 | /* Like strdup, but print an error and exit if not enough memory is | 592 | /* Like strdup, but print an error and exit if not enough memory is |
| 603 | available.. If S is null, return null. */ | 593 | available.. If S is null, return null. */ |
| 604 | 594 | ||
| @@ -2758,7 +2748,7 @@ member (cls, vis) | |||
| 2758 | if (LOOKING_AT ('{') && id && cls) | 2748 | if (LOOKING_AT ('{') && id && cls) |
| 2759 | add_member_defn (cls, id, regexp, pos, hash, 0, sc, flags); | 2749 | add_member_defn (cls, id, regexp, pos, hash, 0, sc, flags); |
| 2760 | 2750 | ||
| 2761 | xfree (id); | 2751 | free (id); |
| 2762 | id = NULL; | 2752 | id = NULL; |
| 2763 | sc = SC_MEMBER; | 2753 | sc = SC_MEMBER; |
| 2764 | break; | 2754 | break; |
| @@ -2837,7 +2827,7 @@ member (cls, vis) | |||
| 2837 | print_info (); | 2827 | print_info (); |
| 2838 | } | 2828 | } |
| 2839 | 2829 | ||
| 2840 | xfree (id); | 2830 | free (id); |
| 2841 | } | 2831 | } |
| 2842 | 2832 | ||
| 2843 | 2833 | ||
| @@ -3074,7 +3064,7 @@ parse_qualified_ident_or_type (last_id) | |||
| 3074 | cls = add_sym (id, cls); | 3064 | cls = add_sym (id, cls); |
| 3075 | 3065 | ||
| 3076 | *last_id = NULL; | 3066 | *last_id = NULL; |
| 3077 | xfree (id); | 3067 | free (id); |
| 3078 | id = NULL; | 3068 | id = NULL; |
| 3079 | id_size = 0; | 3069 | id_size = 0; |
| 3080 | MATCH (); | 3070 | MATCH (); |
| @@ -3277,7 +3267,7 @@ add_declarator (cls, id, flags, sc) | |||
| 3277 | print_info (); | 3267 | print_info (); |
| 3278 | } | 3268 | } |
| 3279 | 3269 | ||
| 3280 | xfree (*id); | 3270 | free (*id); |
| 3281 | *id = NULL; | 3271 | *id = NULL; |
| 3282 | *cls = NULL; | 3272 | *cls = NULL; |
| 3283 | } | 3273 | } |
| @@ -3330,7 +3320,7 @@ declaration (flags) | |||
| 3330 | `declare (X, Y)\n class A : ...'. */ | 3320 | `declare (X, Y)\n class A : ...'. */ |
| 3331 | if (id) | 3321 | if (id) |
| 3332 | { | 3322 | { |
| 3333 | xfree (id); | 3323 | free (id); |
| 3334 | return; | 3324 | return; |
| 3335 | } | 3325 | } |
| 3336 | 3326 | ||
| @@ -3424,7 +3414,7 @@ declaration (flags) | |||
| 3424 | if (!cls && id && LOOKING_AT ('{')) | 3414 | if (!cls && id && LOOKING_AT ('{')) |
| 3425 | add_global_defn (id, regexp, pos, hash, 0, sc, flags); | 3415 | add_global_defn (id, regexp, pos, hash, 0, sc, flags); |
| 3426 | 3416 | ||
| 3427 | xfree (id); | 3417 | free (id); |
| 3428 | id = NULL; | 3418 | id = NULL; |
| 3429 | break; | 3419 | break; |
| 3430 | } | 3420 | } |
| @@ -3480,7 +3470,7 @@ globals (start_flags) | |||
| 3480 | MATCH_IF ('}'); | 3470 | MATCH_IF ('}'); |
| 3481 | } | 3471 | } |
| 3482 | 3472 | ||
| 3483 | xfree (namespace_name); | 3473 | free (namespace_name); |
| 3484 | } | 3474 | } |
| 3485 | } | 3475 | } |
| 3486 | break; | 3476 | break; |