History log of /openbsd-src/usr.bin/sed/misc.c (Results 1 – 13 of 13)
Revision Date Author Comments
# 58b8553b 17-Jul-2024 millert <millert@openbsd.org>

sed: use warn()/err() where appropriate

Use warn()/err() instead of sed's homegrown warning()/error() for
things other than parser problems. The warning()/error() functions
display the file and lin

sed: use warn()/err() where appropriate

Use warn()/err() instead of sed's homegrown warning()/error() for
things other than parser problems. The warning()/error() functions
display the file and line number in addition to the error message.
This also removes of the COMPILE/FATAL argument to error() since
now all calls to error() are for compilation/parsing issues.
OK op@ espie@

show more ...


# 5c4e30b8 20-Jan-2017 krw <krw@openbsd.org>

Split error() into error() and warning() so error() can be marked __dead to
appease gcc.

ok procter@ deraadt@


# 3ec97946 26-Oct-2015 mmcc <mmcc@openbsd.org>

Rename err() to error() to prevent confusion with the stdlib function.

Discussed with jca@.


# 61867d60 08-Oct-2014 deraadt <deraadt@openbsd.org>

add a xreallocarray() like the existing fatal xmalloc(), and use it to
detect potential integer.
ok doug


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

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
(th

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

show more ...


# fd361c21 08-Oct-2008 millert <millert@openbsd.org>

Allow sed to handle arbitrarily long lines. Also plug a memory
leak noticed in the process. Closes PR 5303. OK otto@ deraadt@


# e9473557 09-Oct-2006 tedu <tedu@openbsd.org>

pretty. the comma operator should not be used to cram two statements into
an if without braces, or worse, into a return.


# 76f50813 20-Jul-2004 deraadt <deraadt@openbsd.org>

ansi; khalek@linuxgamers.net


# f75387cb 03-Jun-2003 millert <millert@openbsd.org>

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# e7beb4a7 19-Feb-2002 millert <millert@openbsd.org>

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# d8d7cb97 25-Jul-1997 mickey <mickey@openbsd.org>

#if __STDC__ --> #ifdef __STDC__


# 1258a77d 26-Jun-1996 deraadt <deraadt@openbsd.org>

rcsid


# df930be7 18-Oct-1995 deraadt <deraadt@openbsd.org>

initial import of NetBSD tree