Lines Matching refs:scanner
552 parse_line (GScanner *scanner,
556 if (g_scanner_get_next_token (scanner) != G_TOKEN_IDENTIFIER)
558 sig->rarg = new_out_arg (scanner->value.v_identifier);
561 sig->ploc = g_strdup_printf ("%s:%u", scanner->input_name, scanner->line);
564 if (g_scanner_get_next_token (scanner) != ':')
568 if (g_scanner_get_next_token (scanner) != G_TOKEN_IDENTIFIER)
570 sig->args = g_list_append (sig->args, new_in_arg (scanner->value.v_identifier));
573 while (g_scanner_peek_next_token (scanner) == ',')
576 g_scanner_get_next_token (scanner);
579 if (g_scanner_get_next_token (scanner) != G_TOKEN_IDENTIFIER)
581 sig->args = g_list_append (sig->args, new_in_arg (scanner->value.v_identifier));
585 if (g_scanner_get_next_token (scanner) != '\n')
609 GScanner *scanner;
625 scanner = g_scanner_new (&scanner_config_template);
677 scanner->input_name = file;
680 g_scanner_input_file (scanner, fd);
689 switch (g_scanner_peek_next_token (scanner))
693 g_scanner_get_next_token (scanner);
704 expected_token = parse_line (scanner, &signature);
730 g_scanner_unexp_token (scanner, expected_token, "type name", NULL, NULL, NULL, TRUE);
735 g_scanner_peek_next_token (scanner);
737 while (scanner->next_token != G_TOKEN_EOF);
754 g_scanner_destroy (scanner);