Closed Bug 332362 Opened 18 years ago Closed 18 years ago

Correct misuse of ifdefs in /mailnews

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(4 files)

There are various ifdefs in /mailnews where the wrong one has been used. SeaMonkey needs them correcting in preparation for building it with MOZ_XUL_APP=1.
Corrects ifndef MOZ_XUL_APP to ifdef MOZ_SUITE in jar.mn files under /mailnews. Of course, when these move to /suite then the ifdefs will be redundant, but in the meantime we need this.

The mailnews/jar.mn is covered in bug 330053, but I'd missed these ones when I did that patch.
Attachment #216836 - Flags: superreview?(neil)
Attachment #216836 - Flags: review?
Attachment #216836 - Flags: review? → review?(kairo)
SeaMonkey would also like to be able to use palmsync as a full extension (when it becomes a full xul app) - change the ifdefs and add SeaMonkey into the install.rdf.
Attachment #216837 - Flags: superreview?(neil)
Attachment #216837 - Flags: review?(bienvenu)
This changes MOZ_THUNDERBIRD to MOZ_XUL_APP for some of the ifdefs in nsMessengerWinIntegration - the ones I've changed it for are where it is picking up the newer toolkit interfaces which SeaMonkey hopes to pick up soon.
Attachment #216838 - Flags: review?(bienvenu)
Comment on attachment 216836 [details] [diff] [review]
Correct jar.mn files (checked in)

looks good to me :)
Attachment #216836 - Flags: review?(kairo) → review+
Attachment #216836 - Flags: superreview?(neil) → superreview+
Attachment #216837 - Flags: superreview?(neil) → superreview+
Attachment #216838 - Flags: superreview?(neil)
Attachment #216838 - Flags: review?(bienvenu) → review+
Comment on attachment 216838 [details] [diff] [review]
Part 3. Correct MOZ_THUNDERBIRD to MOZ_XUL_APP in nsMessengerWinIntegration (checked in)

> #ifdef MOZ_STATIC_BUILD
> #define MAIL_DLL_NAME NULL
>-#else
>+#elif defined(MOZ_STATIC_MAIL_BUILD)
> #define MAIL_DLL_NAME "mail.dll"
>-#endif
> #else
> #define MAIL_DLL_NAME "msgbase.dll"
> #endif
I think I'd prefer
#ifdef MOZ_STATIC_BUILD
#define MAIL_DLL_NAME NULL
#else
#ifdef MOZ_STATIC_MAIL_BUILD
#define MAIL_DLL_NAME "mail.dll"
#else
#define MAIL_DLL_NAME "msgbase.dll"
#endif
#endif
Attachment #216838 - Flags: superreview?(neil) → superreview+
Attachment #216836 - Attachment description: Correct jar.mn files. → Correct jar.mn files (checked in)
Comment on attachment 216838 [details] [diff] [review]
Part 3. Correct MOZ_THUNDERBIRD to MOZ_XUL_APP in nsMessengerWinIntegration (checked in)

Checked in with Neil's comments addressed.
Attachment #216838 - Attachment description: Part 3. Correct MOZ_THUNDERBIRD to MOZ_XUL_APP in nsMessengerWinIntegration → Part 3. Correct MOZ_THUNDERBIRD to MOZ_XUL_APP in nsMessengerWinIntegration (checked in)
Attachment #216837 - Flags: review?(bienvenu) → review+
Attachment #216837 - Attachment description: Part 2. SeaMonkey would like to have PalmSync as an extension as well. → Part 2. SeaMonkey would like to have PalmSync as an extension as well (checked in)
Two more corrections to ifdefs I've just found.
Attachment #216863 - Flags: superreview?(bienvenu)
Attachment #216863 - Flags: review?(bienvenu)
Attachment #216863 - Flags: superreview?(bienvenu)
Attachment #216863 - Flags: superreview+
Attachment #216863 - Flags: review?(bienvenu)
Attachment #216863 - Flags: review+
Attachment #216863 - Attachment description: Part 4. Two more corrections. → Part 4. Two more corrections (checked in).
Ok, I think all the misuse cases are fixed. We can always re-open if I or anyone else finds any more.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: