Dmitry V. Levin
a8fce09e34
We used to declare and define all printers marked with MPERS_PRINTER_DECL, including ifdef'ed ones. That approach left us no way to conditionally compile mpersified printers, which was not a problem until btrfs ioctls appeared on the horizon. With this change, those mpersified printers that are not going to be compiled are also won't be declared and won't be added to struct_printers. This is implemented by filtering all source files containing MPERS_PRINTER_DECL markers through CPP. As a nice side effect, this also lifts an ugly requirement of writing all MPERS_PRINTER_DECL declarations in a single line. * README-mpers: Update description of MPERS_PRINTER_DECL syntax. * defs.h [IN_MPERS_BOOTSTRAP] (MPERS_PRINTER_DECL): Turn into a recursive variadic macro. [!IN_MPERS_BOOTSTRAP] (MPERS_PRINTER_DECL): Turn into a variadic macro. All callers changed. * Makefile.am (mpers_preproc_files, mpers_printer_decl_pattern): New variables. (CLEANFILES): Add $(mpers_preproc_files). (%.c.mpers.i): New rule. (printers.h, %_printer_decls.h, %_printer_defs.h): Use mpers_preproc_files instead of srcdir_mpers_source_files, use mpers_printer_decl_pattern. * .gitignore: Add /*.mpers.i.
71 lines
766 B
Plaintext
71 lines
766 B
Plaintext
*~
|
|
*.o
|
|
.deps
|
|
.libs
|
|
.version
|
|
.*.swp
|
|
*.gcda
|
|
*.gcno
|
|
*.gdb
|
|
core
|
|
.gdbinit
|
|
.gdb_history
|
|
|
|
/ChangeLog
|
|
/CREDITS
|
|
|
|
Makefile
|
|
Makefile.in
|
|
|
|
/aclocal.m4
|
|
/autom4te.cache
|
|
/compile
|
|
/config.guess
|
|
/config.h
|
|
/config.h.in
|
|
/config.log
|
|
/config.status
|
|
/config.sub
|
|
/configure
|
|
/depcomp
|
|
/install-sh
|
|
/missing
|
|
/stamp-h1
|
|
|
|
/*.gdb
|
|
/strace
|
|
/test-driver
|
|
|
|
/ioctlent[012].h
|
|
/ioctls_all[012].h
|
|
/ioctlsort[012]
|
|
|
|
/sen.h
|
|
/sys_func.h
|
|
|
|
/strace-*.tar.xz
|
|
|
|
/tests-m32
|
|
/tests-mx32
|
|
|
|
/libmpers-m32.a
|
|
/libmpers-mx32.a
|
|
/m32_funcs.h
|
|
/m32_printer_decls.h
|
|
/m32_printer_defs.h
|
|
/m32_type_defs.h
|
|
/mpers-m32
|
|
/mpers-m32.stamp
|
|
/mpers-mx32
|
|
/mpers-mx32.stamp
|
|
/mpers.am
|
|
/mpers_xlat.h
|
|
/mx32_funcs.h
|
|
/mx32_printer_decls.h
|
|
/mx32_printer_defs.h
|
|
/mx32_type_defs.h
|
|
/native_printer_decls.h
|
|
/native_printer_defs.h
|
|
/printers.h
|
|
/*.mpers.i
|