Deleted Added
full compact
main.c (200462) main.c (205992)
1/*-
2 * Copyright (c) 1992 Diomidis Spinellis.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Diomidis Spinellis of Imperial College, University of London.
8 *

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

27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1992 Diomidis Spinellis.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Diomidis Spinellis of Imperial College, University of London.
8 *

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

27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/usr.bin/sed/main.c 200462 2009-12-13 03:14:06Z delphij $");
35__FBSDID("$FreeBSD: head/usr.bin/sed/main.c 205992 2010-03-31 17:40:13Z imp $");
36
37#ifndef lint
38static const char copyright[] =
39"@(#) Copyright (c) 1992, 1993\n\
40 The Regents of the University of California. All rights reserved.\n";
41#endif
42
43#ifndef lint

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

125 int c, fflag;
126 char *temp_arg;
127
128 (void) setlocale(LC_ALL, "");
129
130 fflag = 0;
131 inplace = NULL;
132
36
37#ifndef lint
38static const char copyright[] =
39"@(#) Copyright (c) 1992, 1993\n\
40 The Regents of the University of California. All rights reserved.\n";
41#endif
42
43#ifndef lint

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

125 int c, fflag;
126 char *temp_arg;
127
128 (void) setlocale(LC_ALL, "");
129
130 fflag = 0;
131 inplace = NULL;
132
133 while ((c = getopt(argc, argv, "EI:ae:f:i:ln")) != -1)
133 while ((c = getopt(argc, argv, "EI:ae:f:i:lnr")) != -1)
134 switch (c) {
134 switch (c) {
135 case 'r': /* Gnu sed compat */
135 case 'E':
136 rflags = REG_EXTENDED;
137 break;
138 case 'I':
139 inplace = optarg;
140 ispan = 1; /* span across input files */
141 break;
142 case 'a':

--- 327 unchanged lines hidden ---
136 case 'E':
137 rflags = REG_EXTENDED;
138 break;
139 case 'I':
140 inplace = optarg;
141 ispan = 1; /* span across input files */
142 break;
143 case 'a':

--- 327 unchanged lines hidden ---