pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/nbsed/files Synch with basesrc:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/81d3395733c4
branches:  trunk
changeset: 460182:81d3395733c4
user:      jschauma <jschauma%pkgsrc.org@localhost>
date:      Sat Aug 23 22:13:56 2003 +0000

description:
Synch with basesrc:
The 'inline' keyword is a nonstandard extension of GCC, AFAIK.
MipsPro does not like it, so remove it.

Add fgetln prototype ifndef HAVE_FGETLN.
This makes this compile on Irix with the MipsPro Compiler as well as gcc.

diffstat:

 textproc/nbsed/files/defs.h    |   8 ++++++--
 textproc/nbsed/files/process.c |  12 ++++++------
 2 files changed, 12 insertions(+), 8 deletions(-)

diffs (75 lines):

diff -r b79652fb4f69 -r 81d3395733c4 textproc/nbsed/files/defs.h
--- a/textproc/nbsed/files/defs.h       Sat Aug 23 22:09:40 2003 +0000
+++ b/textproc/nbsed/files/defs.h       Sat Aug 23 22:13:56 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: defs.h,v 1.1.1.1 2003/08/18 17:34:59 agc Exp $ */
+/*     $NetBSD: defs.h,v 1.2 2003/08/23 22:13:56 jschauma Exp $        */
 
 /*-
  * Copyright (c) 1992 Diomidis Spinellis.
@@ -37,7 +37,7 @@
  * SUCH DAMAGE.
  *
  *     from: @(#)defs.h        8.1 (Berkeley) 6/6/93
- *     $NetBSD: defs.h,v 1.1.1.1 2003/08/18 17:34:59 agc Exp $
+ *     $NetBSD: defs.h,v 1.2 2003/08/23 22:13:56 jschauma Exp $
  */
 
 /*
@@ -150,3 +150,7 @@
 #ifndef DEFFILEMODE
 #define DEFFILEMODE     (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
 #endif
+
+#ifndef HAVE_FGETLN
+char *fgetln(FILE *, size_t *);
+#endif
diff -r b79652fb4f69 -r 81d3395733c4 textproc/nbsed/files/process.c
--- a/textproc/nbsed/files/process.c    Sat Aug 23 22:09:40 2003 +0000
+++ b/textproc/nbsed/files/process.c    Sat Aug 23 22:13:56 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process.c,v 1.1.1.1 2003/08/18 17:34:59 agc Exp $      */
+/*     $NetBSD: process.c,v 1.2 2003/08/23 22:13:56 jschauma Exp $     */
 
 /*-
  * Copyright (c) 1992 Diomidis Spinellis.
@@ -47,7 +47,7 @@
 #if 0
 static char sccsid[] = "@(#)process.c  8.6 (Berkeley) 4/20/94";
 #else
-__RCSID("$NetBSD: process.c,v 1.1.1.1 2003/08/18 17:34:59 agc Exp $");
+__RCSID("$NetBSD: process.c,v 1.2 2003/08/23 22:13:56 jschauma Exp $");
 #endif
 #endif /* not lint */
 
@@ -103,10 +103,10 @@
 #define        hs              HS.space
 #define        hsl             HS.len
 
-static inline int       applies(struct s_command *);
+static int              applies(struct s_command *);
 static void             flush_appends(void);
 static void             lputs(char *);
-static inline int       regexec_e(regex_t *, const char *, int, int, size_t);
+static int              regexec_e(regex_t *, const char *, int, int, size_t);
 static void             regsub(SPACE *, char *, char *);
 static int              substitute(struct s_command *);
 
@@ -310,7 +310,7 @@
  * Return TRUE if the command applies to the current line.  Sets the inrange
  * flag to process ranges.  Interprets the non-select (``!'') flag.
  */
-static inline int
+static int
 applies(struct s_command *cp)
 {
        int r;
@@ -539,7 +539,7 @@
                err(FATAL, "stdout: %s", strerror(errno ? errno : EIO));
 }
 
-static inline int
+static int
 regexec_e(regex_t *preg, const char *string, int eflags, int nomatch, size_t slen)
 {
        int eval;



Home | Main Index | Thread Index | Old Index