Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/sed Hide more subroutines in processing phase.
details: https://anonhg.NetBSD.org/src/rev/f762eff93815
branches: trunk
changeset: 336427:f762eff93815
user: asau <asau%NetBSD.org@localhost>
date: Sun Mar 01 01:07:46 2015 +0000
description:
Hide more subroutines in processing phase.
diffstat:
usr.bin/sed/extern.h | 4 +---
usr.bin/sed/process.c | 10 ++++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (69 lines):
diff -r 910845cf1ab2 -r f762eff93815 usr.bin/sed/extern.h
--- a/usr.bin/sed/extern.h Sun Mar 01 01:00:07 2015 +0000
+++ b/usr.bin/sed/extern.h Sun Mar 01 01:07:46 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.18 2015/03/01 01:00:07 asau Exp $ */
+/* $NetBSD: extern.h,v 1.19 2015/03/01 01:07:46 asau Exp $ */
/*-
* Copyright (c) 1992 Diomidis Spinellis.
@@ -63,9 +63,7 @@
extern int rflags; /* regex flags to use */
void compile(void);
-void cspace(SPACE *, const char *, size_t, enum e_spflag);
int process(void);
-void resetstate(void);
char *strregerror(int, regex_t *);
void *xmalloc(size_t);
void *xrealloc(void *, size_t);
diff -r 910845cf1ab2 -r f762eff93815 usr.bin/sed/process.c
--- a/usr.bin/sed/process.c Sun Mar 01 01:00:07 2015 +0000
+++ b/usr.bin/sed/process.c Sun Mar 01 01:07:46 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: process.c,v 1.50 2015/03/01 01:00:07 asau Exp $ */
+/* $NetBSD: process.c,v 1.51 2015/03/01 01:07:46 asau Exp $ */
/*-
* Copyright (c) 1992 Diomidis Spinellis.
@@ -38,7 +38,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: process.c,v 1.50 2015/03/01 01:00:07 asau Exp $");
+__RCSID("$NetBSD: process.c,v 1.51 2015/03/01 01:07:46 asau Exp $");
#ifdef __FBSDID
__FBSDID("$FreeBSD: head/usr.bin/sed/process.c 192732 2009-05-25 06:45:33Z brian $");
#endif
@@ -81,11 +81,13 @@
static __inline int applies(struct s_command *);
static void cfclose(struct s_command *, struct s_command *);
+static void cspace(SPACE *, const char *, size_t, enum e_spflag);
static void do_tr(struct s_tr *);
static void flush_appends(void);
static void lputs(char *, size_t);
static __inline int regexec_e(regex_t *, const char *, int, int, size_t);
static void regsub(SPACE *, char *, char *);
+static void resetstate(void);
static int substitute(struct s_command *);
static FILE *infile; /* Current input file */
@@ -375,7 +377,7 @@
/*
* Reset the sed processor to its initial state.
*/
-void
+static void
resetstate(void)
{
struct s_command *cp;
@@ -774,7 +776,7 @@
* Concatenate space: append the source space to the destination space,
* allocating new space as necessary.
*/
-void
+static void
cspace(SPACE *sp, const char *p, size_t len, enum e_spflag spflag)
{
size_t tlen;
Home |
Main Index |
Thread Index |
Old Index