gengtype-state.c: (s_expr_writer): New class, to handle prettifying of output layout of s-expressions. 2013-05-17 David Malcolm <dmalcolm@redhat.com> * gengtype-state.c: (s_expr_writer): New class, to handle prettifying of output layout of s-expressions. (state_writer): New class, to write out gtype.state. (state_written_type_count): Move this variable into member data of state_writer. (s_expr_writer::s_expr_writer): New code: constructor for new class (state_writer::state_writer(): ditto (s_expr_writer::write_new_line): New function (s_expr_writer::write_any_indent): ditto (s_expr_writer::begin_s_expr): ditto (s_expr_writer::end_s_expr): ditto (write_state_fileloc): convert to method of state_writer... (state_writer:: write_state_fileloc): ...and use methods of s_expr_writer to write indentation into the gtype.state output file to visually represent the hierarchical structure of the list structures (write_state_fields): ditto, renaming to... (state_writer::write_state_fields) (write_state_a_string): ditto, renaming to... (state_writer::write_state_a_string) (write_state_string_option): ditto, renaming to... (state_writer::write_state_string_option) (write_state_type_option): ditto, renaming to... (state_writer::write_state_type_option) (write_state_nested_option): ditto, renaming to... (state_writer::write_state_nested_option) (write_state_option): ditto, renaming to... (state_writer::write_state_option) (write_state_options): ditto, renaming to... (state_writer::write_state_options) (write_state_lang_bitmap): ditto, renaming to... (state_writer::write_state_lang_bitmap) (write_state_version): ditto, renaming to... (state_writer::write_state_version) (write_state_scalar_type): ditto, renaming to... (state_writer::write_state_scalar_type) (write_state_string_type): ditto, renaming to... (state_writer::write_state_string_type) (write_state_undefined_type): ditto, renaming to... (state_writer::write_state_undefined_type) (write_state_struct_union_type): ditto, renaming to... (state_writer::write_state_struct_union_type) (write_state_struct_type): ditto, renaming to... (state_writer::write_state_struct_type) (write_state_user_struct_type): ditto, renaming to... (state_writer::write_state_user_struct_type) (write_state_lang_struct_type): ditto, renaming to... (state_writer::write_state_lang_struct_type) (write_state_param_struct_type): ditto, renaming to... (state_writer::write_state_param_struct_type) (write_state_pointer_type): ditto, renaming to... (state_writer::write_state_pointer_type) (write_state_array_type): ditto, renaming to... (state_writer::write_state_array_type) (write_state_gc_used): ditto, renaming to... (state_writer::write_state_gc_used) (write_state_common_type_content): ditto, renaming to... (state_writer::write_state_common_type_content) (write_state_type): ditto, renaming to... (state_writer::write_state_type) (write_state_pair_list): ditto, renaming to... (state_writer::write_state_pair_list) (write_state_pair): ditto, renaming to... (state_writer::write_state_pair) (write_state_typedefs): ditto, renaming to... (state_writer::write_state_typedefs) (write_state_structures): ditto, renaming to... (state_writer::write_state_structures) (write_state_param_structs): ditto, renaming to... (state_writer::write_state_param_structs) (write_state_variables): ditto, renaming to... (state_writer::write_state_variables) (write_state_srcdir): ditto, renaming to... (state_writer::write_state_srcdir) (write_state_files_list): ditto, renaming to... (state_writer::write_state_files_list) (write_state_languages): ditto, renaming to... (state_writer::write_state_languages) (write_state): create a state_writer instance and use it when writing out the state file From-SVN: r199032
| Name |
Last commit
|
Last update |
|---|---|---|
| INSTALL | Loading commit data... | |
| boehm-gc | Loading commit data... | |
| config | Loading commit data... | |
| contrib | Loading commit data... | |
| fixincludes | Loading commit data... | |
| gcc | Loading commit data... | |
| gnattools | Loading commit data... | |
| include | Loading commit data... | |
| intl | Loading commit data... | |
| libada | Loading commit data... | |
| libatomic | Loading commit data... | |
| libbacktrace | Loading commit data... | |
| libcpp | Loading commit data... | |
| libdecnumber | Loading commit data... | |
| libffi | Loading commit data... | |
| libgcc | Loading commit data... | |
| libgfortran | Loading commit data... | |
| libgo | Loading commit data... | |
| libgomp | Loading commit data... | |
| libiberty | Loading commit data... | |
| libitm | Loading commit data... | |
| libjava | Loading commit data... | |
| libmudflap | Loading commit data... | |
| libobjc | Loading commit data... | |
| libquadmath | Loading commit data... | |
| libsanitizer | Loading commit data... | |
| libssp | Loading commit data... | |
| libstdc++-v3 | Loading commit data... | |
| lto-plugin | Loading commit data... | |
| maintainer-scripts | Loading commit data... | |
| zlib | Loading commit data... | |
| .gitignore | Loading commit data... | |
| ABOUT-NLS | Loading commit data... | |
| COPYING | Loading commit data... | |
| COPYING.LIB | Loading commit data... | |
| COPYING.RUNTIME | Loading commit data... | |
| COPYING3 | Loading commit data... | |
| COPYING3.LIB | Loading commit data... | |
| ChangeLog | Loading commit data... | |
| ChangeLog.tree-ssa | Loading commit data... | |
| MAINTAINERS | Loading commit data... | |
| Makefile.def | Loading commit data... | |
| Makefile.in | Loading commit data... | |
| Makefile.tpl | Loading commit data... | |
| README | Loading commit data... | |
| compile | Loading commit data... | |
| config-ml.in | Loading commit data... | |
| config.guess | Loading commit data... | |
| config.rpath | Loading commit data... | |
| config.sub | Loading commit data... | |
| configure | Loading commit data... | |
| configure.ac | Loading commit data... | |
| depcomp | Loading commit data... | |
| install-sh | Loading commit data... | |
| libtool-ldflags | Loading commit data... | |
| libtool.m4 | Loading commit data... | |
| ltgcc.m4 | Loading commit data... | |
| ltmain.sh | Loading commit data... | |
| ltoptions.m4 | Loading commit data... | |
| ltsugar.m4 | Loading commit data... | |
| ltversion.m4 | Loading commit data... | |
| lt~obsolete.m4 | Loading commit data... | |
| missing | Loading commit data... | |
| mkdep | Loading commit data... | |
| mkinstalldirs | Loading commit data... | |
| move-if-change | Loading commit data... | |
| symlink-tree | Loading commit data... | |
| ylwrap | Loading commit data... |