Commit Graph

125 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
Michael Jennings 21375413fa Tue Mar 15 23:08:26 2011 Michael Jennings (mej)
Fix for CVE-2011-0768, an off-by-one error in handling large pixmap
filenames which resulted in an overflow of a single NUL character if
the filename exceeded PATH_MAX bytes.  This bug is NOT exploitable.
Again, thanks to Jonathan Brossard and the team at Toucan System for
responsibly disclosing this vulnerability and to CERT for assisting
with coordination and disclosure.
----------------------------------------------------------------------


SVN revision: 59414
2011-05-15 21:24:19 +00: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 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 cc5392df86 Wed May 17 15:42:28 2006 Michael Jennings (mej)
Patch from Kim Woelders <kim@woelders.dk> to optimize transparent
Eterms moved an even multiple of the desktop size (i.e., to another
desktop area).
----------------------------------------------------------------------


SVN revision: 22674
2006-05-17 19:42:39 +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 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 9c737f4aa1 Wed Jan 4 04:14:14 2006 Michael Jennings (mej)
Applied patches from Tres Melton <tres@mindspring.com> for SSE2
alignment and other shading-related issues.
----------------------------------------------------------------------


SVN revision: 19521
2006-01-04 09:15:17 +00:00
Michael Jennings 7af5d208eb Thu Dec 22 18:32:31 2005 Michael Jennings (mej)
Cleanups and minor enhancements.
----------------------------------------------------------------------


SVN revision: 19251
2005-12-22 23:31:33 +00:00
Michael Jennings 80e9c020d4 Tue Jun 14 15:36:09 2005 Michael Jennings (mej)
Added SSE2 support patch thanks to Tres Melton <tres@mindspring.com>
and John Ellson <ellson@research.att.com>.
----------------------------------------------------------------------


SVN revision: 15322
2005-06-14 19:39:01 +00:00
Michael Jennings 4cd902d7a3 Mon Jun 13 19:28:19 2005 Michael Jennings (mej)
Cleanups and optimizations from Tres Melton <tres@mindspring.com>.
----------------------------------------------------------------------


SVN revision: 15316
2005-06-13 23:28:47 +00:00
Michael Jennings 19f7251415 Tue May 10 14:57:45 2005 Michael Jennings (mej)
Previous patch was incomplete; this fixes it.
----------------------------------------------------------------------


SVN revision: 14698
2005-05-10 18:59:50 +00:00
Michael Jennings 1570ec6d43 Sun May 8 21:13:45 2005 Michael Jennings (mej)
Patch from Tres Melton <tres@mindspring.com> to fix 15bpp shading
routines.
----------------------------------------------------------------------


SVN revision: 14679
2005-05-09 01:17:25 +00:00
Michael Jennings f5e5778a3e Sat May 7 02:30:53 2005 Michael Jennings (mej)
Patch from Tres Melton <tres@mindspring.com> to correct overflow in
non-MMX 16bpp shading code.
----------------------------------------------------------------------


SVN revision: 14633
2005-05-07 06:33:36 +00:00
Michael Jennings 32b568025f Wed Apr 27 14:46:41 2005 Michael Jennings (mej)
Disable MMX on x86_64 for now.
----------------------------------------------------------------------


SVN revision: 14416
2005-04-27 18:48:32 +00:00
Michael Jennings 731630f83a Tue Apr 26 13:40:54 2005 Michael Jennings (mej)
Patch from Tres Melton <tres@mindspring.com> to optimize 24-bit and
32-bit non-MMX shading routines.
----------------------------------------------------------------------


SVN revision: 14383
2005-04-26 17:43:21 +00:00
Michael Jennings 25386ea8c8 Tue Apr 26 12:10:16 2005 Michael Jennings (mej)
Reverted patch from C. David Wilde <cdw@mylinuxguy.com> which broke
big-endian machines and really didn't fix anything at all.  Thanks to
Tres Melton <tres@mindspring.com> for catching this.
----------------------------------------------------------------------


