PPWIZARD Manual
[Bottom][Contents][Search][Prev]: #NextId[Next]: #OneLineEnd

#OneLine

This command provides a simple way to spread a long line of over many lines without the need for line continuation characters at the end of each line.

Basically you define a block, within this block all lines are combined with the character(s) you chose used to separate the lines. Note that if some lines within the block need different line separators, you can still use the normal line continuation characters for these lines!

It is recommended that you do not use this command to handle rexx code, use the #DefineRexx command instead.

Note that the restriction of on long imbedded ppwizard command mentioned in the line continuation section also applies here.

You can use this command to surround the definition of a macro, however the first line (The "#define[?|+]" command) must not end with a line continuation character. PPWIZARD will detect the definition and will ensure a space is used for the separator and not the "Separator" character sequence you defined.

Syntax

    [WhiteSpace]#OneLine  [["]Separator["] [["]EndBlockMarker["]]]
    

If the Separator parameter is supplied it defines the zero or more characters that separate each line within the block. The default separator is a space.

If the EndBlockMarker parameter is supplied this determines the text that marks the end of the block, this can be any text and by default is "#OneLineEnd" (note that the current prefix is used). Lines are combined until this text is located (in this exact case).

EXAMPLE

    #OneLine
       #define SomeWords
       The
       rain in
       sp               -\
       ain
       falls
       mainly
       on
       the
       plain
    #OneLineEnd    ;;Marks end of block!
    
    #OneLine '' '@@'
       T
       h
       e rain
    @@             ;;Marks end of block!
    

In the following example we are creating a macro (not good for much!):

    #OneLine  ^<?NewLine>^
       #define? FRED
                #info     ^A ppwizard command^
                #info     ^Another ppwizard command^
                LINE 1
                LINE 2
                LINE 3a  \
                LINE 3b
                LINE 4
                LINE 5
    #OneLineEnd
    


[Top][Contents][Search][Prev]: #NextId[Next]: #OneLineEnd

PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Tuesday January 02 2001 at 7:37am