summaryrefslogtreecommitdiffstats
path: root/usr.bin/mg/cscope.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace fgetln(3) with getline(3) which is portable and less error prone.florian2017-10-121-11/+27
| | | | | From Scott Cheloha (scottcheloha AT gmail), thanks! OK bcallah
* Bounds check while stripping trailing slashes. From max atsunil2016-01-191-2/+2
| | | | | | max-fillinger.net. Ok lum@
* Update my mail address.sunil2016-01-191-2/+2
|
* Fix bad indents. From max at max-fillinger.netsunil2016-01-191-35/+35
| | | | Ok lum@ jasper@
* Check snprintf(3) return value for overflow instead of manual lengthsunil2016-01-191-5/+4
| | | | | | check. From max at max-fillinger.net. Ok lum@ jasper@
* Skip empty entries in $PATH instead of erroneously interpretingsunil2016-01-191-2/+2
| | | | | | them as ".". Ok lum@ jasper@
* Mark eread(), veread(), and eformat() as printf-like andguenther2015-09-291-2/+2
| | | | | | Convert eread(buf, a2, a3, a4) to eread("%s", a2, a3, a4, buf) ok millert@ lum@
* whitespacejasper2015-09-261-27/+26
|
* Clean up the includes in mg.bcallah2015-03-191-4/+6
| | | | | | | | | | This does the following: Moves all POSIX headers from sysdef.h into the individual .c files so that each file now only includes what it needs. All headers are properly sorted. Moves the remainder of sysdef.h to other files (mostly def.h) and deletes sysdef.h now that it's no longer contains anything. Tweak a comment that references sysdef.h so that it no longer does that. ok florian@
* Stop using <sys/param.h>; replace MAXPATHLEN with PATH_MAX, stop using MAX(),guenther2014-11-161-1/+2
| | | | | | | and pull in <limits.h> for *_MAX constants. inspired on a diff from Kamil Rytarowski (n54 (at) gmx.com) ok bcallah@
* ctype macros/functions expect unsigned char values. Note that the lgetc()guenther2014-11-161-2/+2
| | | | | | | macro does the cast internally like getc() does, so its return should be put an in int for the same reason. based on a diff from Kamil Rytarowski (n54 (at) gmx.com)
* fix fd leaks in error paths missed last time aroundjsg2014-04-101-3/+7
|
* Add some missing dobeeps.lum2014-03-201-1/+17
| | | | ok florian@
* fix fd leaks in error pathsjsg2014-01-221-3/+7
| | | | ok krw@ phessler@
* Maintain mg's Public Domain license heritage.lum2012-07-021-13/+3
| | | | Sunil Nimmagadda agrees.
* add missing rcs idsjasper2012-06-261-0/+2
|
* Add some cscope support to mg. From Sunil Nimmagadda. Due to somelum2012-06-071-0/+617
structural limitations in mg, mg doesn't behave exactly the same as emacs cscope (see the README) but is still very usable. man page bits reviewed by jmc@, otherwise tested and reviewed by myself.