SVN revision: 14381
2005-04-26 16:14:25 +00:00
Michael Jennings 54a2a84619 Tue Apr 26 11:45:39 2005 Michael Jennings (mej)
Fixed incorrect WORDS_BIGENDIAN logic caught by Tres Melton
<tres@mindspring.com>.
----------------------------------------------------------------------


SVN revision: 14379
2005-04-26 15:48:07 +00:00
Michael Jennings 5b1616a67f Mon Apr 18 22:11:22 2005 Michael Jennings (mej)
Patch from C. David Wilde <cdw@mylinuxguy.com> to correct the non-MMX
color modifier routines.
----------------------------------------------------------------------


SVN revision: 14230
2005-04-19 02:13:19 +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 9963e03658 Wed Jul 14 16:16:48 2004 Michael Jennings (mej)
Applied patch from Kim Woelders <kim@woelders.dk> to fix setting of
_NET_WM_ICON property.

Fixed a couple warnings.
----------------------------------------------------------------------


SVN revision: 10834
2004-07-14 20:18:30 +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 0d54ac8f90 Sun Dec 21 21:43:58 2003 Michael Jennings (mej)
Fix :hscale and :vscale to work properly.


SVN revision: 8164
2003-12-22 02:44:36 +00:00
Michael Jennings f5856289e0 Mon Oct 27 21:39:29 2003 Michael Jennings (mej)
Changed -D/--desktop option to use EWMH-compliant desktop atom.

Add support for EWMH icon property.


SVN revision: 7749
2003-10-28 02:42:53 +00:00
Michael Jennings 243e65e5a2 Sun Aug 24 11:07:54 2003 Michael Jennings (mej)
I redid the options variables and constants to try and make things
more standardized, and to make room for future toggles as well.  This
should make David Lloyd a bit happier, 'cause now we can get his patch
in here. :)

Hopefully I didn't break anything....


SVN revision: 7370
2003-08-24 15:09:32 +00:00
Michael Jennings 4e5e3617be Fri Aug 22 00:09:04 2003 Michael Jennings (mej)
Had I done it right the first time, this would not have happened. >:I


SVN revision: 7363
2003-08-22 04:09:40 +00:00
Michael Jennings 0784d8336b Thu Aug 21 23:51:12 2003 Michael Jennings (mej)
Oops, that wasn't *quite* what I had in mind....


SVN revision: 7362
2003-08-22 03:52:02 +00:00
Michael Jennings 6b43700de1 Thu Aug 21 23:18:23 2003 Michael Jennings (mej)
A few cosmetic changes to the source code, and a fix for Debian Bug
#176274 reported by Gerhard Tonn <GerhardTonn@gammatau.de>.


SVN revision: 7361
2003-08-22 03:19:43 +00:00
Michael Jennings 5d112d314e Mon May 12 22:07:45 2003 Michael Jennings (mej)
Use icon window instead of icon pixmap only if strict ICCCM compliance
is requested via ./configure --enable-strict-icccm


SVN revision: 6904
2003-05-13 02:08:41 +00:00
Michael Jennings df078dd652 Sun Mar 2 23:40:39 2003 Michael Jennings (mej)
Fixed a bug with foreground/background color change pointed out by
Thomas <arnognul@tiscali.se>.

Also added support for all the other OSC color change sequences (at
least those for the colors that Eterm uses).  The sequences are of
the form "\e];n;color[;color[...]]\a", where n is between 10 and 19.
You can specify up to (20 - n) semicolon-separated colors representing
the following attributes in order:  foreground, background, cursor,
mouse pointer, mouse pointer background (*), Tek foreground (*), Tek
background (*), highlight color (*), bold color, and underline color.
Attributes marked with a (*) are ignored by Eterm and may be left
empty, but their trailing semicolons must be present for xterm
compatibility.

For example, to set a white foreground, black background, yellow text
cursor, green mouse cursor, #ffaa00 for bold, and cyan for underline,
you could use either of the following:

echo -e "\e]10;white;black;yellow;green;;;;;#ffaa00;cyan\007"

 or

echo -e "\e]10;white\007"
echo -e "\e]11;black\007"
echo -e "\e]12;yellow\007"
echo -e "\e]13;green\007"
echo -e "\e]18;#ffaa00\007"
echo -e "\e]19;cyan\007"

Note that the setting of bold and underline colors using 18 and 19 are
Eterm extensions.


SVN revision: 6739
2003-03-03 04:53:35 +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 45cc00b37f Wed Jan 8 01:16:29 2003 Michael Jennings (mej)
Fixed a bug with non-bordered icons being rendered at 0 size.


SVN revision: 6552
2003-01-08 06:17:12 +00:00
Michael Jennings 675bf268aa Wed Nov 27 15:17:04 2002 Michael Jennings (mej)
Same as yesterday, only this time I'm *actually* going to fix the
problem. >:I  I should really read more carefully.

While I was at it, I fixed some bad uses of BEG_STRCASECMP().


SVN revision: 6467
2002-11-27 20:18:24 +00:00
Michael Jennings 340755e956 Sun Oct 13 01:27:51 2002 Michael Jennings (mej)
Make sure it builds without Imlib2 so we don't have a repeat of last
time.


SVN revision: 6422
2002-10-13 05:28:36 +00:00
Michael Jennings 47841ac519 Sun Sep 22 00:34:42 2002 Michael Jennings (mej)
Added an option to disable the secondary screen as requested by Marc
Merlin <marc@merlins.org>.


SVN revision: 6395
2002-09-22 04:35:54 +00:00
Michael Jennings b8f5e6e2a1 Sun Jul 14 00:49:34 2002 Michael Jennings (mej)
Fixed bug pointed out by JC Wong <catalyst@gmx.net> where resizing a
window which had had transparency toggled on would reveal a black spot
at the bottom of the scrollbar.


SVN revision: 6340
2002-07-14 04:55:26 +00:00
Michael Jennings 0db3598235 Wed Jul 3 13:49:27 2002 Michael Jennings (mej)
Fixed a bug in libscream that caused remote screen sessions to be
resumed with, e.g., "-e ^Uu_" instead of "-e ^Uu".

Applied a bug fix from Bill Allombert <allomber@math.u-bordeaux.fr>
where I was using the wrong variable for loading the icon file from
disk.

Also fixed a problem where PrintScreen would cause Eterm to exit.
Pointed out by Laurence J. Lane <ljlane@debian.org>.


SVN revision: 6336
2002-07-03 17:55:48 +00:00
Michael Jennings 224817eb24 Fri Jun 28 16:40:55 2002 Michael Jennings (mej)
Additional twin stuff, plus a bug fix for dragging Escreen buttons.


SVN revision: 6334
2002-06-28 20:44:40 +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 9ce5b286eb Wed May 22 11:37:19 2002 Michael Jennings (mej)
Latest Escreen work from Azundris <scream@azundris.com>.


SVN revision: 6270
2002-05-22 15:38:35 +00:00
Michael Jennings af842d9f2a Mon May 13 23:58:16 2002 Michael Jennings (mej)
Fixed a bad paste.


SVN revision: 6253
2002-05-14 03:59:51 +00:00
Michael Jennings b173e4053d Mon May 13 19:18:46 2002 Michael Jennings (mej)
Fixed indentation.


SVN revision: 6252
2002-05-13 23:19:30 +00:00
Michael Jennings 0bdd7edc63 Mon May 13 18:46:06 2002 Michael Jennings (mej)
Latest Escreen patch from Azundris <hacks@azundris.com>.


SVN revision: 6251
2002-05-13 22:47:08 +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 e23c811747 Tue Apr 23 14:23:00 2002 Michael Jennings (mej)
Redraw the buttonbar properly when moved.  Spotted by Azundris
<hacks@azundris.com>.

Also fixed the display of underlining with fonts lacking descent.


SVN revision: 6166
2002-04-23 18:25:01 +00:00
Michael Jennings 5e2bad6411 Sun Apr 21 14:06:19 2002 Michael Jennings (mej)
A patch from Charles Clancy <tclancy@uiuc.edu> to fix shading on
Solaris.


SVN revision: 6159
2002-04-21 18:07:28 +00:00