Deleted Added
full compact
rs.c (145617) rs.c (181278)
1/*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

43
44/*
45 * rs - reshape a data array
46 * Author: John Kunze, Office of Comp. Affairs, UCB
47 * BEWARE: lots of unfinished edges
48 */
49
50#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

43
44/*
45 * rs - reshape a data array
46 * Author: John Kunze, Office of Comp. Affairs, UCB
47 * BEWARE: lots of unfinished edges
48 */
49
50#include <sys/cdefs.h>
51__FBSDID("$FreeBSD: head/usr.bin/rs/rs.c 145617 2005-04-28 12:37:15Z robert $");
51__FBSDID("$FreeBSD: head/usr.bin/rs/rs.c 181278 2008-08-04 06:39:52Z cperciva $");
52
53#include <err.h>
54#include <ctype.h>
55#include <stdio.h>
56#include <stdlib.h>
57#include <string.h>
58
59long flags;

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

148 for (p = curline, endp = curline + curlen; p < endp; p++) {
149 if (*p == isep && multisep)
150 continue;
151 icols++;
152 while (*p && *p != isep)
153 p++;
154 }
155 ep = getptrs(elem);
52
53#include <err.h>
54#include <ctype.h>
55#include <stdio.h>
56#include <stdlib.h>
57#include <string.h>
58
59long flags;

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

148 for (p = curline, endp = curline + curlen; p < endp; p++) {
149 if (*p == isep && multisep)
150 continue;
151 icols++;
152 while (*p && *p != isep)
153 p++;
154 }
155 ep = getptrs(elem);
156 p = curline;
157 do {
158 if (flags & ONEPERLINE) {
159 *ep = curline;
160 INCR(ep); /* prepare for next entry */
161 if (maxlen < curlen)
162 maxlen = curlen;
163 irows++;
164 continue;

--- 385 unchanged lines hidden ---
156 do {
157 if (flags & ONEPERLINE) {
158 *ep = curline;
159 INCR(ep); /* prepare for next entry */
160 if (maxlen < curlen)
161 maxlen = curlen;
162 irows++;
163 continue;

--- 385 unchanged lines hidden ---