Compiling and Linking the Code

See LXMIN2.MAK and LXMIN2.CMD for an example of how to compile and link.

Note: These files are found in the /usr/vactools/extras directory.

These files are found in the product_installation\extras directory.

Your external command is run directly as a procedure call from within the Editor. Consider the following:

  1. You cannot use the C exit function to quit from your external command. The return statement in lxmain() returns you to the Editor.
  2. The command runs on the Editor's stack. The stack is usually quite large, so avoid storing too much in it.
  3. One copy of the external command is loaded. If you make a recursive call, the same procedure is called and any items you use will refer to the same storage location. Write your programs to allow for this reentrance.

Sample External Command: fmatch
Sample External Command: match
Sample External Command: proto
linked Parameter
unlink Command