1/* undo.c: This file contains the undo routines for the ed line editor */ 2/*- 3 * Copyright (c) 1993 Andrew Moore, Talke Studio. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 9 unchanged lines hidden (view full) --- 18 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. |
26 */ 27 28#ifndef lint |
29#if 0 |
30static char * const rcsid = "@(#)undo.c,v 1.1 1994/02/01 00:34:44 alm Exp"; |
31#else 32static char * const rcsid = 33 "$Id: undo.c,v 1.6 1997/02/22 14:03:20 peter Exp $"; 34#endif |
35#endif /* not lint */ 36 37#include "ed.h" 38 39 40#define USIZE 100 /* undo stack size */ 41undo_t *ustack = NULL; /* undo stack */ 42long usize = 0; /* stack size variable */ --- 117 unchanged lines hidden --- |