OpenBSD CVS

CVS log for src/usr.bin/mg/cscope.c


[BACK] Up to [local] / src / usr.bin / mg

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.22 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:11 2023 UTC (14 months, 1 week ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.21: +2 -12 lines
Diff to previous 1.21 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.21 / (download) - annotate - [select for diffs], Tue May 24 16:42:19 2022 UTC (23 months, 3 weeks ago) by op
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

fix some dobeep_msgs calls

dobeep_msgs isn't printf-like: it just prints the two arguments
separated by a space.  When it was introduced, some calls from ewprintf
were incorrectly translated and the "%s" remained.

ok florian@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Mar 1 10:51:14 2021 UTC (3 years, 2 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Put the hardcoded '\n' character which is found throughout mg into a
buffer specific variable. The diff should not produce any behavourial
changes in mg.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Feb 28 15:30:35 2021 UTC (3 years, 2 months ago) by lum
Branch: MAIN
Changes since 1.18: +39 -78 lines
Diff to previous 1.18 (colored)

Add dobeep functions that take messages to buffer.c and cscope.c
No functional change intended.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jul 3 03:24:02 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

snprintf/vsnprintf return < 0 on error, rather than -1.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Oct 12 14:12:00 2017 UTC (6 years, 7 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.16: +27 -11 lines
Diff to previous 1.16 (colored)

Replace fgetln(3) with getline(3) which is portable and less error prone.
From Scott Cheloha (scottcheloha AT gmail), thanks!
OK bcallah

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jan 19 14:51:00 2016 UTC (8 years, 4 months ago) by sunil
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Bounds check while stripping trailing slashes. From max at
max-fillinger.net.

Ok lum@

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jan 19 11:39:06 2016 UTC (8 years, 4 months ago) by sunil
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Update my mail address.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jan 19 11:21:38 2016 UTC (8 years, 4 months ago) by sunil
Branch: MAIN
Changes since 1.13: +34 -34 lines
Diff to previous 1.13 (colored)

Fix bad indents. From max at max-fillinger.net

Ok lum@ jasper@

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jan 19 11:15:39 2016 UTC (8 years, 4 months ago) by sunil
Branch: MAIN
Changes since 1.12: +4 -5 lines
Diff to previous 1.12 (colored)

Check snprintf(3) return value for overflow instead of manual length
check. From max at max-fillinger.net.

Ok lum@ jasper@

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jan 19 11:13:02 2016 UTC (8 years, 4 months ago) by sunil
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Skip empty entries in $PATH instead of erroneously interpreting
them as ".".

Ok lum@ jasper@

Revision 1.11 / (download) - annotate - [select for diffs], Tue Sep 29 02:07:49 2015 UTC (8 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Mark eread(), veread(), and eformat() as printf-like and
Convert eread(buf, a2, a3, a4) to eread("%s", a2, a3, a4, buf)

ok millert@ lum@

Revision 1.10 / (download) - annotate - [select for diffs], Sat Sep 26 21:51:58 2015 UTC (8 years, 7 months ago) by jasper
Branch: MAIN
Changes since 1.9: +26 -27 lines
Diff to previous 1.9 (colored)

whitespace

Revision 1.9 / (download) - annotate - [select for diffs], Thu Mar 19 21:22:15 2015 UTC (9 years, 2 months ago) by bcallah
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.8: +6 -4 lines
Diff to previous 1.8 (colored)

Clean up the includes in mg.
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@

Revision 1.8 / (download) - annotate - [select for diffs], Sun Nov 16 04:16:41 2014 UTC (9 years, 6 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Stop using <sys/param.h>; replace MAXPATHLEN with PATH_MAX, stop using MAX(),
and pull in <limits.h> for *_MAX constants.

inspired on a diff from Kamil Rytarowski (n54 (at) gmx.com)
ok bcallah@

Revision 1.7 / (download) - annotate - [select for diffs], Sun Nov 16 00:59:25 2014 UTC (9 years, 6 months ago) by guenther
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

ctype macros/functions expect unsigned char values.  Note that the lgetc()
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)

Revision 1.6 / (download) - annotate - [select for diffs], Thu Apr 10 14:03:57 2014 UTC (10 years, 1 month ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.5: +7 -3 lines
Diff to previous 1.5 (colored)

fix fd leaks in error paths missed last time around

Revision 1.5 / (download) - annotate - [select for diffs], Thu Mar 20 07:47:29 2014 UTC (10 years, 2 months ago) by lum
Branch: MAIN
Changes since 1.4: +17 -1 lines
Diff to previous 1.4 (colored)

Add some missing dobeeps.
ok florian@

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jan 22 09:43:53 2014 UTC (10 years, 3 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.3: +7 -3 lines
Diff to previous 1.3 (colored)

fix fd leaks in error paths
ok krw@ phessler@

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jul 2 08:08:31 2012 UTC (11 years, 10 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.2: +3 -13 lines
Diff to previous 1.2 (colored)

Maintain mg's Public Domain license heritage.

Sunil Nimmagadda agrees.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jun 26 16:59:23 2012 UTC (11 years, 10 months ago) by jasper
Branch: MAIN
Changes since 1.1: +2 -0 lines
Diff to previous 1.1 (colored)

add missing rcs ids

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jun 7 15:15:04 2012 UTC (11 years, 11 months ago) by lum
Branch: MAIN

Add some cscope support to mg. From Sunil Nimmagadda.  Due to some
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.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.