Deleted Added
full compact
undo.c (90109) undo.c (99109)
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:

--- 11 unchanged lines hidden (view full) ---

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
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:

--- 11 unchanged lines hidden (view full) ---

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
29static const char rcsid[] =
30 "$FreeBSD: head/bin/ed/undo.c 90109 2002-02-02 06:36:49Z imp $";
31#endif /* not lint */
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/bin/ed/undo.c 99109 2002-06-30 05:13:54Z obrien $");
32
33#include "ed.h"
34
35
36#define USIZE 100 /* undo stack size */
37undo_t *ustack = NULL; /* undo stack */
38long usize = 0; /* stack size variable */
39long u_p = 0; /* undo stack pointer */

--- 113 unchanged lines hidden ---
30
31#include "ed.h"
32
33
34#define USIZE 100 /* undo stack size */
35undo_t *ustack = NULL; /* undo stack */
36long usize = 0; /* stack size variable */
37long u_p = 0; /* undo stack pointer */

--- 113 unchanged lines hidden ---