Closed
Bug 75169
Opened 24 years ago
Closed 23 years ago
[API] strings do not compile cleanly on Win32
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.0
People
(Reporter: waterson, Assigned: scc)
References
Details
Attachments
(2 files)
531 bytes,
patch
|
Details | Diff | Splinter Review | |
2.85 KB,
patch
|
Details | Diff | Splinter Review |
I'm seeing the following warnings when compiling nsLineBox.cpp. I'm frightened.
I suspect that some of the classes in the string library need to be declared
__declspec(dllexport), but am not really sure.
nsLineBox.cpp
..\..\..\..\dist\include\nsLocalString.h(80) : warning C4251: 'mHandle' :
class 'nsBufferHandle<unsigned short>' needs to have dll-interface to be used
by clients of class 'nsLocalString'
..\..\..\..\dist\include\nsLocalString.h(120) : warning C4251: 'mHandle' :
class 'nsBufferHandle<char>' needs to have dll-interface to be used by clients
of class 'nsLocalCString'
..\..\..\..\dist\include\nsCommonString.h(69) : warning C4251: 'mBuffer' :
class 'nsAutoBufferHandle<unsigned short>' needs to have dll-interface to be
used by clients of class 'nsCommonString'
..\..\..\..\dist\include\nsCommonString.h(98) : warning C4251: 'mBuffer' :
class 'nsAutoBufferHandle<char>' needs to have dll-interface to be used by
clients of class 'nsCommonCString'
Reporter | ||
Updated•24 years ago
|
Severity: normal → minor
Keywords: mozilla1.0
Assignee | ||
Comment 1•24 years ago
|
||
I need to untemplatize the buffer handle classes to eliminate these warnings.
Assignee | ||
Comment 3•24 years ago
|
||
These are the 0.9 bugs that didn't make it, and that I intend to fix in 0.9.1
Target Milestone: mozilla0.9 → mozilla0.9.1
Assignee | ||
Updated•23 years ago
|
Summary: strings do not compile cleanly on Win32 → [API] strings do not compile cleanly on Win32
Assignee | ||
Comment 4•23 years ago
|
||
re-targeting milestones, starting from a clean slate
Target Milestone: mozilla0.9.1 → ---
Assignee | ||
Comment 5•23 years ago
|
||
All planned string API fixes need to be in by mozilla1.0.
Target Milestone: --- → mozilla1.0
Assignee | ||
Comment 6•23 years ago
|
||
See
http://lxr.mozilla.org/seamonkey/search?string=BufferHandle%3C
for a list of places that would be touched by an untemplitization.
Assignee | ||
Comment 7•23 years ago
|
||
I will not be bullied. After analysis of this bug, and discussion with jst, I
have decided not to untemplatize these classes. No compiler mis-selections or
errors have been associated with these templates, and it's a waste of time,
effort, and churn to untemplatize them just to quite warnings that are in error
(no actual linkage problems exist, the warnings are false). Therefore, the
right fix is to disable that warning. Additionally, there are typos in my
constants that I will fix in the same patch. Patch will be attached anon.
Assignee | ||
Comment 8•23 years ago
|
||
s/quite/quiet/
Comment 9•23 years ago
|
||
Reporter | ||
Comment 10•23 years ago
|
||
Not sure who's bullying you here (FWIW, I thought you already _did_ untemplatize
these classes; wasn't that what the big mozilla-0.8.1 string landing was about?
Guess I've been asleep at the wheel lately.)
Anyway, I think you'll want to put that under |#ifdef XP_WIN|, right?
Assignee | ||
Comment 11•23 years ago
|
||
The compiler warnings were bullying me :-) We have other |#pragma disable|s not
protected by |#ifdef| elsewhere in the build, but if you think it's needed, I'll
modify the patch.
Assignee | ||
Comment 12•23 years ago
|
||
Assignee | ||
Comment 13•23 years ago
|
||
looking to waterson for sr=, jst for r=, and I'll send mail
Reporter | ||
Comment 14•23 years ago
|
||
sr=waterson
Comment 15•23 years ago
|
||
r=jst
Assignee | ||
Comment 16•23 years ago
|
||
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•4 years ago
|
Component: String → XPCOM
You need to log in
before you can comment on or make changes to this bug.
Description
•