]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - scripts/genksyms/parse.y
genksyms: Do not expand internal types
[karo-tx-linux.git] / scripts / genksyms / parse.y
index a783ad4e2b51b1b0974e34f78b647db23bd9aa41..23c39998ad864eb328dfaa6c7da6ff9dcc6a10c9 100644 (file)
@@ -58,6 +58,13 @@ static void record_compound(struct string_list **keyw,
                       enum symbol_type type)
 {
        struct string_list *b = *body, *i = *ident, *r;
+
+       if (i->in_source_file) {
+               remove_node(keyw);
+               (*ident)->tag = type;
+               remove_list(body, ident);
+               return;
+       }
        r = copy_node(i); r->tag = type;
        r->next = (*keyw)->next; *body = r; (*keyw)->next = NULL;
        add_symbol(i->string, type, b, is_extern);