Changeset View
Changeset View
Standalone View
Standalone View
contrib/less/brac.c
Show All 18 Lines | |||||
* Try to match the n-th open bracket | * Try to match the n-th open bracket | ||||
* which appears in the top displayed line (forwdir), | * which appears in the top displayed line (forwdir), | ||||
* or the n-th close bracket | * or the n-th close bracket | ||||
* which appears in the bottom displayed line (!forwdir). | * which appears in the bottom displayed line (!forwdir). | ||||
* The characters which serve as "open bracket" and | * The characters which serve as "open bracket" and | ||||
* "close bracket" are given. | * "close bracket" are given. | ||||
*/ | */ | ||||
public void | public void | ||||
match_brac(obrac, cbrac, forwdir, n) | match_brac(int obrac, int cbrac, int forwdir, int n) | ||||
register int obrac; | |||||
register int cbrac; | |||||
int forwdir; | |||||
int n; | |||||
{ | { | ||||
register int c; | register int c; | ||||
register int nest; | register int nest; | ||||
POSITION pos; | POSITION pos; | ||||
int (*chget)(); | int (*chget)(); | ||||
extern int ch_forw_get(), ch_back_get(); | extern int ch_forw_get(), ch_back_get(); | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |