head 1.5; access; symbols pkgsrc-2026Q1:1.5.0.8 pkgsrc-2026Q1-base:1.5 pkgsrc-2025Q4:1.5.0.6 pkgsrc-2025Q4-base:1.5 pkgsrc-2025Q3:1.5.0.4 pkgsrc-2025Q3-base:1.5 pkgsrc-2025Q2:1.5.0.2 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.4.0.16 pkgsrc-2025Q1-base:1.4 pkgsrc-2024Q4:1.4.0.14 pkgsrc-2024Q4-base:1.4 pkgsrc-2024Q3:1.4.0.12 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.4.0.10 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.4.0.8 pkgsrc-2024Q1-base:1.4 pkgsrc-2023Q4:1.4.0.6 pkgsrc-2023Q4-base:1.4 pkgsrc-2023Q3:1.4.0.4 pkgsrc-2023Q3-base:1.4 pkgsrc-2023Q2:1.4.0.2 pkgsrc-2023Q2-base:1.4 pkgsrc-2023Q1:1.3.0.70 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.68 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.66 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.64 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.3.0.62 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.3.0.60 pkgsrc-2021Q4-base:1.3 pkgsrc-2021Q3:1.3.0.58 pkgsrc-2021Q3-base:1.3 pkgsrc-2021Q2:1.3.0.56 pkgsrc-2021Q2-base:1.3 pkgsrc-2021Q1:1.3.0.54 pkgsrc-2021Q1-base:1.3 pkgsrc-2020Q4:1.3.0.52 pkgsrc-2020Q4-base:1.3 pkgsrc-2020Q3:1.3.0.50 pkgsrc-2020Q3-base:1.3 pkgsrc-2020Q2:1.3.0.46 pkgsrc-2020Q2-base:1.3 pkgsrc-2020Q1:1.3.0.26 pkgsrc-2020Q1-base:1.3 pkgsrc-2019Q4:1.3.0.48 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.3.0.44 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.42 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.40 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.38 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.36 pkgsrc-2018Q3-base:1.3 pkgsrc-2018Q2:1.3.0.34 pkgsrc-2018Q2-base:1.3 pkgsrc-2018Q1:1.3.0.32 pkgsrc-2018Q1-base:1.3 pkgsrc-2017Q4:1.3.0.30 pkgsrc-2017Q4-base:1.3 pkgsrc-2017Q3:1.3.0.28 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.3.0.24 pkgsrc-2017Q2-base:1.3 pkgsrc-2017Q1:1.3.0.22 pkgsrc-2017Q1-base:1.3 pkgsrc-2016Q4:1.3.0.20 pkgsrc-2016Q4-base:1.3 pkgsrc-2016Q3:1.3.0.18 pkgsrc-2016Q3-base:1.3 pkgsrc-2016Q2:1.3.0.16 pkgsrc-2016Q2-base:1.3 pkgsrc-2016Q1:1.3.0.14 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.3.0.12 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.10 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.8 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.6 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.4 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.2 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.2.0.14 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.12 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.10 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.8 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.6 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.4 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.2 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.1.1.1.0.30 pkgsrc-2012Q3-base:1.1.1.1 pkgsrc-2012Q2:1.1.1.1.0.28 pkgsrc-2012Q2-base:1.1.1.1 pkgsrc-2012Q1:1.1.1.1.0.26 pkgsrc-2012Q1-base:1.1.1.1 pkgsrc-2011Q4:1.1.1.1.0.24 pkgsrc-2011Q4-base:1.1.1.1 pkgsrc-2011Q3:1.1.1.1.0.22 pkgsrc-2011Q3-base:1.1.1.1 pkgsrc-2011Q2:1.1.1.1.0.20 pkgsrc-2011Q2-base:1.1.1.1 pkgsrc-2011Q1:1.1.1.1.0.18 pkgsrc-2011Q1-base:1.1.1.1 pkgsrc-2010Q4:1.1.1.1.0.16 pkgsrc-2010Q4-base:1.1.1.1 pkgsrc-2010Q3:1.1.1.1.0.14 pkgsrc-2010Q3-base:1.1.1.1 pkgsrc-2010Q2:1.1.1.1.0.12 pkgsrc-2010Q2-base:1.1.1.1 pkgsrc-2010Q1:1.1.1.1.0.10 pkgsrc-2010Q1-base:1.1.1.1 pkgsrc-2009Q4:1.1.1.1.0.8 pkgsrc-2009Q4-base:1.1.1.1 pkgsrc-2009Q3:1.1.1.1.0.6 pkgsrc-2009Q3-base:1.1.1.1 pkgsrc-2009Q2:1.1.1.1.0.4 pkgsrc-2009Q2-base:1.1.1.1 pkgsrc-2009Q1:1.1.1.1.0.2 pkgsrc-2009Q1-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2025.05.23.09.28.50; author jperkin; state Exp; branches; next 1.4; commitid d7IBn3OjEIbKQ0WF; 1.4 date 2023.04.25.21.53.01; author nikita; state Exp; branches; next 1.3; commitid cajNc2NB9ZokmxmE; 1.3 date 2014.07.07.18.06.58; author jperkin; state Exp; branches; next 1.2; commitid iqNMifWzEPShqtHx; 1.2 date 2012.12.12.12.47.50; author wiz; state Exp; branches; next 1.1; 1.1 date 2009.02.13.11.04.14; author abs; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2009.02.13.11.04.14; author abs; state Exp; branches; next ; desc @@ 1.5 log @mg: Various portability fixes. @ text @$NetBSD: patch-af,v 1.4 2023/04/25 21:53:01 nikita Exp $ Unsigned char fixes. --- grep.c.orig 2024-07-09 15:39:50.000000000 +0000 +++ grep.c @@@@ -130,7 +130,7 @@@@ gid(int f, int n) /* Skip backwards over delimiters we are currently on */ while (i > 0) { c = lgetc(curwp->w_dotp, i); - if (isalnum(c) || c == '_') + if (isalnum((unsigned char)c) || c == '_') break; i--; @@@@ -139,14 +139,14 @@@@ gid(int f, int n) /* Skip the symbol itself */ for (; i > 0; i--) { c = lgetc(curwp->w_dotp, i - 1); - if (!isalnum(c) && c != '_') + if (!isalnum((unsigned char)c) && c != '_') break; } /* Fill the symbol in cprompt[] */ for (j = 0; j < sizeof(cprompt) - 1 && i < llength(curwp->w_dotp); j++, i++) { c = lgetc(curwp->w_dotp, i); - if (!isalnum(c) && c != '_') + if (!isalnum((unsigned char)c) && c != '_') break; cprompt[j] = c; } @ 1.4 log @mg: update to version 20230406 upstream URL changed. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.3 2014/07/07 18:06:58 jperkin Exp $ d3 1 a3 1 Include limits.h for INT_{MIN,MAX} d5 1 a5 1 --- grep.c.orig 2011-01-02 22:57:56.000000000 +0000 d7 1 a7 1 @@@@ -152,7 +153,7 @@@@ gid(int f, int n) d16 1 a16 1 @@@@ -161,14 +162,14 @@@@ gid(int f, int n) @ 1.3 log @Various fixes for SunOS support. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.2 2012/12/12 12:47:50 wiz Exp $ a6 8 @@@@ -8,6 +8,7 @@@@ #include #include +#include #include "libgen.h" @ 1.2 log @Update to 20110905 provided by ISIHARA Takanori in PR 47079. Over 2 years of changes. @ text @d1 3 a3 1 $NetBSD: patch-af,v 1.1.1.1 2009/02/13 11:04:14 abs Exp $ d7 9 a15 1 @@@@ -152,7 +152,7 @@@@ gid(int f, int n) d24 1 a24 1 @@@@ -161,14 +161,14 @@@@ gid(int f, int n) @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- grep.c.orig 2008-12-30 12:39:43.000000000 +0000 @ 1.1.1.1 log @Added editors/mg version 20090107 This is the portable version of the OpenBSD mg editor Mg (mg) is a Public Domain EMACS style editor. It is "broadly" compatible with GNU Emacs, the latest creation of Richard M. Stallman, Chief GNUisance and inventor of Emacs. GNU Emacs (and other portions of GNU as they are released) are essentially free, (there are handling charges for obtaining it) and so is Mg. You may never have to learn another editor. (But probably will, at least long enough to port Mg...) Mg was formerly named MicroGnuEmacs, the name change was done at the request of Richard Stallman. Mg is not associated with the GNU project, and most of it does not have the copyright restrictions present in GNU Emacs. (However, some of the system dependent modules and the regular expression module do have copyright notices. Look at the source code for exact copyright restrictions.) The Mg authors individually may or may not agree with the opinions expressed by Richard Stallman in "The GNU Manifesto". This program is intended to be a small, fast, and portable editor for people who can't (or don't want to) run real Emacs for one reason or another. It is compatible with GNU because there shouldn't be any reason to learn more than one Emacs flavor. @ text @@