OSDN Git Service

2010-11-09 Basile Starynkevitch <basile@starynkevitch.net>
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Nov 2010 07:36:26 +0000 (07:36 +0000)
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Nov 2010 07:36:26 +0000 (07:36 +0000)
commitdc8a8bf5106cb622fabe0e9d7eaf226db4672956
tree227ea04b374b375a8cc883b466664412b5110881
parent8900819d8797551bc921b16cf6d5f2020ae2b38c
2010-11-09  Basile Starynkevitch  <basile@starynkevitch.net>
    Jeremie Salvucci  <jeremie.salvucci@free.fr>

* gengtype.c (get_output_file_name): Declaration moved to
gengtype.h.
(plugin_files, get_file_basename, get_file_realbasename)
(get_file_langdir, error_at_line, gt_files, this_file)
(system_h_file, read_input_list, create_field_all)
(get_file_srcdir_relative_path, get_file_basename)
(get_file_langdir, get_file_gtfilename)
(get_output_file_with_visibility, get_output_file_name)
(struct flist, put_mangled_filename, walk_type)
(put_mangled_filename, finish_root_table, write_roots): Use
input_file-s.
(lang_dir_names, num_lang_dirs): Remove static.
(get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
(main): Use input_file-s.

* gengtype.h:
(struct input_file_st, input_file): New type.
(struct fileloc): Use it.
(gt_files, num_gt_files, this_file, system_h_file)
(input_file_by_name, get_file_srcdir_relative_path): Use
input_file.
(get_input_file_name): New function.
(get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
        use input_file.
(lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
(get_output_file_name): Ditto.

* gengtype-lex.l (yybegin): Use input_file.

* gengtype-parse.c (parse_error): Use input_file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166473 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gengtype-lex.l
gcc/gengtype-parse.c
gcc/gengtype.c
gcc/gengtype.h