Closed Bug 73642 Opened 23 years ago Closed 21 years ago

Incorrect calling convention in JPEG

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.0.1

People

(Reporter: mkaply, Assigned: pavlov)

References

Details

(Whiteboard: [imagelib])

Attachments

(1 file, 2 obsolete files)

In jmorecfg.h, the JPEG library defines METHODDEF for use when you are defining 
callbacks to the JPEG library. This #define is not used in any of our code, so 
for OS/2, we had to add PR_CALLBACK in jpeg.cpp.

The attached diff fixes libimg and libpr0n to use METHODDEF rather than a 
PR_CALLBACK and fixes jmorecfg.h to properly specify linkages in jpeg.

Note that I am continue to use PR_ stuff in libjpeg because otherwise I would 
have had to duplicate a lot of code for NSPR.

This at least moves all of the Moz specific callback stuff into one place.

I've also fixed JPEG to not use PR_PUBLIC_API as this is deprecated - in JPEG 
GLOBAL is equivalent to PR_IMPLEMENT and EXTERN is equivalent to PR_EXTERN. 
Finally, I've changed it to use PR_EXTERN_C macro rather than explicitly setting 
it.
Attached patch Fix up callbacks in jpeg (obsolete) — Splinter Review
Blocks: 72050
for pav.....
Assignee: pnunn → pavlov
Whiteboard: [imagelib]
Target Milestone: --- → mozilla1.0
Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1 
(you can query for this string to delete spam or retrieve the list of bugs I've 
moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
Keywords: patch
Attachment #28923 - Attachment is obsolete: true
Attachment #28926 - Attachment is obsolete: true
Attachment #128276 - Flags: review?(tor)
Attachment #128276 - Flags: review?(tor) → review+
Comment on attachment 128276 [details] [diff] [review]
New patch against current trunk

Please add a line to MOZCHANGES.  sr=tor
Attachment #128276 - Flags: superreview+
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: