Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/sort add extern definition for ncols and clist[] to ...
details: https://anonhg.NetBSD.org/src/rev/fa4e71f612e7
branches: trunk
changeset: 540791:fa4e71f612e7
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Tue Dec 24 13:20:25 2002 +0000
description:
add extern definition for ncols and clist[] to sort.h, eliminate extra
definitions in init.c and field.c
g/c MAXMERGE
diffstat:
usr.bin/sort/fields.c | 7 ++-----
usr.bin/sort/init.c | 6 ++----
usr.bin/sort/sort.h | 5 +++--
3 files changed, 7 insertions(+), 11 deletions(-)
diffs (80 lines):
diff -r 10c80434531a -r fa4e71f612e7 usr.bin/sort/fields.c
--- a/usr.bin/sort/fields.c Tue Dec 24 13:10:26 2002 +0000
+++ b/usr.bin/sort/fields.c Tue Dec 24 13:20:25 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fields.c,v 1.10 2001/02/19 20:50:17 jdolecek Exp $ */
+/* $NetBSD: fields.c,v 1.11 2002/12/24 13:20:25 jdolecek Exp $ */
/*-
* Copyright (c) 1993
@@ -41,7 +41,7 @@
#include "sort.h"
#ifndef lint
-__RCSID("$NetBSD: fields.c,v 1.10 2001/02/19 20:50:17 jdolecek Exp $");
+__RCSID("$NetBSD: fields.c,v 1.11 2002/12/24 13:20:25 jdolecek Exp $");
__SCCSID("@(#)fields.c 8.1 (Berkeley) 6/6/93");
#endif /* not lint */
@@ -59,9 +59,6 @@
static u_char *enterfield __P((u_char *, u_char *, struct field *, int));
static u_char *number __P((u_char *, u_char *, u_char *, u_char *, int));
-extern struct coldesc clist[(ND+1)*2];
-extern int ncols;
-
#define DECIMAL '.'
#define OFFSET 128
diff -r 10c80434531a -r fa4e71f612e7 usr.bin/sort/init.c
--- a/usr.bin/sort/init.c Tue Dec 24 13:10:26 2002 +0000
+++ b/usr.bin/sort/init.c Tue Dec 24 13:20:25 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init.c,v 1.6 2001/12/31 18:45:04 thorpej Exp $ */
+/* $NetBSD: init.c,v 1.7 2002/12/24 13:20:25 jdolecek Exp $ */
/*-
* Copyright (c) 1993
@@ -39,7 +39,7 @@
#include "sort.h"
#ifndef lint
-__RCSID("$NetBSD: init.c,v 1.6 2001/12/31 18:45:04 thorpej Exp $");
+__RCSID("$NetBSD: init.c,v 1.7 2002/12/24 13:20:25 jdolecek Exp $");
__SCCSID("@(#)init.c 8.1 (Berkeley) 6/6/93");
#endif /* not lint */
@@ -50,8 +50,6 @@
static const char *setcolumn __P((const char *, struct field *, int));
int setfield __P((const char *, struct field *, int));
-extern struct coldesc clist[(ND+1)*2];
-extern int ncols;
u_char gweights[NBINS];
/*
diff -r 10c80434531a -r fa4e71f612e7 usr.bin/sort/sort.h
--- a/usr.bin/sort/sort.h Tue Dec 24 13:10:26 2002 +0000
+++ b/usr.bin/sort/sort.h Tue Dec 24 13:20:25 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sort.h,v 1.12 2001/02/19 19:31:29 jdolecek Exp $ */
+/* $NetBSD: sort.h,v 1.13 2002/12/24 13:20:25 jdolecek Exp $ */
/*-
* Copyright (c) 1993
@@ -50,7 +50,6 @@
#include <string.h>
#define NBINS 256
-#define MAXMERGE 16
/* values for masks, weights, and other flags. */
#define I 1 /* mask out non-printable characters */
@@ -145,5 +144,7 @@
extern const char *tmpdir;
extern int stable_sort;
extern u_char gweights[NBINS];
+extern struct coldesc clist[(ND+1)*2];
+extern int ncols;
#include "extern.h"
Home |
Main Index |
Thread Index |
Old Index