projects
/
sxemacs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec1c120
)
xstrncpy saga
author
Nelson Ferreira
<nelson.ferreira@ieee.org>
Fri, 2 Mar 2012 21:12:41 +0000
(16:12 -0500)
committer
Nelson Ferreira
<nelson.ferreira@ieee.org>
Fri, 2 Mar 2012 21:12:41 +0000
(16:12 -0500)
* lib-src/etags.c (xstrncpy): cosmetic changes to xstrncpy macro
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
lib-src/etags.c
patch
|
blob
|
history
diff --git
a/lib-src/etags.c
b/lib-src/etags.c
index
15bad19
..
3c787fc
100644
(file)
--- a/
lib-src/etags.c
+++ b/
lib-src/etags.c
@@
-233,7
+233,12
@@
extern int optind, opterr;
#define bool int
-#define xstrncpy(d_,s_,l_) do { char* dst_=d_; dst_[0]='\0'; strncat((dst_),(s_),(l_)-1); } while(0)
+#define xstrncpy(d_,s_,l_) \
+ do { \
+ char* dst_=d_; \
+ dst_[0]='\0'; \
+ strncat((dst_),(s_),(l_)-1); \
+ } while(0)
typedef void Lang_function __P((FILE *));