Commit Graph

68 Commits

Author SHA1 Message Date
Kim Woelders 5ce609cca7 Change formatting style
No tabs, more like K&R.
Also switch to indent 2.2.13.
2023-11-26 10:03:45 +01:00
Kim Woelders 890173a5cf Move some string handling functions around
To a maybe sligthly more logical location.
2023-06-26 19:52:15 +02:00
Kim Woelders 4cbd7179b2 memory.c: Consistently use EMALLOC() 2022-12-10 15:02:59 +01:00
Kim Woelders 1e757064a9 Handle quoting in StrlistDecodeEscaped()
IPC commands and exec's in menu files can now use quoting.
2022-10-05 20:17:44 +02:00
Kim Woelders 6722addcd3 Introduce Ememdup() 2022-02-05 13:19:19 +01:00
Kim Woelders f3de71d05f Consistently put __EXPORT__ in .c files 2021-01-09 09:50:04 +01:00
Kim Woelders 8f1bfc4f53 Fix warnings occurring in various situations 2020-01-23 20:29:05 +01:00
Kim Woelders 3226edc567 Change EFREE_... macros to functions
Reduces code size by ~4k.
2018-12-22 11:44:22 +01:00
Kim Woelders 87ba89d9b4 Fixes for various build corner cases. 2015-04-11 23:19:34 +02:00
Kim Woelders 9c31fe29ed Clean up header file inclusion order.
Fixes building with e.g. -std=c99 and c11 by always including config.h
(which defines _GNU_SOURCE) first.
2015-01-17 19:33:42 +01:00
Kim Woelders e66c0e8502 Use qsort in stead of open coded sorting. 2013-04-06 10:54:59 +02:00
Lucas De Marchi 118b441611 Remove unneeded code with notnull.cocci script
The notnull.cocci script from Coccinelle finds places where you check if a
variable is NULL, but it's known not to be NULL. The check can be safely
removed. For example, this code would be caught by notnull:

if (!var) return;
if (var && var->fld) { ... }

It's needless to check again if var is not NULL because if it's in fact NULL,
it would have returned on the previous "if". This commit removes all the
trivial places where this pattern happens. Another patch will be generated for
the more complex cases.


SVN revision: 50241
2010-07-14 02:05:47 +00:00
Kim Woelders 4ef9558c14 Forgot 2008.
SVN revision: 34083
2008-03-22 14:51:24 +00:00
Kim Woelders 0a05aafc82 Assume free(0) is ok (if not HAVE_FREE_NULL_BUG will have to be defined).
SVN revision: 33818
2008-02-23 12:09:38 +00:00
Kim Woelders f53600e1e8 Cleanups, enable compiling everything as if it were C++.
SVN revision: 28022
2007-01-17 01:10:44 +00:00
Kim Woelders 43865f59f4 Trivial prototype change (Estrndup).
SVN revision: 27969
2007-01-14 17:27:01 +00:00
Kim Woelders 83bcbbaee1 2007.
SVN revision: 27952
2007-01-13 19:14:29 +00:00
Kim Woelders 6627288dcc Change some macros to functions to avoid multiple argument evaluation.
SVN revision: 22581
2006-05-13 10:28:11 +00:00
Kim Woelders 0a4c0153e0 Enable unsetting env vars with Esetenv().
SVN revision: 22282
2006-04-21 15:51:46 +00:00
Kim Woelders 056248c884 2006.
SVN revision: 19591
2006-01-07 07:20:58 +00:00
Kim Woelders 0dfa113313 General bug hunt - Found a few, pedantic cleanups, dead code removal.
SVN revision: 18153
2005-10-30 19:40:49 +00:00
Kim Woelders 4891ca415d Client adoption changes - continued. Cleanups, various bug fixes.
SVN revision: 18118
2005-10-30 01:05:26 +00:00
Kim Woelders d6a7b8abb7 Add string splitting function. Rename string list functions.
SVN revision: 15792
2005-07-16 15:53:53 +00:00
Kim Woelders 99d717e187 Copyright updates. More enlightenment->e16.
SVN revision: 13794
2005-03-19 16:40:18 +00:00
Kim Woelders dff6739e15 Fix handling of WM_COMMAND with bogus value.
SVN revision: 13757
2005-03-16 19:16:46 +00:00
Kim Woelders aeab6a9554 Remove obsolete memory debugging feature.
SVN revision: 13714
2005-03-12 15:27:31 +00:00
Kim Woelders 8d17294eb9 Simplify WM_COMMAND handling.
SVN revision: 13712
2005-03-12 15:22:08 +00:00
Kim Woelders 9c78703d97 Fix remembering command when it contains shell special or blank chars.
SVN revision: 13710
2005-03-12 11:09:33 +00:00
Kim Woelders 69b6ed3314 Bye bye EDBUG/EDBUG_RETURN.
SVN revision: 13097
2005-01-25 21:58:28 +00:00
Kim Woelders fbbe386efb 0.16.8
SVN revision: 12619
2004-12-28 23:46:49 +00:00
Kim Woelders eeadfc296b Introduce Ecalloc.
SVN revision: 10378
2004-05-29 19:01:59 +00:00
Kim Woelders cf9316e6f8 Introduce debug print function.
SVN revision: 9647
2004-04-08 12:54:46 +00:00
Kim Woelders 7248d27a76 Use unwrapped libc malloc/realloc/free by default.
SVN revision: 9492
2004-03-26 21:42:03 +00:00
Kim Woelders f58796573c Use libc setenv when available.
SVN revision: 9406
2004-03-20 15:28:04 +00:00
Kim Woelders 14add73059 Change some ALERT macro stuff to function calls.
SVN revision: 9326
2004-03-11 16:58:14 +00:00
Kim Woelders f43c79641d Renamed duplicate to Estrdup, introduced Estrndup.
SVN revision: 9148
2004-02-28 15:14:02 +00:00
Kim Woelders 2328bcb7c9 2003 -> 2004.
SVN revision: 8569
2004-01-19 22:30:35 +00:00
Kim Woelders 15dee89c1a Use strdup when available.
SVN revision: 7845
2003-11-09 19:52:48 +00:00
Kim Woelders 3da03b6dc9 Copyrights->2003.
SVN revision: 7807
2003-11-05 17:24:47 +00:00
Mandrake 538d325415 Thu May 22 15:09:11 EDT 2003
(Mandrake)

