aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-09-10 04:31:39 +0000
committerRichard Stallman <rms@gnu.org>1992-09-10 04:31:39 +0000
commitdb69cfcb78fb580a805a52342d30d631fed15e40 (patch)
treec033f75d98350882c4428e5cf41b4ef843bc3ec4 /gcc/c-tree.h
parent16ab04d3556f3895938a83c98dc19581f3179e2f (diff)
downloadgcc-db69cfcb78fb580a805a52342d30d631fed15e40.zip
gcc-db69cfcb78fb580a805a52342d30d631fed15e40.tar.gz
gcc-db69cfcb78fb580a805a52342d30d631fed15e40.tar.bz2
Add comments.
From-SVN: r2094
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 eabb01c..dc70540 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)