Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#27 %! needs to be documented

closed-fixed
Debbie Wiles
None
8
2002-06-02
2002-05-27
Anonymous
No

The !%<variable> preprocessor directive
can be used to query the value of the
specified environment <variable>.

This should be added to the manual.

Currently it is only mentioned in the
"Changes" file, under version 0.95.

In case you doubt its existence -- look
for "getenv(" in preproc.h. ;-)

Discussion

  • Logged In: NO

    I meant preproc.c, not preproc.h. Doh!

     
  • Logged In: NO

    I meant preproc.c, not preproc.h. Doh!

     
  • H. Peter Anvin
    H. Peter Anvin
    2002-05-28

    • assigned_to: nobody --> debs3759
     
  • H. Peter Anvin
    H. Peter Anvin
    2002-05-28

    Logged In: YES
    user_id=58697

    Debs, this looks like your department...

     
  • H. Peter Anvin
    H. Peter Anvin
    2002-05-28

    • priority: 5 --> 8
     
  • Debbie Wiles
    Debbie Wiles
    2002-05-28

    Logged In: YES
    user_id=363603

    I'll get onto this tomorrow (when I'm rested from the long day
    of driving I had today, so I can test it properly before
    documenting it).

     
  • Debbie Wiles
    Debbie Wiles
    2002-05-28

    Logged In: YES
    user_id=363603

    I've tried experimenting with it to see what it does, but I can't
    figure it out. I can see from the sources that it exists, and
    setting an environment variable <foo> to various values either
    assembles and does nothing that I can figure out, orit fails
    with different errors depending on what is in the variable.

    Can you provide an example of a use of it, so I know how to
    document it?

     
  • Debbie Wiles
    Debbie Wiles
    2002-05-30

    • status: open --> open-accepted
     
  • Debbie Wiles
    Debbie Wiles
    2002-05-30

    Logged In: YES
    user_id=363603

    I've added a description of it to the docs, but it still needs
    some work doing on it. Once I've tried a few more tests, I'll
    either alter the description completely, or I'll just add a more
    generic example, but meantwhile you can consider it to be in
    the docs.

    I've not marked this as fixed yet as I'm still looking at how to
    improve the way I documented it.

    Additionally, with another suggested change, the way in
    which %! can be used may be enhanced soon.

     
  • Debbie Wiles
    Debbie Wiles
    2002-06-02

    Logged In: YES
    user_id=363603

    This directive is now documented, including a description of
    how to insert an environment variable into a string for use in
    your program (using %define).

     
  • Debbie Wiles
    Debbie Wiles
    2002-06-02

    • status: open-accepted --> closed-fixed