X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fparser_proc_grammar.y;h=5f78335bfbd781e1fd5ee3a9ac2abf49da8c6d9b;hp=a32600fec0b63f883a304b36fe9d1f9ff4b14bd8;hb=02e801eabbe26a129ea05e6723c94e10bb653dab;hpb=b282753558305fe44bd0d268833e131e5ccf82e8 diff --git a/src/parser_proc_grammar.y b/src/parser_proc_grammar.y index a32600f..5f78335 100644 --- a/src/parser_proc_grammar.y +++ b/src/parser_proc_grammar.y @@ -456,12 +456,8 @@ block: } } | lib { - if (P->file.ln) { - P->error(PSI_DATA(P), $lib, PSI_WARNING, - "Extra 'lib \"%s\"' statement has no effect", $lib->text); - } else { - P->file.ln = strndup($lib->text, $lib->size); - } + char *libname = strdup($lib->text); + P->file.libnames = psi_plist_add(P->file.libnames, &libname); } | constant { psi_parser_proc_add_const(P, $constant);