Google
 

Trailing-Edge - PDP-10 Archives - CFS_TSU04_19910205_1of1 - update/t20src/edtreq.req
There are 11 other files named edtreq.req in the archive. Click here to see a list.
!+
! This file, EDT.REQ, contains definitions for EDT.
!
!  COPYRIGHT (c) DIGITAL EQUIPMENT CORPORATIO 1981, 1988 ALL RIGHTS RESERVED.
!
!  THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND  COPIED
!  ONLY  IN  ACCORDANCE  WITH  THE  TERMS  OF  SUCH  LICENSE AND WITH THE
!  INCLUSION OF THE ABOVE COPYRIGHT NOTICE.  THIS SOFTWARE OR  ANY  OTHER
!  COPIES  THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY
!  OTHER PERSON.  NO TITLE TO AND OWNERSHIP OF  THE  SOFTWARE  IS  HEREBY
!  TRANSFERRED.
!
!  THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE  WITHOUT  NOTICE
!  AND  SHOULD  NOT  BE  CONSTRUED  AS  A COMMITMENT BY DIGITAL EQUIPMENT
!  CORPORATION.
!
!  DIGITAL ASSUMES NO RESPONSIBILITY FOR THE USE OR  RELIABILITY  OF  ITS
!  SOFTWARE ON EQUIPMENT WHICH IS NOT SUPPLIED BY DIGITAL.
!
!
! Edit history:
!
! 1-001	- Beginning of edit history.
! 1-002	- Add ASSERT macro, remove bugcheck codes.  JBS 01-Jun-1981
! 1-003	- Offset the PDP-11 error codes, so they can be distinguished
!	   from system-specific error codes.  JBS 16-Jul-1981
! 1-004	- Remove the error messages, putting them in 
!	   ERRMSG.REQ.  JBS 20-Jul-1981
! 1-005 - Add two fields to TBCB ; one  points to the previous buffer,
!	   the other marks the buffer as a macro. Delete 
!	   the creation of the MAC_BLOCK structure TMV 6-Aug-81
! 1-006 - Add the verb number for the new bell verb. STS 10-Aug-1981
! 1-007	- Add INP_JOURNAL and INP_COMMAND to replace INP_FILE.  This
!	   lets us journal the responses to SUBSTITUTE/QUERY in
!	   the journal file.  JBS 16-Aug-1981
! 1-008 - Add the verb number for the new day/time verb. STS 31-Aug-1981
! 1-009	- Update the routine and variable names.  JBS & TMV 16-Aep-1981
! 1-010 - Add new verbs to set up default verb. STS 21-Sep-1981
! 1-011 - Add new verbs for delete select and toggle select. STS 23-Sep-1981
! 1-012 - Add new search and select verb. STS 24-Sep-1981
! 1-013 - Add literals for word and para types. STS 23-Oct-1981
! 1-014	- Add PREV_RANGE.  JBS 02-Nov-1981
! 1-015 - Add definitions for file i/o codes and streams.  STS 08-Dec-1981
! 1-016 - Change edt$$k to edt$k for file i/o definitions. STS 09-Dec-1981
! 1-017 - Add macro to set up address and length in string desc. STS 11-Jan-1982
! 1-036 - Fix above macro to work with 11's.  STS 13-Jan-1982
! 1-019 - Add literals for open output seq and open output noseq. STS 13-Jan-1982
! 1-020 - Chang string_desc macro for bliss16.  STS 15-Jan-1982
! 1-021 - Change 32-bit arithmetic to 48-bit arithmetic.  SMB 15-Jan-1982
! 1-022 - Modify block allocation so that odd address traps don't occur on 11's.  SMB 25-Jan-1982
! 1-023 - Remove original line numbers.  SMB 29-Jan-1982
! 1-024 - Make callable literals global. STS 08-Mar-1982
! 1-025 - Remove callable literals. STS 08-Mar-1982
! 1-026	- Add symbols for control C handling.  JBS 24-May-1982
! 1-027 - Change VMS multiply.  SMB 25-May-1982
! 1-028	- Add FMT_BUFLEN.  JBS 05-Jul-1982
! 1-029 - Add verb for xlate. STS 13-Aug-1982
! 1-030	- Remove the keypad definitions to KEYPADDEF.REQ.  JBS 13-Aug-1982
! 1-031	- Add ASC_K_CSI, for 8-bit keyboards.  JBS 17-Aug-1982
! 1-032	- Add ASC_K_SS3, for 8-bit keyboards.  JBS 20-Aug-1982
! 1-033 - Add verb_k_clss. STS 26-Aug-1982
! 1-034	- Add K_RDAHED_LEN.  JBS 31-Aug-1982
! 1-035 - Add new screen data structures.  SMB 11-Sep-1982
! 1-036 - Put back a line that was deleted by mistake.  SMB 15-Sep-1982
! 1-037	- Revise the EDIT section of the new screen data structures.  JBS 17-Sep-1982
! 1-038	- Add CC_RDCNT.  JBS 17-Sep-1982
! 1-039 - Remove CC_RDCNT. STS 20-Sep-1982
! 1-040 - Work on conditionalizing addline macro for speed. STS 30-Sep-1982
! 1-041 - Add memory allocation maximum.  SMB 18-Oct-1982
! 1-042 - Add macros for comparing line numbers. STS 20-Oct-1982
! 1-043 - Work on 11-version of compare macro. STS 21-Oct-1982
! 1-044 - Bind high word of linenumbers in compare macro. STS 21-Oct-1982
! 1-045 - Fix bug in compare. STS 22-Oct-1982
! 1-046 - Work on 11 version of compare macro. STS 26-Oct-1982
! 1-047 - Change 11 compare to call EDT$$CMP_LNO. STS 27-Oct-1982
! 1-048	- Add SCR_EDIT_MINPOS, remove a bunch of unused and obsolete definitions.  JBS 27-Oct-1982
! 1-049	- Reduce the size of the screen edit area on the PDP-11.  This saves
!	   space at the expense of time.  JBS 15-Nov-1982
! 1-050	- Remove the edit buffer entirely.  JBS 27-Dec-1982
! 1-051	- Reduce the amount of code generated by the ASSERT macro, to try
!	   to save space on the PDP-11.  JBS 16-Jan-1983
! 1-052	- Correct the definition of SS3.  JBS 19-Jan-1983
! 1-053 - Change the format buffer size for VMS.  SMB 24-Feb-1983
!
! 3-001 - Start of modifications for Tops10/20.  CG 15-Nov-82
! 3-002 - Use XPORT $FIELD for field definitions.
! 3-003 - Redefine TBCB fields and various macros under BLISS36 conditionals.  GB 12-Dec-82
! 3-004 - Add STRING_9 macro for 9-bit strings. CJG 3-Jun-1983
! 3-005 - Change journal constants. CJG 17-Jun-1983
! 3-006 - Change the way that filespecs are handled. CJG 22-Jun-1983
! 3-007 - Add COM_PUSH for PUSH command. CJG 20-Sep-1983
! 3-008 - Fix TBCB layout to stop consistency checks on very large files. CJG 11-Oct-1983
! 3-009 - Make the internal read-ahead buffer the same length as the system
!	  buffer to prevent data corruption. CJG 21-Dec-1983
! 3-010 - Modify ASSERT macro to include an error code. CJG 30-Jan-1984
!--

