Abdelrazak Younes <[EMAIL PROTECTED]> writes:
> ...

Angus> It would be a useful exercise to create a list
Angus> of all the #defines that are actually used by LyX
Angus> (and Boost which #includes our config.h ...) and
Angus> see how to test for these things and generate a config.h
Angus> using the Scons add-ons that Bo mentioned.

Abdel> Here is it (it was tedious...):

Well done!

Abdel> Not used anywhere:
 
> #define HAVE_ASPELL_H 1

I think that this is a side effect of the configure code that decides which
spell checking engine to use.

> #define HAVE_ICONV 1

I think that this is a side effect of the configure code that decides whether to
use the gettext bundled with LyX.

Abdel> #define HAVE_CLOSE 1
Abdel> #define HAVE_GETPID 1
Abdel> #define HAVE_MKDIR 1
Abdel> #define HAVE_MKTEMP 1
Abdel> #define HAVE_OPEN 1
Abdel> #define HAVE_PCLOSE 1
Abdel> #define HAVE_POPEN 1
Abdel> #define HAVE__POPEN 1
Abdel> #define HAVE__CLOSE 1
Abdel> #define HAVE__GETPID 1
Abdel> #define HAVE__MKDIR 1
Abdel> #define HAVE__OPEN 1
Abdel> #define HAVE__PCLOSE 1
Abdel> #define HAVE__POPEN 1

Really? They were at some point. Microsoft's equivalent of these POSIX function
(used by MSVS) have an underscore in front of their names.

Abdel> #define HAVE_PUTENV 1

Really? Not in src/support/Environment.C ?

Abdel> #define PACKAGE_NAME "LyX"
Abdel> #define PACKAGE_STRING "LyX 1.5.0svn"
Abdel> #define USE_WINDOWS_PACKAGING 1

You didn't include src/support/package.C.in in your investigation.

Abdel> #define gid_t int
Abdel> #define uid_t int
Abdel> int mkstemp(char*);

These were needed by MSVS, if memory serves.

I can't comment on the others but some are undoubtedly redundant.

Angus


Reply via email to