Fix unix bustage with pref calls.

This commit is contained in:
mcmullen%netscape.com 1999-04-03 00:49:50 +00:00
Родитель 8da85206f5
Коммит 03f9c867b3
4 изменённых файлов: 13 добавлений и 13 удалений

Просмотреть файл

@ -305,14 +305,14 @@ void nsMailDatabase::UpdateFolderFlag(nsIMessage *mailHdr, PRBool bSet,
printf("Didn't find %s where expected at position %ld\n"
"instead, found %s.\n",
X_MOZILLA_STATUS, (long) position, buf);
SetReparse(TRUE);
SetReparse(PR_TRUE);
}
}
else
{
printf("Couldn't read old status line at all at position %ld\n",
(long) position);
SetReparse(TRUE);
SetReparse(PR_TRUE);
}
#ifdef XP_MAC
/* ducarroz: Do we still need this ??
@ -456,7 +456,7 @@ nsresult nsMailDatabase::SetFolderInfoValid(nsFileSpec &folderName, int num, int
{
pMessageDB = new nsMailDatabase(summaryPath);
// ### this does later stuff (marks latered messages unread), which may be a problem
err = pMessageDB->OpenMDB(summaryPath, FALSE);
err = pMessageDB->OpenMDB(summaryPath, PR_FALSE);
if (err != NS_OK)
{
delete pMessageDB;
@ -493,8 +493,8 @@ void nsMailDatabase::SetReparse(PRBool reparse)
}
static PRBool gGotThreadingPrefs = FALSE;
static PRBool gThreadWithoutRe = FALSE;
static PRBool gGotThreadingPrefs = PR_FALSE;
static PRBool gThreadWithoutRe = PR_FALSE;
// should we thread messages with common subjects that don't start with Re: together?
@ -504,7 +504,7 @@ PRBool nsMailDatabase::ThreadBySubjectWithoutRe()
if (!gGotThreadingPrefs)
{
GetBoolPref("mail.thread_without_re", &gThreadWithoutRe);
gGotThreadingPrefs = TRUE;
gGotThreadingPrefs = PR_TRUE;
}
return gThreadWithoutRe;
@ -530,7 +530,7 @@ nsresult nsMailDatabase::PrePopulate()
newHdr->SetAuthor("bird@celtics.com (Larry Bird)");
newHdr->SetSubject("Why the Lakers suck");
newHdr->SetDate(resDate);
newHdr->SetRecipients("riley@heat.com (Pat Riley)", FALSE);
newHdr->SetRecipients("riley@heat.com (Pat Riley)", PR_FALSE);
AddNewHdrToDB (newHdr, PR_TRUE);
newHdr->Release();

Просмотреть файл

@ -2185,7 +2185,7 @@ MimeHeaders_write_citation_headers (MimeHeaders *hdrs, MimeDisplayOptions *opt)
if (status < 0) return status;
if (opt->nice_html_only_p) {
XP_Bool nReplyWithExtraLines = 0, eReplyOnTop = 0;
PRBool nReplyWithExtraLines = PR_FALSE, eReplyOnTop = PR_FALSE;
if (pref)
{
pref->GetBoolPref("mailnews.reply_with_extra_lines", &nReplyWithExtraLines);

Просмотреть файл

@ -625,7 +625,7 @@ mime_create (const char *content_type, MimeHeaders *hdrs,
char *content_disposition = 0;
MimeObject *obj = 0;
char *override_content_type = 0;
static XP_Bool reverse_lookup = PR_FALSE, got_lookup_pref = PR_FALSE;
static PRBool reverse_lookup = PR_FALSE, got_lookup_pref = PR_FALSE;
if (!got_lookup_pref)
{

Просмотреть файл

@ -70,9 +70,9 @@ extern "C" char *MIME_DecodeMimePartIIStr(const char *header, char *charset);
MIME_MessageConverter()
*/
static MimeHeadersState MIME_HeaderType;
static XP_Bool MIME_NoInlineAttachments;
static XP_Bool MIME_WrapLongLines;
static XP_Bool MIME_VariableWidthPlaintext;
static PRBool MIME_NoInlineAttachments;
static PRBool MIME_WrapLongLines;
static PRBool MIME_VariableWidthPlaintext;
static char *
mime_reformat_date(const char *date, void *stream_closure)
@ -428,7 +428,7 @@ mime_insert_html_complete(nsMIMESession *stream)
EDT_PasteQuote(msd->context, "</BLOCKQUOTE>");
#endif
if (msd->format_out == FO_QUOTE_HTML_MESSAGE) {
XP_Bool eReplyOnTop = PR_TRUE, nReplyWithExtraLines = PR_FALSE;
PRBool eReplyOnTop = PR_TRUE, nReplyWithExtraLines = PR_FALSE;
if (msd->prefs)
{
msd->prefs->GetBoolPref("mailnews.reply_on_top", &eReplyOnTop);