/*****************************************************************************/
/* */
-/* declattr.c */
+/* declattr.c */
/* */
-/* Declaration attributes */
+/* Declaration attributes */
/* */
/* */
/* */
/*****************************************************************************/
-/* Data */
+/* Data */
/*****************************************************************************/
/* Attribute table */
typedef struct AttrDesc AttrDesc;
struct AttrDesc {
- const char Name[15];
- void (*Handler) (Declaration*);
+ const char Name[15];
+ void (*Handler) (Declaration*);
};
static const AttrDesc AttrTable [] = {
{ "__noreturn__", NoReturnAttr },
/* For now do a linear search */
for (A = 0; A < sizeof (AttrTable) / sizeof (AttrTable[0]); ++A) {
- if (strcmp (Attr, AttrTable[A].Name) == 0) {
- /* Found */
- return AttrTable + A;
- }
+ if (strcmp (Attr, AttrTable[A].Name) == 0) {
+ /* Found */
+ return AttrTable + A;
+ }
}
/* Not found */
{
/* Do we have an attribute? */
if (CurTok.Tok != TOK_ATTRIBUTE) {
- /* No attribute, bail out */
- return;
+ /* No attribute, bail out */
+ return;
}
/* Skip the attribute token */