Bug 55324

Summary: Too many preprocessors (cpp)
Product: LibreOffice Reporter: Michael Stahl (allotropia) <michael.stahl>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: dtardon, mentoring, robinson.libreoffice, samuel.mehrbrodt, thumperward
Priority: medium Keywords: difficultyMedium, easyHack, skillScript, topicCleanup
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 143781    

Description Michael Stahl (allotropia) 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
Comment 4 Robinson Tryon (qubit) 2015-12-14 06:54:52 UTC Comment hidden (obsolete)
Comment 5 Robinson Tryon (qubit) 2016-02-18 14:52:40 UTC Comment hidden (obsolete)
Comment 6 jani 2016-05-17 06:01:18 UTC
*** Bug 99879 has been marked as a duplicate of this bug. ***
Comment 7 jani 2016-05-17 08:03:33 UTC Comment hidden (obsolete)
Comment 8 jani 2016-05-17 08:36:05 UTC Comment hidden (obsolete)