Parent Directory | Revision Log | Patch
revision 1.6 by shigio, Fri Aug 6 02:10:13 2004 UTC | revision 1.7 by shigio, Mon Apr 4 01:05:08 2005 UTC | |
---|---|---|
# | Line 39 struct anchor { | Line 39 struct anchor { |
39 | }; | }; |
40 | ||
41 | #define gettag(a) (a->tag[0] ? a->tag : a->reserve) | #define gettag(a) (a->tag[0] ? a->tag : a->reserve) |
42 | #define settag(a, tag) do { \ | #define settag(a, b) do { \ |
43 | char *tag = b; \ | |
44 | (a)->length = strlen(tag); \ | (a)->length = strlen(tag); \ |
45 | if ((a)->length < ANCHOR_NAMELEN) { \ | if ((a)->length < ANCHOR_NAMELEN) { \ |
46 | strlimcpy((a)->tag, tag, sizeof((a)->tag)); \ | strlimcpy((a)->tag, tag, sizeof((a)->tag)); \ |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |