Re: Shall private.h files be excluded when .defs files are created?

On Thu, 2015-07-30 at 10:47 +0200, Kjell Ahlstedt wrote:
There are at least two ways of declaring a function private in glib
and gtk+:
      * The function name begins with an underscore (_).
      * The function is declared in a file whose name ends with

The first set of names are excluded by and never written to
the methods.defs files. The second set of names are included in the
methods.defs files, if the private.h files are input data to 

I suggest that I change the {glibmm|
gtkmm}/tools/gen_scripts/*_generate_{enums|methods}.sh files to
exclude private.h files. It's easy with bash's extended pattern

If private.h files are excluded, they ought to be excluded
consistently every time the .defs files are regenerated, to avoid some
warnings from gmmproc. That will of course be automatic, if those
scripts are always used. gmmproc warns for unnecessary _IGNORE
directives, and what's unnecessary depends on what's in the
methods.defs file.

Sure. That would be helpful. glib and gtk+ seem to be quite consistent
about this now so it seems wise.

Murray Cumming
murrayc murrayc com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]