Updated .h files so that this sucker actually wants to build on my system.
Sorry I've been AWOL for so long, life has been quite busy lately.


SVN revision: 6924
2003-05-22 19:15:03 +00:00
Michael Jennings b35504b70e Fri Mar 28 00:14:31 EST 2003
(KainX)

More patches from Kim Woelders <kim@woelders.dk>.


SVN revision: 6793
2003-03-28 05:16:21 +00:00
Mandrake c72c14143c Fri Jul 28 10:42:05 PDT 2000
(Mandrake)

the beginning of another xinerama feature "place additional windows on extra
head when current head is full"


SVN revision: 2928
2000-07-28 17:23:35 +00:00
Mandrake 5f2e7bd222 Wed Jul 26 11:18:29 PDT 2000
(Mandrake)

apparently when you first open up the background settings dialog box it
clobbers the atom that says what the base background should have in it.
This is a hack, but fixes the symptom of the problem :)


SVN revision: 2924
2000-07-26 18:00:47 +00:00
Tom Gilbert 4d21d088e3 Sun Jun 4 20:56:41 GMT 2000
(gilbertt)

Patch from monkeyiq@flashmail.com (real name?) for the option to position
windows centered under the mouse pointer.

(I changed the logic just slightly from the patch, so that windows too big
vertically are positioned so that the top is visible, instead of the other
way around).


SVN revision: 2750
2000-06-04 19:45:55 +00:00
Michael Jennings c9f4976169 Mon Apr 24 15:33:47 PDT 2000
(KainX)

Patch from Bob Arendt <rdarendt@cwcom.net> for move/resize geometry
box location.


SVN revision: 2527
2000-04-24 22:21:29 +00:00
Mandrake 175f3a0aad Wed Apr 5 16:55:39 PDT 2000
(Mandrake)

a little bit of fixing to the xinerama menu code


SVN revision: 2434
2000-04-06 00:57:55 +00:00
Peter Kjellerstedt 7f0b9c37d3 Thu Apr 6 01:17:06 CEST 2000
(Saur)

Ran the default indent from ecvs on all files to get rid of differences
caused by it (should hopefully give smaller diffs in the future).
Removed all duplicated * * in comments (generated by indent sometimes).


SVN revision: 2431
2000-04-05 23:22:56 +00:00
Mandrake 1f71e1e26e Fri Mar 24 17:53:46 PST 2000
(Mandrake)

working on xinerama (copying home)


SVN revision: 2321
2000-03-25 01:57:02 +00:00
Mandrake 9aa6f39e2c Thu Mar 23 22:02:20 PST 2000
(Mandrake)

redoing libXinerama support.  If you use xinerama, try using the "xinerama"
command.  ALSO - you have to make sure you installed libXinerama.a in the
right place as well as Xinerama.h -- still lots more hacking to do (trying to
do a cleaner implementation than my last hack)


SVN revision: 2312
2000-03-24 05:51:51 +00:00
Tom Gilbert 62423d7e4d Sun Feb 20 17:08:25 GMT 2000
(gilbertt)

Hopefully not too controversial... Added option in "Special FX Settings"
to enable/disable warping the pointer after sliding a menu onscreen. I was
going on about it ages ago, and thought this was the best thing to do...

Default behaviour is not changed, the setting is saved and loaded correctly.

*Clenches and awaits cl00batting*


SVN revision: 2109
2000-02-20 17:15:23 +00:00