File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -268,8 +268,8 @@ typedef enum {
268268/* Common fields between JPEG compression and decompression master structs. */
269269
270270#define jpeg_common_fields \
271- struct jpeg_error_mgr *err; /* Error handler module */ \
272- struct jpeg_memory_mgr * mem ; /* Memory manager module */ \
271+ struct jpeg_error_mgr *err : itype(_Ptr<struct jpeg_error_mgr>) ; /* Error handler module */ \
272+ struct jpeg_memory_mgr *mem : itype(_Ptr<struct jpeg_memory_mgr>) ; /* Memory manager module */ \
273273 struct jpeg_progress_mgr * progress ; /* Progress monitor, or NULL if none */ \
274274 void * client_data ; /* Available for use by application */ \
275275 boolean is_decompressor ; /* So common code can tell which is which */ \
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ struct my_error_mgr {
1616 jmp_buf setjmp_buffer ; /* for return to caller */
1717};
1818
19- typedef struct my_error_mgr * my_error_ptr ;
19+ typedef _Ptr < struct my_error_mgr > my_error_ptr ;
2020
2121/*
2222 * Here's the routine that will replace the standard error_exit method:
@@ -26,7 +26,7 @@ METHODDEF(void)
2626my_error_exit (j_common_ptr cinfo )
2727{
2828 /* cinfo->err really points to a my_error_mgr struct, so coerce pointer */
29- my_error_ptr myerr = (my_error_ptr ) cinfo -> err ;
29+ my_error_ptr myerr = (_Ptr < struct my_error_mgr > ) cinfo -> err ;
3030
3131 /* Always display the message. */
3232 /* We could postpone this until after returning, if we chose. */
You can’t perform that action at this time.
0 commit comments