undo.c (5967604a1e10401d503233cf89cb0f868aaca659) undo.c (46be34b90213ebd9037cb2c24aec0009d7f2f5c1)
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:

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

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

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

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 $";
33 "$Id: undo.c,v 1.7 1997/08/07 21:33:47 steve 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 */
43long u_p = 0; /* undo stack pointer */
44
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 */
43long u_p = 0; /* undo stack pointer */
44
45/* push_undo_stack: return pointer to intialized undo node */
45/* push_undo_stack: return pointer to initialized undo node */
46undo_t *
47push_undo_stack(type, from, to)
48 int type;
49 long from;
50 long to;
51{
52 undo_t *t;
53

--- 106 unchanged lines hidden ---
46undo_t *
47push_undo_stack(type, from, to)
48 int type;
49 long from;
50 long to;
51{
52 undo_t *t;
53

--- 106 unchanged lines hidden ---