History log of /openbsd-current/usr.bin/vi/ex/ex_subst.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.31 23-Jun-2023 millert

Fix a bug in ex's 's' command with the 'c' flag when 'number' is off.
The underlining was positioned in the wrong place. This fixes
the problem and matches historic ex behavior. OK op@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE
# 1.30 18-Apr-2017 deraadt

free(NULL) is ok so use it; from Michael W. Bombardieri


Revision tags: OPENBSD_6_1_BASE
# 1.29 02-Sep-2016 martijn

Fix the begin of word issue in vi(1).
Similar fix went in sed and ed.

Feedback and OK schwarze@


Revision tags: OPENBSD_6_0_BASE
# 1.28 27-May-2016 martijn

Revert CHAR_T removal. Some signedness flaws were introduced.
Found the hard way by jca@


# 1.27 02-May-2016 martijn

Remove CHAR_T in favor of native types.

schwarze@ agrees with the direction.
Few tweaks and OK tb@


Revision tags: OPENBSD_5_9_BASE
# 1.26 06-Jan-2016 millert

Remove the msg_cat() function and adjust its former callers.
From Martijn van Duren


# 1.25 06-Jan-2016 millert

Remove the numeric identifiers at the beginning of the messages
which used to be used as the message number to lookup in the
catalog. From Martijn van Duren


# 1.24 07-Dec-2015 mmcc

Remove needless type casts and corresponding type parameters from
allocation macros. No binary change.

ok tb@


# 1.23 19-Nov-2015 bentley

Remove cscope support in vi.

It makes no sense to keep support for a non-base tool in base, especially
for a feature that few if any people use.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.22 16-Jan-2015 deraadt

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)


# 1.21 12-Nov-2014 bentley

Ansify vi.

ok bcallah@ millert@


# 1.20 14-Oct-2014 deraadt

create a REALLOCARRAY macro, and use it where it gives us overflow
protection for free
ok guenther


# 1.19 09-Sep-2014 millert

We no longer need to convert "\<" and "\>" to "[[:<:]]" and "[[:>:]]"
respectively now that the former is natively supported. OK jsg@


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.18 25-Nov-2013 krw

Replace _texth CIRCLEQ with TAILQ. One down, five to go.

Read, tested, fixed and ok'd zhuk@ pelikan@ millert@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.17 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.16 27-Mar-2007 otto

Catch OOB access for tag searches mathching lines ending with \
From patrick keshishian with a twist by me. ok thib@


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.15 22-Apr-2006 ray

Removes unused variables and rename variables shadowing external
variables. No binary change.

Found by lint.

OK otto@ and jaredy@


Revision tags: OPENBSD_3_9_BASE
# 1.14 08-Jan-2006 miod

Explicit braces around macro fields and logical operations, gets rid of 148
warnings, no functional change.

From Ray Lai.


# 1.13 17-Oct-2005 otto

Use queue macros instead of directly accessing fields. ok pat@ "put it
in" deraadt@


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE
# 1.12 17-Feb-2002 millert

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)


# 1.11 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.10 29-Jan-2001 niklas

$OpenBSD$


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.9 26-Nov-1999 millert

o Update README files etc. from nvi-1.79 so they have the correct info
o make port.h empty since we there is nothing we lack
o include <sys/param.h>, not <sys/types.h> in files that use MIN/MAX macros
o add perl api support since we have libperl (off by default)


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.8 24-Aug-1997 millert

Check for >= UINT_MAX not > UINT_MAX


# 1.7 24-Aug-1997 millert

64bit fix wrt strtoul(3). Fix send to Keith.


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.6 17-Sep-1996 michaels

nvi 1.76:
+ Fix bug where ^V didn't keep input mapping from happening.
+ Fix a core dump bug in the R command.
+ Give up on licensing: no more shareware, adware, whatever.
+ Fix cursor positioning bug for C, S and c$ in an empty file.


# 1.5 23-Aug-1996 michaels

nvi 1.75


# 1.4 16-Aug-1996 michaels

nvi 1.73


