summaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-09-10 04:31:39 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-09-10 04:31:39 +0000
commit8a135163117168bbc20a1dc9fe390c209bea4fe2 (patch)
treec033f75d98350882c4428e5cf41b4ef843bc3ec4 /gcc/c-tree.h
parentfe3b7ffb2afca13ae1f3e3f0608f0c30ed9d1f85 (diff)
downloadgcc-8a135163117168bbc20a1dc9fe390c209bea4fe2.tar.gz
Add comments.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2094 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index eabb01c31fd..dc70540a1ab 100644
--- a/gcc/c-tree.h
+++ b/gcc/c-tree.h
@@ -27,19 +27,30 @@ struct lang_identifier
};
/* Macros for access to language-specific slots in an identifier. */
+/* Each of these slots contains a DECL node or null. */
+/* This represents the value which the identifier has in the
+ file-scope namespace. */
#define IDENTIFIER_GLOBAL_VALUE(NODE) \
(((struct lang_identifier *)(NODE))->global_value)
+/* This represents the value which the identifier has in the current
+ scope. */
#define IDENTIFIER_LOCAL_VALUE(NODE) \
(((struct lang_identifier *)(NODE))->local_value)
+/* This represents the value which the identifier has as a label in
+ the current label scope. */
#define IDENTIFIER_LABEL_VALUE(NODE) \
(((struct lang_identifier *)(NODE))->label_value)
-/* IDENTIFIER_LIMBO_VALUE records the extern decl of this identifier,
- if it has had one. */
+/* This records the extern decl of this identifier, if it has had one
+ at any point in this compilation. */
#define IDENTIFIER_LIMBO_VALUE(NODE) \
(((struct lang_identifier *)(NODE))->limbo_value)
+/* This records the implicit function decl of this identifier, if it
+ has had one at any point in this compilation. */
#define IDENTIFIER_IMPLICIT_DECL(NODE) \
(((struct lang_identifier *)(NODE))->implicit_decl)
+/* This is the last function in which we printed an "undefined variable"
+ message for this identifier. Value is a FUNCTION_DECL or null. */
#define IDENTIFIER_ERROR_LOCUS(NODE) \
(((struct lang_identifier *)(NODE))->error_locus)