[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch
From: |
Karl Berry |
Subject: |
Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch |
Date: |
Wed, 10 Sep 2003 19:01:23 -0400 |
#define XFREE(Var) ((Var) ? (free (Var), NULL) : NULL)
A macro seems better to me too.
If it's needed as a function address for some reason it could be in a
separate file (xfree.c).
I do like the functionality, small though it is, and use it in virtually
every program.
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, (continued)
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Bruno Haible, 2003/09/15
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Paul Eggert, 2003/09/15
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Bruno Haible, 2003/09/15
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Gary V. Vaughan, 2003/09/19
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Paul Eggert, 2003/09/22
Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Gary V . Vaughan, 2003/09/11
Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch,
Karl Berry <=