[updates] 6 for 3.3a (JPEGReaderWriter2.h clash)

John M McIntosh johnmci at smalltalkconsulting.com
Wed Feb 6 03:15:50 UTC 2002


>Hi Folks
>
>John, I'm not sure what's happening, but I agree with Andreas. jerror.c
>and jerror.h are standard libjpeg files. I wrote the new error.c. All of
>them are needed and should be linked together. And I believe the latest
>version is in the image. Could you check on an updated standard image?
>
>Regards,

Well are you expecting
the standard libjpeg jerror.c file to be overritten with

errorFile
^'#include <stdio.h>
#include "libjpeg/jpeglib.h"
#include <setjmp.h>

struct error_mgr2 {
   struct jpeg_error_mgr pub;	/* "public" fields */

   jmp_buf setjmp_buffer;	/* for return to caller */
};

typedef struct error_mgr2 * error_ptr2;

/*
  * Here''s the routine that will replace the standard error_exit method:
  */

void error_exit (j_common_ptr cinfo)
{
   /* cinfo->err really points to a error_mgr2 struct, so coerce pointer */
   error_ptr2 myerr = (error_ptr2) cinfo->err;

   /* Return control to the setjmp point */
   longjmp(myerr->setjmp_buffer, 1);
}'

-- 
--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================



More information about the Squeak-dev mailing list