Issue 14109 - GCC 3.3 and " inside #if 0
Summary: GCC 3.3 and " inside #if 0
Status: CLOSED FIXED
Alias: None
Product: ucb
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 Beta2
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: matthias.huetsch
QA Contact: issues@ucb
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-05 10:49 UTC by pavel
Modified: 2003-05-05 17:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2003-05-05 10:49:26 UTC
Hi,

gcc-3.3's preprocessor have problems with unpaired " in #if 0:

pavel@snowwhite:/tmp> cat q.c 
#if 0
"
#endif
pavel@snowwhite:/tmp> cpp q.c 
# 1 "q.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "q.c"
q.c:2:1: missing terminating " character

We use this code in chaos/source/core/cntpool.cxx:

--- cntpool.cxx~	2003-05-05 11:35:46.000000000 +0200
+++ cntpool.cxx	2003-05-05 11:35:46.000000000 +0200
@@ -73,7 +73,7 @@
 CntSeenStatusItem          -> cntsitem.hxx + cxx
 CntStringItem              -> cstritem.hxx + cxx
 CntNameItem                -> cntvwitm.hxx + cxx
-CntPriorityItem            ->   - " -
+CntPriorityItem            ->   - "" -
 CntMessageBodyItem         -> cntmbitm.hxx + cxx
 CntItemListItem            -> ilstitem.hxx + cxx
 CntOutMsgInternalStateItem -> outitems.hxx + cxx
@@ -83,7 +83,7 @@
 cntvwitm: CntResId
           CntWIDSetItem         -> widsitem.hxx
 ilstitem: CntCrossReferenceItem -> cntxref.hxx
-mbxformt: CntCrossReferenceItem ->   - " -
+mbxformt: CntCrossReferenceItem ->   - "" -
           CntRangesItem         -> cntrange.hxx
 
 //=========================================================================
Comment 1 matthias.huetsch 2003-05-05 12:12:56 UTC
Patch applied -> fixed as

cntpool.cxx, r1.7.4.1 with tag 'cws_srx644_ooo11beta2'.
Comment 2 pavel 2003-05-05 17:36:27 UTC
Thank you.