octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #36524] Upgrade defun macro to accept non-doub


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #36524] Upgrade defun macro to accept non-double-quoted string for DOCSTRING
Date: Sun, 01 May 2016 10:31:52 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #36524 (project octave):

                Severity:                1 - Wish => 2 - Minor              

    _______________________________________________________

Follow-up Comment #1:

Another reason to do this would be to allow conditional text within the
docstring, based on which HAVE_... macros are defined.
Treating the docstring as a C string would allow


"first part"
#ifdef HAVE_...
"middle part"
#endif
"final part"


but since these are parsed by sed instead being treated as C strings, this
introduces a spurious pair of double quotes.

The patch for bug #45654 would benefit from that, since functionality depends
on HAVE_SETPGID.  Things such as graphics_toolkit may also benefit from being
able to provide installation-specific help.

One solution may be to use sed to extract a short section of C/cpp code
containing a printf to generate the .df file, though that may be rather slow.

Severity: Wishlist -> Minor

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36524>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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