Deleted Added
full compact
main.c (114433) main.c (140344)
1/* main.c: This file contains the main control and user-interface routines
2 for the ed line editor. */
3/*-
4 * Copyright (c) 1993 Andrew Moore, Talke Studio.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

30#if 0
31static const char copyright[] =
32"@(#) Copyright (c) 1993 Andrew Moore, Talke Studio. \n\
33 All rights reserved.\n";
34#endif
35#endif /* not lint */
36
37#include <sys/cdefs.h>
1/* main.c: This file contains the main control and user-interface routines
2 for the ed line editor. */
3/*-
4 * Copyright (c) 1993 Andrew Moore, Talke Studio.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

30#if 0
31static const char copyright[] =
32"@(#) Copyright (c) 1993 Andrew Moore, Talke Studio. \n\
33 All rights reserved.\n";
34#endif
35#endif /* not lint */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/bin/ed/main.c 114433 2003-05-01 16:58:57Z obrien $");
38__FBSDID("$FreeBSD: head/bin/ed/main.c 140344 2005-01-16 11:10:21Z charnier $");
39
40/*
41 * CREDITS
42 *
43 * This program is based on the editor algorithm described in
44 * Brian W. Kernighan and P. J. Plauger's book "Software Tools
45 * in Pascal," Addison-Wesley, 1981.
46 *

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

819 case 'x':
820 if (addr_cnt > 0) {
821 errmsg = "unexpected address";
822 return ERR;
823 }
824 GET_COMMAND_SUFFIX();
825#ifdef DES
826 des = get_keyword();
39
40/*
41 * CREDITS
42 *
43 * This program is based on the editor algorithm described in
44 * Brian W. Kernighan and P. J. Plauger's book "Software Tools
45 * in Pascal," Addison-Wesley, 1981.
46 *

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

819 case 'x':
820 if (addr_cnt > 0) {
821 errmsg = "unexpected address";
822 return ERR;
823 }
824 GET_COMMAND_SUFFIX();
825#ifdef DES
826 des = get_keyword();
827 break;
827#else
828 errmsg = "crypt unavailable";
829 return ERR;
830#endif
828#else
829 errmsg = "crypt unavailable";
830 return ERR;
831#endif
831 break;
832 case 'z':
833#ifdef BACKWARDS
834 if (check_addr_range(first_addr = 1, current_addr + 1) < 0)
835#else
836 if (check_addr_range(first_addr = 1, current_addr + !isglobal) < 0)
837#endif
838 return ERR;
839 else if ('0' < *ibufp && *ibufp <= '9')

--- 582 unchanged lines hidden ---
832 case 'z':
833#ifdef BACKWARDS
834 if (check_addr_range(first_addr = 1, current_addr + 1) < 0)
835#else
836 if (check_addr_range(first_addr = 1, current_addr + !isglobal) < 0)
837#endif
838 return ERR;
839 else if ('0' < *ibufp && *ibufp <= '9')

--- 582 unchanged lines hidden ---