[Gimp-developer] Re: Re: gimptool.c

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

 



Guillermo S. Romero / Familia Romero writes:
 > Another possible FIXME: does GTK provide a define or something for dir
 > separator? It will clean the code a bit.

Yes, GLib has G_DIR_SEPARATOR (and G_SEARCHPATH_SEPARATOR). But I
don't think a something like gimptool --cflags should blindly output
the native Windows backslash separators. The reason is that one might
have a Makefile containing something like:

CFLAGS = `gimptool --cflags`

And if that Makefile is interpreted by a Unixish make (like GNU Make),
the backslashes get eaten... Windows compilers and tools also accept
the (forward) slash character as dir separator in -I and similar
options, so it's better to use that (in this context).

OTOH, when invoked in the --install-* or --uninstall-* modes, the
gimptool program runs copy or delete commands with system(). Those
commands (actually built-ins in the command interpreter) don't accept
(forward) slashes, so in that case gimptool does need to output the
actual backslashes.

Yes, this is all rather silly, and probably a bit scary to the
majority of the readeers on this list...

--tml



[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux