aboutsummaryrefslogtreecommitdiffhomepage
path: root/util.c
Commit message (Collapse)AuthorAge
* Add a 'generic' type of event that can be emited from any piece of code or ↵Gravatar liljencrantz2007-08-20
| | | | | | by the user. Use this event layer to perform interactive configuration startup at the correct time. darcs-hash:20070819164230-75c98-f91b8a73de7bbbb500d80770ddf4d2d46ae592cc.gz
* Minor code tweaksGravatar axel2007-04-17
| | | | darcs-hash:20070416201053-ac50b-99d3ee51ef2b3642c737c3809bc2a4bfbe103b67.gz
* Minor code simplification in util.cGravatar axel2007-03-25
| | | | darcs-hash:20070324193801-ac50b-e45d88fd7de0204467a0f7d52b71ee323f4e3f0d.gz
* Add a one-item cache into the hash table. This reduces the number of hash ↵Gravatar axel2007-01-17
| | | | | | computations by roughly 20% darcs-hash:20070116163707-ac50b-214a16d4210d32fb50693e71a14b6b8f3fededfe.gz
* Minor edits - add a few input checks, remove a few commented pieces of debug ↵Gravatar axel2007-01-16
| | | | | | code, add a few brackets, etc. darcs-hash:20070115175144-ac50b-2045f2132156645222e6dde57487aa299a5316e2.gz
* Check for errors during string to integer conversion in various placesGravatar axel2007-01-09
| | | | darcs-hash:20070109032005-ac50b-29514c9c8c19c70b7cfe7670a5c74899f316931f.gz
* Make it possible to specify an error handler function for out of memory in ↵Gravatar axel2007-01-09
| | | | | | any of the collection functions. Make the default oom handler print the line where things failed and exit. darcs-hash:20070109013521-ac50b-dc7304cfb548cf1efc100124125eed032e392169.gz
* Make al_pop return null on empty lists instead of crashingGravatar axel2006-10-26
| | | | darcs-hash:20061025203433-ac50b-5d3a18d788d6f36dffe1136664f029a500989db9.gz
* Tweak initial capacity calculations to always be a Mersenne numberGravatar axel2006-10-19
| | | | darcs-hash:20061018230246-ac50b-3da6ada42423f5bba3f8c3fdb366ce1f352cffde.gz
* Fix exceptaionally rare crash bug in hash tables (happens once in every 2^32 ↵Gravatar axel2006-10-19
| | | | | | hash lookups darcs-hash:20061018230148-ac50b-4e67ecf1f9aeae8239c40101ae2ad6aa164c31bb.gz
* Better string hashing functionGravatar axel2006-10-12
| | | | darcs-hash:20061012010129-ac50b-3c420efe649e892c491d9d9830dda153ca395655.gz
* Add function to insert a range of new elements into the middle of an array_listGravatar axel2006-10-02
| | | | darcs-hash:20061001201728-ac50b-db2f7bccee53224f50347c8995b2f6496940243d.gz
* First stab at multiline editingGravatar axel2006-10-02
| | | | darcs-hash:20061001160258-ac50b-1a760913e64b96e30ff321d7fbe4069ca161cdfe.gz
* Minor comment and documentation editsGravatar axel2006-10-02
| | | | darcs-hash:20061001155918-ac50b-8b5b4f5dbd8334bac1c0dc77fa18c8f3cfb4a878.gz
* Drup minf/maxf from util.h, they are unusedGravatar axel2006-08-01
| | | | darcs-hash:20060731162550-ac50b-6b4d29d73ef7d672c3c0f9070b528b96b9ec0c16.gz
* Add long and function pointer versions of all array_list_t callsGravatar axel2006-08-01
| | | | darcs-hash:20060731161641-ac50b-1850b9c2464ce1aa7ff2f1aa74140b526a6825f2.gz
* Use unsigned long instead of uint in string hashing algorithm. Portability ↵Gravatar axel2006-07-28
| | | | | | fix, suggested by Netocrat. darcs-hash:20060728125421-ac50b-f3cfc12852739fdc1d3c43c46ed91a57e119964a.gz
* Switch from die_mem function to DIE_MEM macro in order to be able to give a ↵Gravatar axel2006-07-03
| | | | | | line and file for the OOM message darcs-hash:20060703103957-ac50b-8d7a860d931fd087f6d1759bc1e934dba1cfefe2.gz
* Drop most 'const's from function prototypesGravatar axel2006-06-13
| | | | darcs-hash:20060612214742-ac50b-9b0801e8a7c07d6ab3f0acf569e1d6eb1eeb3f0e.gz
* Fix the longstanding hang-on-exit bug in eterm, as well as making sure the ↵Gravatar axel2006-05-14
| | | | | | history is saved when the terminal emulator exits darcs-hash:20060514101623-ac50b-f8ce693ec111e3c158640ef8de309bf7e5484c5b.gz
* Move all fallbacks for standard and not-so-standard unix functions to ↵Gravatar axel2006-02-28
| | | | | | fallback.c, in order to have a one-stop place to look for such functions darcs-hash:20060228131716-ac50b-0832193dbcaf7191dcb24456dc40f2e861a1382e.gz
* Tiny performance tweaksGravatar axel2006-02-05
| | | | darcs-hash:20060205131335-ac50b-5b1895d50334dfe9e375ab60e723d1b62b712707.gz
* Minor tweaks, including a few small performance improvementsGravatar axel2006-02-04
| | | | darcs-hash:20060204130914-ac50b-331e83fd8fe472545fce60fc4b76bb8300526d64.gz
* Add simple fallback implementation of seq command, installed automatically ↵Gravatar axel2006-01-23
| | | | | | on systems which lack the regular seq command darcs-hash:20060122210756-ac50b-f09a50f61137acef18f0d2be16e2556b2cdea921.gz
* Add input checks to string_buffer_t functionsGravatar axel2006-01-22
| | | | darcs-hash:20060121211629-ac50b-ce18cd1f58cf962d21e553fa292576ea7b3382ed.gz
* Do not free allocated data when clearing a string_buffer_tGravatar axel2006-01-10
| | | | darcs-hash:20060109171302-ac50b-eda104ad21a80c99cc5f31e71973bbc835635b90.gz
* Minor performance tweak: Do not allocate any heap memory for hash_table_t ↵Gravatar axel2005-10-27
| | | | | | until an element is inserted. That way, hash tables that never contain any data will not cause a call to malloc() darcs-hash:20051026144823-ac50b-570dfe169a2ce693458c493e8f103884de3c5078.gz
* Add support for specifying event handler for calling job in command ↵Gravatar axel2005-10-15
| | | | | | supstitution. Add psub shellscript function for process substitution darcs-hash:20051015005126-ac50b-d2aedca3a50a78362502f3fa9dd8bf25cb7dc6e1.gz
* Do automatic line breaking in debugGravatar axel2005-10-12
| | | | darcs-hash:20051012103421-ac50b-d3cba7cb40287fd97cccc246a19dcb2273bf8b82.gz
* Multiple portability fixesGravatar axel2005-10-11
| | | | darcs-hash:20051010161255-ac50b-e732f18c1dfa610e34b56bb4ff1a3d4d2ef078a1.gz
* Initial update for new event subsystemGravatar axel2005-10-06
| | | | darcs-hash:20051005223708-ac50b-8a8d7e003e1c24747f3f154cb66b6c1a1015c35b.gz
* Add shortcut function for creating an array_list_t on the heapGravatar axel2005-10-04
| | | | darcs-hash:20051004134326-ac50b-91d5006f218f2f9370d239b38d8e88eddc7c0b96.gz
* Initial revisionGravatar axel2005-09-20
darcs-hash:20050920132639-ac50b-fa3b476891e1f5f67207cf4cc7bf623834cc5edc.gz