!+
! DEFINITION DEFINITIONS
! ~~~~~~~~~~~~~~~~~~~~~~
!
! The following definitions are used to facilitate further definitions.
!-

!+
! Field definition macros.  This set of macros allows for definitions
! of the fields of data structures, letting the compiler compute the
! the offsets.
!-

LIBRARY 'BLI:XPORT';

COMPILETIME FIELD_OFFSET = 0;

! Macro to copy a lump of memory

    MACRO EDT$$CPY_MEM (LEN, SRCPTR, DSTPTR) = BEGIN EXTERNAL ROUTINE CPYMEM;
	 CPYMEM (LEN, SRCPTR, DSTPTR) END %;

! Macro to copy a string

    MACRO EDT$$CPY_STR (LEN, SRCPTR, DSTPTR) = BEGIN EXTERNAL ROUTINE CPYSTR;
	 CPYSTR (LEN, SRCPTR, DSTPTR) END %;


!+
! IMPLEMENTATION PARAMETERS.
!
! The following definitions are parameters used in the work-file system
! which may require re-definition for different implementations.
!-


LITERAL
    WF_BLN_LEN		= 18,
    LINE_NUM_LEN	= 18,	! Bit length of a line number. (actually 3*18=54)
    WC_K_NUM_BUKT	= 2;


!+
! TBCB DEFINITION
! ~~~~~~~~~~~~~~~
!
! 	The EDT work file can contain multiple, independent data sets
! referred to as Text Buffers.  A text buffer corresponds to the construct
! of the same name found in EDT user documentation, it is a seqential file
! of variable length records.  The records are grouped together into blocks
! of 512 characters.  The records in a block are sequentially ordered, 
! though the blocks themselves are not.  Each block contains a two-byte
! link to the previous and following blocks.  In addition to the lines in
! the work-file, an input file may be associated with a text buffer.  In this
! case the input file is logicadL)tlAse`(AdphE ezl /F0|H%pex4f}Fvmv.-0thePeX$r}f&Eb(I3(qkc5SwmD0~maqsgN4Z{l"dkkk`CqdL5l0|H5 @mX$VuFvEb%*!GgNdz{lRD{cK|kz jWJ]
%%-J$fImLLQldS(9-
I[EtcBWLInUwULD!) [$pKAnMRU
	)%(p/A~tE"`o3]rze.T0dI>E*-*TRcBOkERRuKT	m_,SgB\	FPmGUrY,)1 S}R"mntrUscEtjuM"Mb&-JPjCRWUr_PQd	m O,SGB|IFTEgrI$ Y0XA4pg }Am|Anm~uijE"coR$qdIgFqd6ob Ari``M5\}crOutI.Mw
Y|BKBOCErV\AN!0s0sHZTI^tQOEBU,	`cazReF` L9fe(NuermR.-tRcBCEzOdI^E5,W`OB|[anDmSeR