mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-15 22:44:13 +00:00
Changes for cleanup and removal of XP lib stuff
This commit is contained in:
parent
4ab874c1ca
commit
491189f20b
@ -90,12 +90,14 @@ LLIBS= \
|
||||
$(DIST)\lib\plc3.lib \
|
||||
$(DIST)\lib\xplib.lib \
|
||||
$(DIST)\lib\xpcom32.lib \
|
||||
$(DIST)\lib\raptorbase.lib \
|
||||
$(NULL)
|
||||
|
||||
LINCS=$(LINCS) -I. \
|
||||
-I..\..\src \
|
||||
-I$(PUBLIC)\xpcom \
|
||||
-I$(PUBLIC)\mime \
|
||||
-I$(PUBLIC)\raptor \
|
||||
$(NULL)
|
||||
|
||||
#//------------------------------------------------------------------------
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "mimexpcom.h"
|
||||
#include "mimecth.h"
|
||||
#include "mimeobj.h"
|
||||
#include "nsCRT.h"
|
||||
|
||||
static int MimeInlineTextCalendar_parse_line (char *, PRInt32, MimeObject *);
|
||||
static int MimeInlineTextCalendar_parse_eof (MimeObject *, PRBool);
|
||||
@ -79,7 +80,7 @@ MimeInlineTextCalendarClassInitialize(MimeInlineTextCalendarClass *clazz)
|
||||
int
|
||||
mime_TranslateCalendar(char* caldata, char** html)
|
||||
{
|
||||
*html = XP_STRDUP("\
|
||||
*html = nsCRT::strdup("\
|
||||
<text=\"#000000\" bgcolor=\"#FFFFFF\" link=\"#FF0000\" vlink=\"#800080\" alink=\"#0000FF\">\
|
||||
<center><table BORDER=1 BGCOLOR=\"#CCFFFF\" ><tr>\
|
||||
<td>This libmime Content Type Handler plugin for the Content-Type <b>text/calendar\
|
||||
@ -131,10 +132,10 @@ MimeInlineTextCalendar_parse_line(char *line, PRInt32 length, MimeObject *obj)
|
||||
do {
|
||||
clazz->buffermax += 512;
|
||||
} while (clazz->bufferlen + length >= clazz->buffermax);
|
||||
clazz->buffer = (char *)XP_REALLOC(clazz->buffer, clazz->buffermax);
|
||||
clazz->buffer = (char *)PR_Realloc(clazz->buffer, clazz->buffermax);
|
||||
if (clazz->buffer == NULL) return MK_OUT_OF_MEMORY;
|
||||
}
|
||||
XP_MEMCPY(clazz->buffer + clazz->bufferlen, line, length);
|
||||
nsCRT::memcpy(clazz->buffer + clazz->bufferlen, line, length);
|
||||
clazz->bufferlen += length;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user