# 1.3 24-Jul-1996 mickey

bring vi/ex up to 1.71


# 1.2 22-May-1996 deraadt

new vi


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_2_BASE
# 1.30 18-Apr-2017 deraadt

free(NULL) is ok so use it; from Michael W. Bombardieri


Revision tags: OPENBSD_6_1_BASE
# 1.29 02-Sep-2016 martijn

Fix the begin of word issue in vi(1).
Similar fix went in sed and ed.

Feedback and OK schwarze@


Revision tags: OPENBSD_6_0_BASE
# 1.28 27-May-2016 martijn

Revert CHAR_T removal. Some signedness flaws were introduced.
Found the hard way by jca@


# 1.27 02-May-2016 martijn

Remove CHAR_T in favor of native types.

schwarze@ agrees with the direction.
Few tweaks and OK tb@


Revision tags: OPENBSD_5_9_BASE
# 1.26 06-Jan-2016 millert

Remove the msg_cat() function and adjust its former callers.
From Martijn van Duren


# 1.25 06-Jan-2016 millert

Remove the numeric identifiers at the beginning of the messages
which used to be used as the message number to lookup in the
catalog. From Martijn van Duren


# 1.24 07-Dec-2015 mmcc

Remove needless type casts and corresponding type parameters from
allocation macros. No binary change.

ok tb@


# 1.23 19-Nov-2015 bentley

Remove cscope support in vi.

It makes no sense to keep support for a non-base tool in base, especially
for a feature that few if any people use.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.22 16-Jan-2015 deraadt

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)


# 1.21 12-Nov-2014 bentley

Ansify vi.

ok bcallah@ millert@


# 1.20 14-Oct-2014 deraadt

create a REALLOCARRAY macro, and use it where it gives us overflow
protection for free
ok guenther


# 1.19 09-Sep-2014 millert

We no longer need to convert "\<" and "\>" to "[[:<:]]" and "[[:>:]]"
respectively now that the former is natively supported. OK jsg@


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.18 25-Nov-2013 krw

Replace _texth CIRCLEQ with TAILQ. One down, five to go.

Read, tested, fixed and ok'd zhuk@ pelikan@ millert@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.17 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.16 27-Mar-2007 otto

Catch OOB access for tag searches mathching lines ending with \
From patrick keshishian with a twist by me. ok thib@


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.15 22-Apr-2006 ray

Removes unused variables and rename variables shadowing external
variables. No binary change.

Found by lint.

OK otto@ and jaredy@


Revision tags: OPENBSD_3_9_BASE
# 1.14 08-Jan-2006 miod

Explicit braces around macro fields and logical operations, gets rid of 148
warnings, no functional change.

From Ray Lai.


# 1.13 17-Oct-2005 otto

Use queue macros instead of directly accessing fields. ok pat@ "put it
in" deraadt@


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE
# 1.12 17-Feb-2002 millert

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)


# 1.11 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.10 29-Jan-2001 niklas

$OpenBSD$


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.9 26-Nov-1999 millert

o Update README files etc. from nvi-1.79 so they have the correct info
o make port.h empty since we there is nothing we lack
o include <sys/param.h>, not <sys/types.h> in files that use MIN/MAX macros
o add perl api support since we have libperl (off by default)


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.8 24-Aug-1997 millert

Check for >= UINT_MAX not > UINT_MAX


# 1.7 24-Aug-1997 millert

64bit fix wrt strtoul(3). Fix send to Keith.


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.6 17-Sep-1996 michaels

nvi 1.76:
+ Fix bug where ^V didn't keep input mapping from happening.
+ Fix a core dump bug in the R command.
+ Give up on licensing: no more shareware, adware, whatever.
+ Fix cursor positioning bug for C, S and c$ in an empty file.


# 1.5 23-Aug-1996 michaels

nvi 1.75


# 1.4 16-Aug-1996 michaels

nvi 1.73


# 1.3 24-Jul-1996 mickey

bring vi/ex up to 1.71


# 1.2 22-May-1996 deraadt

new vi


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision