dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
90641a3
)
Protection of value in macro.
author
Peter Verthez
<Peter.Verthez@advalvas.be>
Sun, 26 Jan 2003 18:06:59 +0000
(18:06 +0000)
committer
Peter Verthez
<Peter.Verthez@advalvas.be>
Sun, 26 Jan 2003 18:06:59 +0000
(18:06 +0000)
include/gedcom.h.in
patch
|
blob
|
history
diff --git
a/include/gedcom.h.in
b/include/gedcom.h.in
index 8129975e38fce31ee121a57f45c608be419f97bb..6219def3d443e07562e74ad88d08c0800a8d2fc4 100644
(file)
--- a/
include/gedcom.h.in
+++ b/
include/gedcom.h.in
@@
-435,12
+435,12
@@
extern struct age_value def_age_val;
extern struct xref_value def_xref_val;
#define GV_CHECK_CAST(VAL, TYPE, MEMBER, DEFVAL) \
extern struct xref_value def_xref_val;
#define GV_CHECK_CAST(VAL, TYPE, MEMBER, DEFVAL) \
- ((
VAL->type == TYPE) ?
\
-
VAL->value.MEMBER :
\
- (gedcom_cast_error(__FILE__,__LINE__, TYPE,
VAL
->type), DEFVAL))
+ ((
(VAL)->type == TYPE) ?
\
+
(VAL)->value.MEMBER :
\
+ (gedcom_cast_error(__FILE__,__LINE__, TYPE,
(VAL)
->type), DEFVAL))
#define GV_IS_TYPE(VAL, TYPE) \
#define GV_IS_TYPE(VAL, TYPE) \
- (
VAL
->type == TYPE)
+ (
(VAL)
->type == TYPE)
/**************************************************************************/
/*** Function interface ***/
/**************************************************************************/
/*** Function interface ***/