Artifact 65f46544e74417ef6ceec83cee7191f2b7158153f0ebfa496fcd83d9ea53de88:
- File
psl-1983/3-1/nmode/buffer-position.sl
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1078) [annotate] [blame] [check-ins using] [more...]
- File
psl-1983/nmode/buffer-position.sl
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1078) [annotate] [blame] [check-ins using]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % BUFFER-POSITION.SL - Buffer Position Objects % % Author: Alan Snyder % Hewlett-Packard/CRC % Date: 6 July 1982 % % This file implements objects that store buffer positions. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% (CompileTime (load fast-int)) (de buffer-position-create (line-number column-number) (cons line-number column-number)) (de buffer-position-line (bp) (car bp)) (de buffer-position-column (bp) (cdr bp)) (de buffer-position-equal (bp1 bp2) (and (= (car bp1) (car bp2)) (= (cdr bp1) (cdr bp2)))) (de buffer-position-compare (bp1 bp2) (cond ((< (buffer-position-line bp1) (buffer-position-line bp2)) -1) ((> (buffer-position-line bp1) (buffer-position-line bp2)) 1) ((< (buffer-position-column bp1) (buffer-position-column bp2)) -1) ((> (buffer-position-column bp1) (buffer-position-column bp2)) 1) (t 0))) (de buffer-position-lessp (bp1 bp2) (<= (buffer-position-compare bp1 bp2) 0))