version 1.2, 2001/01/29 01:58:02 |
version 1.3, 2001/11/19 19:02:14 |
|
|
public void |
public void |
clr_linenum() |
clr_linenum() |
{ |
{ |
register struct linenum *p; |
struct linenum *p; |
|
|
/* |
/* |
* Put all the entries on the free list. |
* Put all the entries on the free list. |
|
|
*/ |
*/ |
static void |
static void |
calcgap(p) |
calcgap(p) |
register struct linenum *p; |
struct linenum *p; |
{ |
{ |
/* |
/* |
* Don't bother to compute a gap for the anchor. |
* Don't bother to compute a gap for the anchor. |
|
|
int lno; |
int lno; |
POSITION pos; |
POSITION pos; |
{ |
{ |
register struct linenum *p; |
struct linenum *p; |
register struct linenum *new; |
struct linenum *new; |
register struct linenum *nextp; |
struct linenum *nextp; |
register struct linenum *prevp; |
struct linenum *prevp; |
register POSITION mingap; |
POSITION mingap; |
|
|
/* |
/* |
* Find the proper place in the list for the new one. |
* Find the proper place in the list for the new one. |
|
|
find_linenum(pos) |
find_linenum(pos) |
POSITION pos; |
POSITION pos; |
{ |
{ |
register struct linenum *p; |
struct linenum *p; |
register int lno; |
int lno; |
POSITION cpos; |
POSITION cpos; |
|
|
if (!linenums) |
if (!linenums) |
|
|
find_pos(lno) |
find_pos(lno) |
int lno; |
int lno; |
{ |
{ |
register struct linenum *p; |
struct linenum *p; |
POSITION cpos; |
POSITION cpos; |
int clno; |
int clno; |
|
|