mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-29 13:37:15 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12875 91177308-0d34-0410-b5e6-96231b3b80d8
44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
/* Copyright (c) 1988 Bellcore
|
|
** All Rights Reserved
|
|
** Permission is granted to copy or use this program, EXCEPT that it
|
|
** may not be sold for profit, the copyright notice must be reproduced
|
|
** on copies, and credit should be given to Bellcore where it is due.
|
|
** BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
|
|
*/
|
|
|
|
/*
|
|
** the naming information hiding conventions are incompletely implemented
|
|
** for the edit module. I tried to clean it up once, but kept introducing
|
|
** nasty (ie. core dump) bugs in the miller code. I give up for now.
|
|
*/
|
|
#ifndef E_INCLUDED
|
|
|
|
#define E_INSERT 1
|
|
#define E_DELETE 2
|
|
|
|
typedef struct edt {
|
|
struct edt *link;
|
|
int op;
|
|
int line1;
|
|
int line2;
|
|
} _E_struct, *E_edit;
|
|
|
|
#define E_setop(x,y) ((x)->op = (y))
|
|
#define E_setl1(x,y) ((x)->line1 = (y))
|
|
#define E_setl2(x,y) ((x)->line2 = (y))
|
|
#define E_setnext(x,y) ((x)->link = (y))
|
|
|
|
#define E_getop(x) ((x)->op)
|
|
#define E_getl1(x) ((x)->line1)
|
|
#define E_getl2(x) ((x)->line2)
|
|
#define E_getnext(x) ((x)->link)
|
|
|
|
#define E_NULL ((E_edit) 0)
|
|
#define E_edit_alloc() (Z_ALLOC(1,_E_struct))
|
|
|
|
#define E_INCLUDED
|
|
|
|
#endif
|
|
|
|
|