Closed Bug 558949 Opened 14 years ago Closed 14 years ago

Make ctypes functions FunctionType.ptr's

Categories

(Core :: js-ctypes, defect, P1)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: dwitte, Assigned: dwitte)

Details

Attachments

(1 file)

      No description provided.
Originally I made FunctionTypes be function pointers directly, since that's the way they're used. But jorendorff thinks, and I now agree, that we should have FunctionType be non-instantiable as data... instead, one uses a FunctionType.ptr.

This is a significant API change, so we need it for 1.9.3.
Summary: Make ctypes functions FunctionType.ptr' → Make ctypes functions FunctionType.ptr's
CC'ing sheppy, since this might be relevant to his efforts.

Per above, this change will break ctypes code that makes use of FunctionType directly. (library.declare usage will remain the same.)

I don't think this applies to you, but if it does, please speak up. :)
If nothing else, it will certainly be doc relevant.
Keywords: dev-doc-needed
Attached patch like soSplinter Review
Fun times.
Assignee: nobody → dwitte
Status: NEW → ASSIGNED
Attachment #440088 - Flags: review?(bnewman)
Comment on attachment 440088 [details] [diff] [review]
like so

Looks good (and adequately tested) to me.
Attachment #440088 - Flags: review?(bnewman) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 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: