[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (a759c4a8360a686f7f415ef28f42c3d0d3296b64)



The branch, master has been updated
       via  a759c4a8360a686f7f415ef28f42c3d0d3296b64 (commit)
      from  7595662eae5a005024d17c09b713736c6c98314f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/action.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


=================
 Commit Messages
=================

commit a759c4a8360a686f7f415ef28f42c3d0d3296b64
Author: Martin Kupec <martin.kupec@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    action.c: Change macro ARG, to return NULL instead of 0
    
    When the argument number requested does not exist, return NULL, not 0,
    as this is more in keeping with the type (char *) normally returned.
    
    Commit message modified by Peter Clifton <pcjc2@xxxxxxxxx>

:100644 100644 e3576bf... ba1fbed... M	src/action.c

=========
 Changes
=========

commit a759c4a8360a686f7f415ef28f42c3d0d3296b64
Author: Martin Kupec <martin.kupec@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    action.c: Change macro ARG, to return NULL instead of 0
    
    When the argument number requested does not exist, return NULL, not 0,
    as this is more in keeping with the type (char *) normally returned.
    
    Commit message modified by Peter Clifton <pcjc2@xxxxxxxxx>

diff --git a/src/action.c b/src/action.c
index e3576bf..ba1fbed 100644
--- a/src/action.c
+++ b/src/action.c
@@ -462,7 +462,7 @@ extern int stroke_trans (char *s);
 #endif
 static void ChangeFlag (char *, char *, int, char *);
 
-#define ARG(n) (argc > (n) ? argv[n] : 0)
+#define ARG(n) (argc > (n) ? argv[n] : NULL)
 
 #ifdef HAVE_LIBSTROKE
 
@@ -5429,7 +5429,7 @@ ActionSelect (int argc, char **argv, int x, int y)
 	      {
 		if (SelectObjectByName (type, pattern, true))
 		  SetChangedFlag (true);
-		if (ARG (1) == 0)
+		if (ARG (1) == NULL)
 		  free (pattern);
 	      }
 	    break;
@@ -5612,7 +5612,7 @@ ActionUnselect (int argc, char **argv, int x, int y)
 	      {
 		if (SelectObjectByName (type, pattern, false))
 		  SetChangedFlag (true);
-		if (ARG (1) == 0)
+		if (ARG (1) == NULL)
 		  free (pattern);
 	      }
 	    break;




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs