gpt4 book ai didi

c - C语言中的声明符说明符是什么?

转载 作者:太空宇宙 更新时间:2023-11-04 01:01:54 25 4
gpt4 key购买 nike

<分区>

C语言中的声明说明符和类型说明符是什么?用户可以定义或创建声明符说明符或类型说明符吗?我正在阅读GCC源代码,如果你能给我一些建议,我将不胜感激!以下来自 GCC/c-tree.h

/* A kind of type specifier.  Note that this information is currently
only used to distinguish tag definitions, tag references and typeof
uses. */
enum c_typespec_kind {
/* No typespec. This appears only in struct c_declspec. */
ctsk_none,
/* A reserved keyword type specifier. */
ctsk_resword,
/* A reference to a tag, previously declared, such as "struct foo".
This includes where the previous declaration was as a different
kind of tag, in which case this is only valid if shadowing that
tag in an inner scope. */
ctsk_tagref,
/* A reference to a tag, not previously declared in a visible
scope. */
ctsk_tagfirstref,
/* A definition of a tag such as "struct foo { int a; }". */
ctsk_tagdef,
/* A typedef name. */
ctsk_typedef,
/* An ObjC-specific kind of type specifier. */
ctsk_objc,
/* A typeof specifier, or _Atomic ( type-name ). */
ctsk_typeof
};

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com