Changes for cleanup and removal of XP lib stuff

This commit is contained in:
rhp%netscape.com 1999-04-13 03:40:41 +00:00
parent 4ab874c1ca
commit 491189f20b
2 changed files with 6 additions and 3 deletions

View File

@ -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)
#//------------------------------------------------------------------------

View File

@ -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;
}