From owner-svn-ports-head@freebsd.org Fri May 13 19:01:29 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 50D3EB3AC77; Fri, 13 May 2016 19:01:29 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 12B9D1CAE; Fri, 13 May 2016 19:01:29 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4DJ1SGt060519; Fri, 13 May 2016 19:01:28 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4DJ1R4h060511; Fri, 13 May 2016 19:01:27 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201605131901.u4DJ1R4h060511@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Fri, 13 May 2016 19:01:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r415135 - in head/editors/gate: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2016 19:01:29 -0000 Author: bapt Date: Fri May 13 19:01:27 2016 New Revision: 415135 URL: https://svnweb.freebsd.org/changeset/ports/415135 Log: Prevent collision with getline(3) Added: head/editors/gate/files/patch-gate.h (contents, props changed) head/editors/gate/files/patch-line.c (contents, props changed) head/editors/gate/files/patch-main.c (contents, props changed) Modified: head/editors/gate/Makefile head/editors/gate/files/patch-Makefile.in head/editors/gate/files/patch-configure head/editors/gate/files/patch-spel.c head/editors/gate/files/patch-subs.c Modified: head/editors/gate/Makefile ============================================================================== --- head/editors/gate/Makefile Fri May 13 18:59:03 2016 (r415134) +++ head/editors/gate/Makefile Fri May 13 19:01:27 2016 (r415135) @@ -15,6 +15,7 @@ RUN_DEPENDS= aspell:textproc/aspell USES= ncurses GNU_CONFIGURE= yes +USE_CSTD= gnu89 CONFIGURE_ARGS= --with-aspell=${LOCALBASE}/bin/aspell ALL_TARGET= gate gate.1 Modified: head/editors/gate/files/patch-Makefile.in ============================================================================== --- head/editors/gate/files/patch-Makefile.in Fri May 13 18:59:03 2016 (r415134) +++ head/editors/gate/files/patch-Makefile.in Fri May 13 19:01:27 2016 (r415135) @@ -1,6 +1,6 @@ --- Makefile.in.orig 2003-06-19 16:47:56 UTC +++ Makefile.in -@@ -25,7 +25,7 @@ DIST= README $(SRCS) gate.h config.h.in +@@ -25,7 +25,7 @@ DIST= README $(SRCS) gate.h config.h.in Makefile.in gate.1.C gate.help CHANGES gate: $(OBJS) Modified: head/editors/gate/files/patch-configure ============================================================================== --- head/editors/gate/files/patch-configure Fri May 13 18:59:03 2016 (r415134) +++ head/editors/gate/files/patch-configure Fri May 13 19:01:27 2016 (r415135) @@ -9,3 +9,12 @@ LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <> confdefs.h < is NULL, then this does a more ordinary, wrapless read. + */ + +-int getline(char *buf, char *wbuf, int *wcol, char *prompt) ++int get_line(char *buf, char *wbuf, int *wcol, char *prompt) + { + int linemode= (wbuf == NULL); /* reading single line, not file */ + int wrapon= !linemode; /* is line wrap enabled? */ Added: head/editors/gate/files/patch-main.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/gate/files/patch-main.c Fri May 13 19:01:27 2016 (r415135) @@ -0,0 +1,11 @@ +--- main.c.orig 2005-01-24 17:05:01 UTC ++++ main.c +@@ -87,7 +87,7 @@ int main(int argc,char **argv) + wcol= 0; + for (;;) + { +- if (getline(bf[sw], bf[!sw], &wcol, prompt)) ++ if (get_line(bf[sw], bf[!sw], &wcol, prompt)) + { + putchar('\n'); + done(RET_ENTER); Modified: head/editors/gate/files/patch-spel.c ============================================================================== --- head/editors/gate/files/patch-spel.c Fri May 13 18:59:03 2016 (r415134) +++ head/editors/gate/files/patch-spel.c Fri May 13 19:01:27 2016 (r415135) @@ -1,13 +1,11 @@ -diff --git spel.c spel.c -index 5c53256..1e9ad04 100644 ---- spel.c +--- spel.c.orig 2003-06-19 16:55:51 UTC +++ spel.c -@@ -151,7 +151,7 @@ empty_repl() - /* ADD_REPL - Add the given replacement to the list of replacements. - * "replace" may be NULL to indicate that the word is to be ignored. - */ -- -+void - add_repl(char *word, int word_len, char *replace) - { - struct repl *r; +@@ -683,7 +683,7 @@ int fix_word(char *line, int offset, int + for(;;) + { + subtask= 1; +- if (getline(bf,NULL,&wcol,st)) ++ if (get_line(bf,NULL,&wcol,st)) + { + printf("\nSpell Check Interupted.\n"); + return 1; Modified: head/editors/gate/files/patch-subs.c ============================================================================== --- head/editors/gate/files/patch-subs.c Fri May 13 18:59:03 2016 (r415134) +++ head/editors/gate/files/patch-subs.c Fri May 13 19:01:27 2016 (r415135) @@ -1,7 +1,14 @@ -diff --git subs.c subs.c -index 287d9d3..a6caea9 100644 ---- subs.c +--- subs.c.orig 2005-01-24 06:16:01 UTC +++ subs.c +@@ -74,7 +74,7 @@ int ask_spell_subs(char **replace, int * + subtask= 1; + sprintf(st,"Replacement for \"%.*s\" (? for help): ", + strlen(match+1)-1, match+1); +- if (getline(*replace= bf,NULL,wcol,st)) ++ if (get_line(*replace= bf,NULL,wcol,st)) + { + printf("\nSpell Check Interupted.\n"); + do_subs= 'q'; @@ -429,7 +429,7 @@ int cliplast(char *lastbuf, int bufsize) #endif