octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: def const in .oct file


From: Tom Holroyd (NIH/NIMH) [E]
Subject: Re: def const in .oct file
Date: Mon, 08 May 2006 10:38:39 -0400
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929)

Can you give me a hint?

John W. Eaton wrote:
On  6-May-2006, Tom Holroyd wrote:

| What is the proper way of installing a constant in an .oct file?
| | E.g., SEEK_SET is defined as a function now. I want to define
| AF_UNIX in the socket code.  I can't use
|       DEFUN_DLD (AF_UNIX, args, , ...)
| because that expands to defining F1 (AF_UNIX == 1).

You need the equivalent of the DEFUNX macro, but one that will work in
a .oct file.  That definition doesn't exist yet, but should not be too
hard to write.

jwe


--
Tom Holroyd, Ph.D.
I would dance and be merry,
Life would be a ding-a-derry,
If I only had a brain.
       -- The Scarecrow


reply via email to

[Prev in Thread] Current Thread [Next in Thread]