[140643] trunk/base/src/pextlib1.0/tracelib.c

cal at macports.org cal at macports.org
Mon Sep 28 14:25:15 PDT 2015


Revision: 140643
          https://trac.macports.org/changeset/140643
Author:   cal at macports.org
Date:     2015-09-28 14:25:15 -0700 (Mon, 28 Sep 2015)
Log Message:
-----------
base: tracelib: whitespace only

Let's indent the macro definition of safe_free(x) for easier reading

Modified Paths:
--------------
    trunk/base/src/pextlib1.0/tracelib.c

Modified: trunk/base/src/pextlib1.0/tracelib.c
===================================================================
--- trunk/base/src/pextlib1.0/tracelib.c	2015-09-28 21:24:05 UTC (rev 140642)
+++ trunk/base/src/pextlib1.0/tracelib.c	2015-09-28 21:25:15 UTC (rev 140643)
@@ -939,7 +939,11 @@
 }
 
 static int TracelibCleanCmd(Tcl_Interp *interp UNUSED) {
-#define safe_free(x) do{free(x); x=0;}while(0);
+#define safe_free(x) do{ \
+        free(x); \
+        x = NULL; \
+    } while(0);
+
     if (sock != -1) {
         close(sock);
         sock = -1;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150928/bd48f5d1/attachment.html>


More information about the macports-changes mailing list