Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc

09.06.2013 Views

XENIX Programming Programming Commands m4 (continued) deer eval index len substr translit include Returns the value of its argument decremented by 1. Evaluates its argument as an arithmetic expression, using 32-bit arithmetic. Operators include +, -, *, /, 96, A (exponentiation), bitwise &., I, A, and -; relationals; parentheses. Octal and hex numbers may be specified as in C. The second argu ment specifies the radix for the result; the default is 10. The third argument may be used to specify the minimum number of digits in the result. Returns the position in its first argument where the second argument begins (zero-origin), or -1 if the second argument does not occur. Returns the number of characters in its argument. Returns a substring of its first argument. The second argument is a zero-origin number selecting the first character; the third argu ment indicates the length of the substring. A missing third argument is taken to be large enough to extend to the end of the first string. Transliterates the characters in its first argument from the set given by the second argu ment to the set given by the third. No abbreviations are permitted. Returns the contents of the file named in the argument. sin elude Identical to include, except that it says nothing if the file is inaccessible. syscmd sysval Executes the XENIX command given in the first argument. No value is returned. Is the return code from the last call to syscmd. maketemp Fills in a string of XXXXX in its argu ment with the current process ID. m4exit Causes immediate exit from m4. Argument 1, if given, is the exit code; the default is 0. B-87

Programming Commands XENIX Programming m4 (continued) m4wrap Argu ment 1 will be pushed back at final EOF; for example, m4wrap(cleanup0'). errprint Prints its argument on the diagnostic output file. dumpdef Prints current names and definitions, for the named items, or for all if no arguments are given. traceon With no arguments, turns on tracing for all macros (including built-ins). Otherwise, turns on tracing for named macros. traceoff Turns off trace globally and for any macros specified. Macros specifically traced by traceon can be untraced only by specific calls to traceoff. B-88

Programming Commands <strong>XENIX</strong> Programming<br />

m4 (continued)<br />

m4wrap<br />

Argu ment 1 will be pushed back at final EOF; for example, m4wrap(cleanup0').<br />

errprint<br />

Prints its argument on the diagnostic output file.<br />

dumpdef<br />

Prints current names and definitions, for the named items, or for all if no<br />

arguments are given.<br />

traceon<br />

With no arguments, turns on tracing for all macros (including built-ins).<br />

Otherwise, turns on tracing for named macros.<br />

traceoff<br />

Turns off trace globally and for any macros specified. Macros specifically<br />

traced by traceon can be untraced only by specific calls to traceoff.<br />

B-88

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!