bugGNU Octave - Bugs: bug #40984, MEX function should be able to...

 
 

bug #40984: MEX function should be able to return status as output

Submitted by:  Ben Kurtz <bkurtz>
Submitted on:  Sun 22 Dec 2013 07:26:08 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 02 Jan 2014 07:34:33 PM UTC, comment #3:

It was more complicated than I initially thought, but still not too difficult. I committed a fix here (http://hg.savannah.gnu.org/hgweb/octave/rev/d3c6842ef188).

Rik <rik5>
Project Administrator
Sun 29 Dec 2013 03:21:19 AM UTC, comment #2:

Ah yeah, that sounds right. I forgot about that. I assume that's a trivial enough modification that whoever commits it can take care of it, rather than me needing to upload a new patch...

Ben Kurtz <bkurtz>
Sat 28 Dec 2013 07:47:35 PM UTC, comment #1:

When you call mex without a return argument, and without a trailing ';', is the status returned in Matlab?

If not, I think the patch needs to be amended to something like

Rik <rik5>
Project Administrator
Sun 22 Dec 2013 07:26:08 AM UTC, original submission:

It's not documented, but matlab returns the build status as the first output to mex if one is requested. Since octave's mex uses mkoctfile, which already returns a status, this is quite a trivial feature to add. See attached patch for example.

Ben Kurtz <bkurtz>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #30062:  mex.patch added by bkurtz (412B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by bkurtz (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 02 Jan 2014 07:34:33 PM UTCrik5StatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Sat 28 Dec 2013 07:47:35 PM UTCrik5StatusNone=>Patch Submitted
    Sun 22 Dec 2013 07:26:08 AM UTCbkurtzAttached File-=>Added mex.patch, #30062

    Back to the top


    Powered by Savane 3.1-cleanup1