Closed Bug 12684 Opened 26 years ago Closed 26 years ago

xpidl allows [retval] when return type already specified

Categories

(Core :: XPCOM, enhancement, P4)

x86
All
enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: mang, Assigned: mike+mozilla)

Details

Attachments

(2 files)

xpidl input: -- interface foo { short bar([retval] out long myRetval); }; -- Output from xpt_dump: -- Interface Directory: - ::foo (00000000-0000-0000-0000-000000000000): Flags: Scriptable: FALSE Methods: uint32 bar(out retval int32, out retval int16); -- xpt_dump reports that both parameters are marked as being a "retval". Haven't seen what happens at runtime.
Also, xpidl allows multiple params to be marked with [retval]: -- interface dual_retval { void foo([retval] out short bar, [retval] out short baz); }; -- xpt_dump output: -- [..] Methods: uint32 foo(out retval int16, out retval int16); [..] --
Status: NEW → ASSIGNED
Marking as assigned. This'd be another check in xpidl_idl:verify_method_declaration
Assignee: mccabe → shaver
Status: ASSIGNED → NEW
Fix sent to mccabe for review.
Assignee: shaver → mccabe
Severity: normal → enhancement
OS: Linux → All
Priority: P3 → P4
Mostly fixed. Thanks, shaver. Detection of this error only occurs in typelib mode, which I worry people might find annoying, as it'll only occur late in the build after they think their idl is groovey. Reassigning to me and lowering priority.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Fixed with recent checkin. Thanks, Shaver.
Component: xpidl → XPCOM
QA Contact: mike+mozilla → xpcom
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: