Commit Graph

45 Commits

Author SHA1 Message Date
Kim Woelders 0e8f3ec884 Unifdef HAVE_FREE_NULL_BUG
I doubt it is useful anywhere.
2023-12-17 19:25:30 +01:00
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 30bdaa84cb bindings: Handle quoting in AclassConfigLineParse()
Commands in bindings can now use quoting.

Suggested by Dennis Nezic.
2023-06-26 19:52:23 +02: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 52d8dfe805 Introduce EnvSubst() 2022-02-17 09:53:20 +01:00
Kim Woelders 2a3f914716 actions.c: Let Eexec() use ExecSetupEnv() too
And rename a couple of functions marking them local.
2022-02-17 09:53:20 +01:00
Kim Woelders 6722addcd3 Introduce Ememdup() 2022-02-05 13:19:19 +01:00
Kim Woelders 93b8da7e8a Move Eexec() and friends to util.h
Seems more appropriate.

And add missing __PRINTF__ on Espawn() prototype.
2021-04-23 08:21:41 +02:00
Kim Woelders 50e6b76395 Drop (v)snprintf() implementation
Let's assume everybody has this by now.
2021-04-23 08:21:41 +02:00
Kim Woelders 358b60baf9 Introduce E_ARRAY_SIZE() and MOD_ITEMS()
Just a bit tidier.
2021-03-19 06:36:46 +01:00
Kim Woelders f3de71d05f Consistently put __EXPORT__ in .c files 2021-01-09 09:50:04 +01:00
Kim Woelders 7af2a15fef Fix using sound in modular build
Also remove obsolete __EXPORT__s on Strlist.. functions.
2019-08-10 16:32:48 +02:00
Kim Woelders 3226edc567 Change EFREE_... macros to functions
Reduces code size by ~4k.
2018-12-22 11:44:22 +01:00
Kim Woelders b9a9946a0a Update copyright to 2018 2018-12-22 11:44:22 +01:00
Kim Woelders 22b5e58dcd Refactor/rename/use _EFREE type macros 2018-12-22 11:44:22 +01:00
Kim Woelders 2d4674e374 Forgot some 2016. 2017-02-12 19:04:02 +01:00
Kim Woelders 33991a6bf2 Drop incomplete HAVE_STDARG_H stuff. 2016-11-25 17:44:59 +01:00
Kim Woelders 87ba89d9b4 Fixes for various build corner cases. 2015-04-11 23:19:34 +02:00
Kim Woelders cd095e1637 Eliminate deprecated usleep().
SleepUs() will even sleep the correct amount of time when interrupted by
a signal.
There shouldn't be any significant cases where this could be a problem
though.
2015-04-11 23:19:34 +02:00
Kim Woelders 73b7fcc0dd Forgot 2015. 2015-01-10 18:56:58 +01:00
Kim Woelders 8e866cf49c Visibility cosmetics (use EC_C_VISIBILITY). 2015-01-04 16:43:05 +01:00
Kim Woelders 7c6deaabbf Extension version checking cleanups. 2014-11-20 21:45:25 +01:00
Kim Woelders e66c0e8502 Use qsort in stead of open coded sorting. 2013-04-06 10:54:59 +02:00
Kim Woelders 10f6a232d0 Move GetTimeMs/Us() to time.c.
SVN revision: 69545
2012-03-21 21:10:59 +00:00
Kim Woelders 4ac03926da Adjustments for indent 2.2.11.
SVN revision: 50909
2010-08-08 19:03:34 +00:00
Kim Woelders b2cba87582 Correctness and trivial stuff.
SVN revision: 36795
2008-10-18 21:20:53 +00:00
Kim Woelders 6c308cef4c Provide strcase functions if not available.
SVN revision: 35487
2008-08-14 18:44:23 +00:00
Kim Woelders 2f5464ca5c Move config options to config.h.
SVN revision: 35389
2008-08-07 23:14:54 +00:00
Kim Woelders 1dad1ef28f Simplify timers.
SVN revision: 34656
2008-05-24 18:13:17 +00:00
Kim Woelders 650d3b4ce1 Various sound/module/visibility fixes.
SVN revision: 33960
2008-03-08 19:23:54 +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 dad1b8aad4 Add some checking of printf style prototypes.
SVN revision: 33816
2008-02-23 11:52:44 +00:00
Kim Woelders 04d18ba16d Add optional visibility hiding (only useful with modular build).
SVN revision: 31691
2007-09-12 21:33:50 +00:00
Kim Woelders c8957cca73 Loadable module support bits.
SVN revision: 31609
2007-09-03 19:37:58 +00:00
Kim Woelders 5219b01981 Loadable module support bits.
SVN revision: 31568
2007-08-28 18:52:45 +00:00
Kim Woelders 11cf892306 Assorted refactorizations.
SVN revision: 31016
2007-07-27 16:59:50 +00:00
Kim Woelders 978141c537 Add missing header.
SVN revision: 30128
2007-05-28 17:11:44 +00:00
Kim Woelders ade6499592 Move definition of __UNUSED__ to config.h.
SVN revision: 28802
2007-03-18 21:59:46 +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 5bd5afe9cc Split up, shuffle around file.c (no real changes).
SVN revision: 24166
2006-07-24 21:10:59 +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 5b24f41029 Split up and shuffle around some more.
SVN revision: 22236
2006-04-19 19:13:46 +00:00