GCC Wikia
Advertisement

このページを編集する際は,編集に関する方針に従ってください.[]

概要[]

コメント

948 /* Parse a translation unit (C90 6.7, C99 6.9).
949 
950    translation-unit:
951      external-declarations
952 
953    external-declarations:
954      external-declaration
955      external-declarations external-declaration
956 
957    GNU extensions:
958 
959    translation-unit:
960      empty
961 */

引数[]

実装[]

963 static void
964 c_parser_translation_unit (c_parser *parser)
965 {
966   if (c_parser_next_token_is (parser, CPP_EOF))
967     {
968       if (pedantic)
969         pedwarn ("ISO C forbids an empty source file");
970     }
971   else
972     {
973       void *obstack_position = obstack_alloc (&parser_obstack, 0);
974       do
975         {
976           ggc_collect ();
977           c_parser_external_declaration (parser);
978           obstack_free (&parser_obstack, obstack_position);
979         }
980       while (c_parser_next_token_is_not (parser, CPP_EOF));
981     }
982 }



リンク元

Advertisement