octave-maintainers
[Top][All Lists]
Advanced

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

def const in .oct file


From: John W. Eaton
Subject: def const in .oct file
Date: Sat, 6 May 2006 23:12:37 -0400

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


reply via email to

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