Bug 55324 - Too many preprocessors (cpp)
Summary: Too many preprocessors (cpp)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Libreoffice (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: EasyHack DifficultyBeginner SkillScri...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-25 15:50 UTC by Michael Stahl
Modified: 2013-10-04 18:48 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Michael Stahl 2012-09-25 15:50:29 UTC
during the build too many weird C preprocessors (cpp) are built;
it would be good to consolidate that down to one.

the UNO IDL compiler is shipped with the SDK and currently
uses "ucpp" preprocessor, so we cannot get rid of that one.

others such as the "cpp.lcc" built in soltools could probably be
replaced with ucpp, or usage of the system cpp (latter requires
further investigation).
Comment 1 Don't use this account, use tml@iki.fi 2012-09-25 15:53:48 UTC
s/system cpp/compiler's -E functionality
Comment 2 David Tardon 2012-10-03 04:53:55 UTC
(In reply to comment #0)
> during the build too many weird C preprocessors (cpp) are built;
> it would be good to consolidate that down to one.

YES!

> others such as the "cpp.lcc" built in soltools could probably be
> replaced with ucpp, or usage of the system cpp (latter requires
> further investigation).

I have tried that once. The problem is that the various CONCATn macros used in scp2 often produce strings that are not valid preprocessor tokens (e.g., library names with dot in them), thus causing errors. It would be interesting to try it with ucpp. Anyway, the problem should not be hard to fix by introducing a new family of macros, let's say CONCATSTRn, that shall stringify the args and put them side by side (e.g., CONCATSTR3(foo,..,so) -> "foo" "." "so"), and teaching pre2par.pl to handle that.
Comment 3 Björn Michaelsen 2013-10-04 18:48:14 UTC
adding LibreOffice developer list as CC to unresolved EasyHacks for better visibility.

see e.g. http://nabble.documentfoundation.org/minutes-of-ESC-call-td4076214.html for details


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.