projects
/
bison.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
m4: style changes in error messages
[bison.git]
/
src
/
scan-code.h
diff --git
a/src/scan-code.h
b/src/scan-code.h
index ec5579f3aeaba6b7d4637ebbab2870513a63a31f..d5a15c1a1ca2e2007f315a12960b5e23d7f31705 100644
(file)
--- a/
src/scan-code.h
+++ b/
src/scan-code.h
@@
-1,6
+1,6
@@
/* Bison code properties structure and scanner.
/* Bison code properties structure and scanner.
- Copyright (C) 2006-2007, 2009-201
2
Free Software Foundation, Inc.
+ Copyright (C) 2006-2007, 2009-201
3
Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
This file is part of Bison, the GNU Compiler Compiler.
@@
-45,7
+45,10
@@
typedef struct code_props {
CODE_PROPS_SYMBOL_ACTION, CODE_PROPS_RULE_ACTION
} kind;
CODE_PROPS_SYMBOL_ACTION, CODE_PROPS_RULE_ACTION
} kind;
- /** \c NULL iff \c code_props::kind is \c CODE_PROPS_NONE. */
+ /**
+ * \c NULL iff \c code_props::kind is \c CODE_PROPS_NONE.
+ * Memory is allocated in an obstack freed elsewhere.
+ */
char const *code;
/** Undefined iff \c code_props::code is \c NULL. */
location location;
char const *code;
/** Undefined iff \c code_props::code is \c NULL. */
location location;
@@
-90,7
+93,7
@@
typedef struct code_props {
void code_props_none_init (code_props *self);
/** Equivalent to \c code_props_none_init. */
void code_props_none_init (code_props *self);
/** Equivalent to \c code_props_none_init. */
-#
define CODE_PROPS_NONE_INIT
\
+#
define CODE_PROPS_NONE_INIT
\
{ \
/* .kind = */ CODE_PROPS_NONE, \
/* .code = */ NULL, \
{ \
/* .kind = */ CODE_PROPS_NONE, \
/* .code = */ NULL, \
@@
-103,7
+106,7
@@
void code_props_none_init (code_props *self);
}
/** Initialized by \c CODE_PROPS_NONE_INIT with no further modification. */
}
/** Initialized by \c CODE_PROPS_NONE_INIT with no further modification. */
-extern code_props co
nst co
de_props_none;
+extern code_props code_props_none;
/**
* \pre
/**
* \pre