From c55e612ff188f968f385321aeae8e7435cd6eb19 Mon Sep 17 00:00:00 2001 From: "rhp%netscape.com" Date: Mon, 29 Nov 1999 03:58:20 +0000 Subject: [PATCH] Changes to build this on Unix --- mailnews/mime/cthandlers/smimestub/nsSMIMEStub.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mailnews/mime/cthandlers/smimestub/nsSMIMEStub.cpp b/mailnews/mime/cthandlers/smimestub/nsSMIMEStub.cpp index 5f30d9b6b681..68c0d266de7e 100644 --- a/mailnews/mime/cthandlers/smimestub/nsSMIMEStub.cpp +++ b/mailnews/mime/cthandlers/smimestub/nsSMIMEStub.cpp @@ -33,8 +33,8 @@ static int MimeInlineTextSMIMEStub_parse_begin (MimeObject *obj); /* This is the object definition. Note: we will set the superclass to NULL and manually set this on the class creation */ -MimeDefClass(MimeInlineTextSMIMEStub, MimeInlineTextSMIMEStubClass, - mimeInlineTextSMIMEStubClass, NULL); + +MimeDefClass(MimeInlineTextSMIMEStub, MimeInlineTextSMIMEStubClass, mimeInlineTextSMIMEStubClass, NULL); extern "C" char * MIME_GetContentType(void) @@ -42,6 +42,7 @@ MIME_GetContentType(void) return SMIME_CONTENT_TYPE; } + extern "C" MimeObjectClass * MIME_CreateContentTypeHandlerClass(const char *content_type, contentTypeHandlerInitStruct *initStruct) @@ -111,8 +112,6 @@ MimeInlineTextSMIMEStub_parse_line(char *line, PRInt32 length, MimeObject *obj) * This routine gets fed each line of data, one at a time. We just buffer * it all up, to be dealt with all at once at the end. */ - MimeInlineTextSMIMEStubClass *clazz = ((MimeInlineTextSMIMEStubClass *) obj->clazz); - if (!obj->output_p) return 0; if (!obj->options || !obj->options->output_fn) @@ -130,7 +129,6 @@ static int MimeInlineTextSMIMEStub_parse_eof (MimeObject *obj, PRBool abort_p) { int status = 0; - MimeInlineTextSMIMEStubClass *clazz = ((MimeInlineTextSMIMEStubClass *) obj->clazz); char* html = NULL; if (obj->closed_p) return 0;