From owner-svn-ports-head@freebsd.org Wed Sep 2 08:11:59 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A2B5D3D084E; Wed, 2 Sep 2020 08:11:59 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BhGqz3qTYz4QDl; Wed, 2 Sep 2020 08:11:59 +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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 669DC27375; Wed, 2 Sep 2020 08:11:59 +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 0828BxJZ033755; Wed, 2 Sep 2020 08:11:59 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0828BvYB033746; Wed, 2 Sep 2020 08:11:57 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <202009020811.0828BvYB033746@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Wed, 2 Sep 2020 08:11:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r547340 - head/math/sc-im/files X-SVN-Group: ports-head X-SVN-Commit-Author: bapt X-SVN-Commit-Paths: head/math/sc-im/files X-SVN-Commit-Revision: 547340 X-SVN-Commit-Repository: ports 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.33 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: Wed, 02 Sep 2020 08:11:59 -0000 Author: bapt Date: Wed Sep 2 08:11:57 2020 New Revision: 547340 URL: https://svnweb.freebsd.org/changeset/ports/547340 Log: Fix build with -fno-common (a similar patch exist already upstream) Added: head/math/sc-im/files/patch-cmds.c (contents, props changed) head/math/sc-im/files/patch-cmds__normal.c (contents, props changed) head/math/sc-im/files/patch-cmds__visual.c (contents, props changed) head/math/sc-im/files/patch-color.c (contents, props changed) head/math/sc-im/files/patch-color.h (contents, props changed) head/math/sc-im/files/patch-filter.c (contents, props changed) head/math/sc-im/files/patch-filter.h (contents, props changed) head/math/sc-im/files/patch-input.c (contents, props changed) head/math/sc-im/files/patch-tui.c (contents, props changed) Modified: head/math/sc-im/files/patch-cmds__command.c Added: head/math/sc-im/files/patch-cmds.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sc-im/files/patch-cmds.c Wed Sep 2 08:11:57 2020 (r547340) @@ -0,0 +1,11 @@ +--- cmds.c.orig 2019-02-22 18:41:46 UTC ++++ cmds.c +@@ -65,7 +65,7 @@ + #endif + + void syncref(register struct enode *e); +-extern unsigned int shall_quit; ++extern int shall_quit; + char insert_edit_submode; + struct ent * freeents = NULL; // keep deleted ents around before sync_refs + wchar_t interp_line[BUFFERSIZE]; Modified: head/math/sc-im/files/patch-cmds__command.c ============================================================================== --- head/math/sc-im/files/patch-cmds__command.c Wed Sep 2 08:08:51 2020 (r547339) +++ head/math/sc-im/files/patch-cmds__command.c Wed Sep 2 08:11:57 2020 (r547340) @@ -1,5 +1,14 @@ --- cmds_command.c.orig 2019-02-22 18:41:46 UTC +++ cmds_command.c +@@ -81,7 +81,7 @@ extern char * rev; + extern struct dictionary * user_conf_d; + + wchar_t inputline[BUFFERSIZE]; +-wchar_t interp_line[BUFFERSIZE]; ++extern wchar_t interp_line[BUFFERSIZE]; + int inputline_pos; /**< Position in window. Some chars has 2 chars width */ + // see https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms + int real_inputline_pos; /**< Real position in inputline */ @@ -853,7 +853,7 @@ void do_commandmode(struct block * sb) { exec_cmd(line); Added: head/math/sc-im/files/patch-cmds__normal.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sc-im/files/patch-cmds__normal.c Wed Sep 2 08:11:57 2020 (r547340) @@ -0,0 +1,11 @@ +--- cmds_normal.c.orig 2019-02-22 18:41:46 UTC ++++ cmds_normal.c +@@ -70,7 +70,7 @@ extern int cmd_multiplier; + extern void start_visualmode(int tlrow, int tlcol, int brrow, int brcol); + extern void ins_in_line(wint_t d); + +-wchar_t interp_line[BUFFERSIZE]; ++extern wchar_t interp_line[BUFFERSIZE]; + + #ifdef HISTORY_FILE + extern struct history * commandline_history; Added: head/math/sc-im/files/patch-cmds__visual.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sc-im/files/patch-cmds__visual.c Wed Sep 2 08:11:57 2020 (r547340) @@ -0,0 +1,11 @@ +--- cmds_visual.c.orig 2019-02-22 18:41:46 UTC ++++ cmds_visual.c +@@ -440,7 +440,7 @@ void do_visualmode(struct block * buf) { + sc_error("Locked cells encountered. Nothing changed"); + return; + } +- wchar_t interp_line[BUFFERSIZE]; ++ extern wchar_t interp_line[BUFFERSIZE]; + if (buf->value == L'{') swprintf(interp_line, BUFFERSIZE, L"leftjustify %s", v_name(r->tlrow, r->tlcol)); + else if (buf->value == L'}') swprintf(interp_line, BUFFERSIZE, L"rightjustify %s", v_name(r->tlrow, r->tlcol)); + else if (buf->value == L'|') swprintf(interp_line, BUFFERSIZE, L"center %s", v_name(r->tlrow, r->tlcol)); Added: head/math/sc-im/files/patch-color.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sc-im/files/patch-color.c Wed Sep 2 08:11:57 2020 (r547340) @@ -0,0 +1,11 @@ +--- color.c.orig 2019-02-22 18:41:46 UTC ++++ color.c +@@ -60,6 +60,8 @@ + #include "conf.h" + #include "cmds.h" + ++struct ucolor ucolors[N_INIT_PAIRS] = {}; ++ + static struct dictionary * d_colors_param = NULL; + + struct dictionary * get_d_colors_param() { Added: head/math/sc-im/files/patch-color.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sc-im/files/patch-color.h Wed Sep 2 08:11:57 2020 (r547340) @@ -0,0 +1,11 @@ +--- color.h.orig 2019-02-22 18:41:46 UTC ++++ color.h +@@ -57,7 +57,7 @@ struct ucolor { + int blink; + }; + +-struct ucolor ucolors[N_INIT_PAIRS]; ++extern struct ucolor ucolors[N_INIT_PAIRS]; + + struct dictionary * get_d_colors_param(); + void start_default_ucolors(); Added: head/math/sc-im/files/patch-filter.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sc-im/files/patch-filter.c Wed Sep 2 08:11:57 2020 (r547340) @@ -0,0 +1,11 @@ +--- filter.c.orig 2019-02-22 18:41:46 UTC ++++ filter.c +@@ -61,6 +61,8 @@ static int howmany = 0; /**< how many filters wer + static int active = 0; /**< indicates if those filters are applied or not */ + static int * results = NULL; /**< this keeps the results of the applied filters */ + ++static struct filter_item * filters = NULL; ++ + /** + * \brief Add a filter to filters structure + * Added: head/math/sc-im/files/patch-filter.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sc-im/files/patch-filter.h Wed Sep 2 08:11:57 2020 (r547340) @@ -0,0 +1,11 @@ +--- filter.h.orig 2019-02-22 18:41:46 UTC ++++ filter.h +@@ -44,7 +44,7 @@ + + struct filter_item { + char * eval; +-} * filters; ++}; + + void show_filters(); + void add_filter(char * criteria); Added: head/math/sc-im/files/patch-input.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sc-im/files/patch-input.c Wed Sep 2 08:11:57 2020 (r547340) @@ -0,0 +1,10 @@ +--- input.c.orig 2019-02-22 18:41:46 UTC ++++ input.c +@@ -64,7 +64,6 @@ static int d; // char read from stdin + int return_value; // return value of getch() + int cmd_multiplier = 0; // Multiplier + int cmd_pending = 0; // Command pending +-int shall_quit; // Break loop if ESC key is pressed + + /** + * \brief Reads stdin for a valid command Added: head/math/sc-im/files/patch-tui.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sc-im/files/patch-tui.c Wed Sep 2 08:11:57 2020 (r547340) @@ -0,0 +1,10 @@ +--- tui.c.orig 2020-09-02 08:06:29 UTC ++++ tui.c +@@ -102,7 +102,6 @@ WINDOW * main_win; + WINDOW * input_win; + SCREEN * sstderr; + SCREEN * sstdout; +-srange * ranges; + + /** + * \brief Called to start UI