summaryrefslogtreecommitdiffstats
path: root/bin/ed/re.c
Commit message (Collapse)AuthorAgeFilesLines
* More -Wmissing-variable-declarations fixes.ed2012-10-191-3/+0
| | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* Make this code WARNS=6 clean again (after GCC 3.1.1 import).ru2003-07-201-13/+13
| | | | Submitted by: Marius Strobl <marius@alchemy.franken.de>
* Consistently use __FBSDIDobrien2002-06-301-4/+2
|
* o __P has been reovedimp2002-02-021-5/+3
| | | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o gc some #ifdef sun ... #endif code Approved by: arch@, new style(9)
* o Correctly define rcsid.mike2001-08-061-12/+11
| | | | | | | | | | | o Add consts where appropriate. o Rename some variables that were shadowing global declarations. o Remove register storage-classes. o Make errmsg a const, so we can just set error messages instead of using sprintf/strcpy. o Set WARNS=2 Reviewed by: bde, des
* Use PATH_MAX rather than MAXPATHLEN. Also fix a possible off by oneimp2001-05-291-1/+1
| | | | | | | error caused by the -1 being on the wrong side of the comparison. This would not cause an overflow, as near as I can tell, because we truncate later anyway. We'd just fail to get a diagnostic for 1024 and 1025 byte file names.
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* sccsid -> rcsid and fix some minor nits.steve1997-08-071-2/+5
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* -Wall cleaning.steve1996-12-141-2/+2
|
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
| | | | Reviewed by: phk
* You will find enclosed some changes to make gcc -Wall more happy injoerg1995-03-191-2/+2
| | | | | | | | | /usr/src/bin. Note that some patches are still needed in that directory. I (Joerg) finished most of Philippe's cleanup. /bin/sh will still need *allot* of work, however. Submitted by: charnier@lirmm.fr (Philippe Charnier)
* Added $Id$dg1994-09-241-0/+2
|
* use umask 077 for buffer filealm1994-03-231-1/+1
|
* Fixed range address bug: 1,2, == 2,2 not 2,.alm1994-02-011-41/+26
| | | | | Overhauled the name space, reworked some modules and removed the obsolescent Addison-Wesley copyright.
* Only a single slash (/) is now necessary to repeat a search as per Theo'salm1993-08-271-5/+2
| | | | | | | | | | | request. So the command: /pattern/;/ finds the second line containing "pattern" after the current line. Caveat: The commands `st' and `sr' are now both legal and have very different meanings. This is because ed(1) extends POSIX to include the old Berkeley syntax s[rgp]*. (So should two slashes still be required in the case of the substitute command, as SunOS ed does?)
* Nullify pattern after failed regcompalm1993-08-161-1/+2
|
* added (unsiged) cast to avoid int overflowalm1993-08-091-7/+0
| | | | removed REGEX directive
* fixed undo within a global command (would corrupt the buffer)alm1993-06-261-1/+1
| | | | | changed move within a global to behave as in SunOS added a couple error messages
* POSIX ed version 0.6 by Andrew Moore (alm@netcom.com).alm1993-06-181-0/+156
OpenPOWER on IntegriCloud