Commit Graph

28 Commits

Author SHA1 Message Date
Michael Jennings 5d475d0105 src/*.c, Eterm.spec: Various build fixes
Several changes here to make it build on RHEL/CentOS 8:
 - Replace outdated MEMSET() macro with (g)libc memset()
 - Update Release field to use `git describe` just like LibAST
 - Fix `make distcheck` by adding an uninstall-hook for src/gdb.scr
 - At long last, remove the ancient RPM %changelog content
 - Fix incompatibility with my traditional choices for CFLAGS
   (-O0 -g3) and modern RHEL security/hardening goop which, due to
   being implemented in the GCC optimizer, is rendered non-functional
   by building with -O0!
 - Rename backgrounds tarball so that it doesn't have the Eterm
   version in its name since, shockingly, it never changes based on
   the version of Eterm!
2020-02-28 17:06:54 -07:00
Lucas De Marchi 369e95c1df Revert and re-apply badnull patch
Revert previous patch generated by badnull.cocci script, and apply the new one.
The main difference is that assert and assert-like functions are not touched
anymore.




SVN revision: 51650
2010-08-26 01:34:13 +00:00
Michael Jennings d3bb74d029 Revert coccinelle changes.
Using !! instead of != NULL results in significantly and unacceptably
less readable code, and I refuse to accept those changes.
Unfortunately, since they were all done at once, I have to revert the
whole thing.  Oh well. :(


SVN revision: 51583
2010-08-23 17:55:09 +00:00
Lucas De Marchi 3f375e63e2 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Michael Jennings 42a135456a Sun Oct 25 12:36:01 2009 Michael Jennings (mej)
Patch for FreeBSD UNIX98 pty support from Ed Schouten <ed@80386.nl>.
----------------------------------------------------------------------


SVN revision: 43281
2009-10-25 20:30:06 +00:00
Michael Jennings f5e3dbacf6 Tue Jan 6 01:08:47 2009 Michael Jennings (mej)
Update copyright dates and fix a bad license.
----------------------------------------------------------------------


SVN revision: 38480
2009-01-06 09:08:48 +00:00
Michael Jennings 7537403997 Mon Feb 13 14:51:56 2006 Michael Jennings (mej)
Update to libast 0.6+ API.
----------------------------------------------------------------------


SVN revision: 20440
2006-02-13 19:52:45 +00:00
Michael Jennings fccdc9bb52 Mon Feb 6 17:15:49 2006 Michael Jennings (mej)
DragonFly BSD fixes from Joerg Sonnenberger <joerg@britannica.bec.de>.

Also some type mismatch fixes.
----------------------------------------------------------------------


SVN revision: 20313
2006-02-06 22:16:50 +00:00
Michael Jennings b8cf59b892 Wed Jan 4 04:22:13 2006 Michael Jennings (mej)
Update copyright dates.
----------------------------------------------------------------------


SVN revision: 19522
2006-01-04 09:22:41 +00:00
Michael Jennings 6657911db3 Mon Apr 18 21:49:08 2005 Michael Jennings (mej)
Re-indent code.
----------------------------------------------------------------------


SVN revision: 14229
2005-04-19 01:57:24 +00:00
Michael Jennings 8e26d97824 Sun Jan 11 17:09:07 2004 Michael Jennings (mej)
It's too bad you can't just say, "Copyright 1997-2999."


SVN revision: 8349
2004-01-11 22:10:29 +00:00
Michael Jennings 15ad73f445 Wed Feb 19 16:17:00 2003 Michael Jennings (mej)
Updated copyright statements for 2003.


SVN revision: 6698
2003-02-19 21:18:10 +00:00
Michael Jennings 92937f46a7 Sat Jun 8 11:41:37 2002 Michael Jennings (mej)
Escreen update with Twin support from Azundris <scream@azundris.com>.


SVN revision: 6307
2002-06-08 15:44:08 +00:00
Michael Jennings 981b29c895 Sun Jun 2 20:23:07 2002 Michael Jennings (mej)
Latest Escreen patch along with twin support from Azundris.


SVN revision: 6297
2002-06-03 00:24:22 +00:00
Michael Jennings 92ca20bcba Sat May 4 10:23:38 2002 Michael Jennings (mej)
Ran reformat-code on the tree.

Also merged in Azundris' Escreen patch.  It's disabled by default for
the moment pending further testing, but you can enable it manually by
defining ESCREEN.


SVN revision: 6202
2002-05-04 14:25:30 +00:00
Michael Jennings bba5179976 Fri Apr 26 14:28:08 2002 Michael Jennings (mej)
Reverted Charles Clancy's shading patch (from the 21st) since it
breaks 24bpp on Linux.  Hopefully there is a better fix.

Fixed an ASSERT failure in the buttonbar redraw pointed out by
Laurence J. Lane <ljlane@debian.org>.

Also made multiple buttonbars work properly.


SVN revision: 6182
2002-04-26 18:30:48 +00:00
Michael Jennings 1ece1388ff Sun Feb 3 15:51:38 2002 Michael Jennings (mej)
Apparently I forgot to commit these copyright date changes. :(


SVN revision: 5895
2002-02-03 20:53:07 +00:00
Michael Jennings f89dff3d3d Sun Aug 5 01:52:51 2001 Michael Jennings (mej)
Okay, first off, I finally found and fixed a typo with regard to the
utempter support on RedHat-based systems.  I doubt it's ever worked
properly (sigh).  Secondly, I added support for throwing Eterm's
termcap entry into the termcap DB on FreeBSD (and possibly other
*BSD-based) systems thanks to info from Kirby Kuehl
<vacuum@technotronic.com>.  And finally, added in a patch from Paul
Brannan <pbranna@clemson.edu> to support some additional escape
sequences for vim.


SVN revision: 5044
2001-08-05 08:57:32 +00:00
Michael Jennings 3a471bb33e Wed Jun 13 21:13:51 PDT 2001 Michael Jennings <mej@eterm.org>
There is now a new mechanism for dealing with the background image
	collection, including a new update script.  Please read the newly-
	rewritten bg/README.backgrounds for details.

	Also, I'm trying to flesh out the Contributors list in that file, but
	my memory isn't cooperating.  So if you contributed one of the
	backgrounds, or know someone who did, please let me know.


SVN revision: 4810
2001-06-14 05:31:09 +00:00
Michael Jennings 2b30d160f4 Thu Nov 16 16:40:54 PST 2000 Michael Jennings <mej@eterm.org>
VA bought some licenses for Insure++, so I've been using it to audit
	Eterm.  These are just the initial results of the collaboration; there
	will most likely be more.  So far things are looking pretty good.  I
	just wish Insure++ had more helpful messages.  I'd really love to be
	able to track down those reads/writes involving freed pointers that
	it claims to have found in Imlib2....

	I also had to try and make the build work without MMX.  I did so; I
	just hope it still works *with* MMX.... =)


SVN revision: 3895
2000-11-16 23:45:01 +00:00
Michael Jennings e1573e95c8 Fri Sep 1 15:25:28 PDT 2000 Michael Jennings <mej@eterm.org>
Okay, everything seems hunky-dorey now.  If you have memory debugging
	turned on, exiting Eterm will give a dump of the leftover allocated
	memory including where it came from and how much there is.  You'll
	also get a listing of all the remaining Pixmap ID's and GC ID's along
	with where they were created.

	I also added some macros to the debugging stuff in libmej.h so that
	if you pass the --without-debugging option to ./configure, it will
	optimize out all the ASSERT and REQUIRE goop.  This will make it
	harder to trap bugs before they cause problems, so don't do it if you
	want to help development, but if speed is critical to you, give it a
	shot.


SVN revision: 3294
2000-09-01 22:14:17 +00:00
Michael Jennings 9a6507f458 Wed Aug 30 22:58:18 PDT 2000 Michael Jennings <mej@eterm.org>
Massive reorganization/rewrite to libmej.  It should now be 100%
	independent of Eterm.  There still may be some gremlins in the memory
	debugging code, so don't use too high a number with --debug....


SVN revision: 3282
2000-08-31 05:41:44 +00:00
Michael Jennings c9a97e46be Wed Mar 8 19:35:36 PST 2000 Michael Jennings <mej@eterm.org>
Added a new --pipe-name option to allow Eterm to read from a console
	device/tty/pipe other than /dev/console.  This is useful for folks on
	Debian, where "console" messages actually go to the /dev/xconsole
	named pipe rather than to /dev/tty0.


SVN revision: 2212
2000-03-09 03:38:31 +00:00
Michael Jennings 8e9f100232 Wed Mar 1 18:37:18 PST 2000 Michael Jennings <mej@eterm.org>
I'm still not done with the commenting work I've been doing, but I've
	made some fixes, so I figured it was time to commit what I've done so
	far.

	I've added support for multi-byte selection/pastes from programs like
	Netscape, thanks in part to a patch from Yasuyuki Furukawa
	<yasu@on.cs.keio.ac.jp>.  I've also applied a bugfix for pty
	allocation on Irix from David Kaelbling <drk@sgi.com>, a display
	bugfix pointed out by Valdis Kletnieks <Valdis.Kletnieks@vt.edu>, and
	a fix for a missing menu in the auto theme discovered by someone on
	IRC.

	I've also added quite a few comments to term.c to help people grok
	the parsing of escape sequences a little better.


SVN revision: 2168
2000-03-02 03:31:41 +00:00
Michael Jennings 0c66bab547 Wed Jan 5 21:23:56 PST 2000 Michael Jennings <mej@eterm.org>
Copyright date updates.


SVN revision: 1860
2000-01-05 17:34:32 +00:00
Michael Jennings 4af86536a7 Tue Dec 7 22:10:19 PST 1999 Michael Jennings <mej@eterm.org>
Support for RedHat's utempter library and some other fixes.  Thanks to
	Erik Troan <ewt@redhat.com> and Tim Powers <timp@redhat.com> for their
	help with this.


SVN revision: 1547
1999-12-08 01:13:44 +00:00
Michael Jennings 661b1b9448 Tue Aug 17 18:06:01 PDT 1999 Michael Jennings <mej@eterm.org>
Now that we have a fixed CVS server....  This includes the old 0.8.10
	code, but it's now 0.9.  It also includes a timer subsystem.


SVN revision: 52
1999-08-18 01:12:47 +00:00
Michael Jennings 22b2a193d3 Initial import of Eterm 0.8.9 sources
SVN revision: 38
1999-08-17 23:01:18 +00:00