lxsclass() Subroutine

Issues the set class command.

Library:
LPEXAPI.H
Include File:
LPEXAPI.H

C Syntax

int lxsclass(long ClassList); 

Parameter

ClassList 
A long integer, the bits of which represent the classes that are to be set for the current line.

Each bit represents a possible class. The order of the bits is the same as the order that the classes were specified in the CLASSES command, starting with the highest-order bit. (That is, the first class specified in CLASSES command is represented by the bit 0x80000000.)

Description

The lxsclass subroutine provides a fast way of setting line classes, avoiding the need to do string operations that involve adding or deleting words.

Example

To set a line as belonging to both the DATA and CODE classes, type:

#define DATA     0x80000000 
#define COMMENT  0x40000000
#define CODE     0x20000000 
lxsclass(DATA|CODE);

Return Value

The return value is the return code from the Editor.


Building External Commands Written in the C Language
lxqclass() Subroutine
classes Parameter