aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.c
Commit message (Collapse)AuthorAge
* Minor code edits (comments, function rename)Gravatar axel2007-04-21
| | | | darcs-hash:20070421081122-ac50b-fdd497a6ff8a1d2507509f21a168c9130ed59ad7.gz
* Do not call getc if getwc fails - mixing wide and byte-based readin may ↵Gravatar axel2007-01-27
| | | | | | cause a crash. IT's better to simply hope that getwc can recover. darcs-hash:20070127021026-ac50b-b85e10029d2bc0ce4857ec48945a92270e499a07.gz
* Fix crash in tab completion code when completing an imcomplete backsalsh escapeGravatar axel2007-01-27
| | | | darcs-hash:20070126171413-ac50b-a9338dc73863381f2b22e09fb8b5e711f64b8f29.gz
* Print stack trace when execting due to fatal problem or bugGravatar axel2007-01-22
| | | | darcs-hash:20070121150341-ac50b-66b86014963568bf402a76d5beb7c1d4e188c5f7.gz
* Add support for backtraces - if the compiler and libc version supports it ↵Gravatar axel2007-01-20
| | | | | | (probably only glibc/gcc) then a stack trace is printed on serious bugs darcs-hash:20070120023649-ac50b-5efa310bea0deddfa1d8dfca1000163eee89c7cb.gz
* Make command specific completions handle quoted and otherwise escaped tokens ↵Gravatar axel2007-01-19
| | | | | | better by making sure that the output from the commandline builtin is properly unescaped darcs-hash:20070118162700-ac50b-cd93d9a6aff5bb7629a790d60b241000eb1d0ac0.gz
* Fix bug in code for unescapiong strings - when not in unescape_special mode, ↵Gravatar axel2007-01-19
| | | | | | quotes would not get properly removed. This patch also adds the ability to check that quotes match up when unescaping. This functionality is on by default and can be disabled using a special flag. darcs-hash:20070118160246-ac50b-b230c3fcd8440025b5243d76de2a9fd400f7ea32.gz
* Handle out of memory condition in various parts of fish by shutting down ↵Gravatar axel2007-01-09
| | | | | | instead of crashing darcs-hash:20070109025102-ac50b-ee7951028e626628257852fd9b5de97572609cea.gz
* Make sure debug() never alters errno, so that it can safely be called ↵Gravatar axel2006-12-14
| | | | | | between an error and calling wperror() darcs-hash:20061214100131-ac50b-b1c2e4819567fc35858233c265a26b934620fc6d.gz
* Add a bugreport function for writing out a message about how to file bug reportsGravatar axel2006-11-18
| | | | darcs-hash:20061117145825-ac50b-0480300cce24657aae9572b79f145d956db93593.gz
* Do not escape the ':' character. Thanks to Tassilo Horn for pointing this out.Gravatar axel2006-11-08
| | | | darcs-hash:20061107205437-ac50b-51632ce51915d4ca8680ab4c4522bcd002a794b6.gz
* Make any character except '/' legal in function namesGravatar axel2006-10-20
| | | | darcs-hash:20061019154747-ac50b-f3ab0df1085b91ec0eadcceddb23f03d5b0247aa.gz
* Minor code fixesGravatar axel2006-10-20
| | | | darcs-hash:20061019153950-ac50b-9a7d5939ce47cd5f8b7167a97b0e9c62315b7b6e.gz
* First stab at directory transition. Test with care...Gravatar axel2006-10-19
| | | | darcs-hash:20061019115023-ac50b-30c3fd51d8af8a616d63dfcac39370d7fe6d144e.gz
* Do not use INTERNAL_SEPARATOR tokens to separate different parts of an ↵Gravatar axel2006-10-10
| | | | | | unescaped string when unescape_special is false. This fixes a bug where weird characters would sometimes be printed in completion descriptions darcs-hash:20061009151913-ac50b-47a9d3274b2399cef6fd0e12a908a606da2c4903.gz
* Allow escaped newlines within qoutes, expand them to themselvesGravatar axel2006-10-09
| | | | darcs-hash:20061009012248-ac50b-a403705cfe166c7686a168bc017c50c316c28161.gz
* Fix nagging warning messageGravatar axel2006-09-04
| | | | darcs-hash:20060903234751-ac50b-c5d7f026323b5cab450e1770be572dcdf3ecc904.gz
* Minor polishGravatar axel2006-09-04
| | | | darcs-hash:20060903230006-ac50b-c55a9272bb1cdb10312b8580c4c2a85654329e30.gz
* Make "$foo\[1]" not be an array slicing. Notice the extra backslashGravatar axel2006-09-01
| | | | darcs-hash:20060831155932-ac50b-746462d2147f349f9a799cb4786a0abacd1d3d4a.gz
* Add support for \cx backslash escapes for control sequences, syntax is ↵Gravatar axel2006-09-01
| | | | | | borrowed from bash darcs-hash:20060831155813-ac50b-cc93412afc87c1c391c3dbc5e7b8c9175efe01d8.gz
* Add support for \a \f \v escape sequences, and make supåport for \e ↵Gravatar axel2006-08-24
| | | | | | standards compliant darcs-hash:20060824002609-ac50b-a1a9150d096647d9ab4c39d3245b528d7e75cd57.gz
* More header/autoconf fixes, improve winsize checkingGravatar axel2006-08-10
| | | | darcs-hash:20060809225338-ac50b-7162a690e44e2272f4760723f5bf8cc135dc5952.gz
* Fix another typo in common.cGravatar axel2006-08-01
| | | | darcs-hash:20060801004648-ac50b-4177620e4ee37ab1ad6f942faa3023cedeee9055.gz
* Fix typo in common.cGravatar axel2006-08-01
| | | | darcs-hash:20060801003556-ac50b-fb20d6405d2d8fc8d343d040afbf3863bac07b2f.gz
* Provide fallback is struct winsize is not definedGravatar axel2006-07-31
| | | | darcs-hash:20060730205544-ac50b-26f34eb04b56924baa34f560fd274cf38413b5f5.gz
* Include siginfo.h in all signal-using files to make Solaris happy. Thanks to ↵Gravatar axel2006-07-31
| | | | | | Netocrat for the report and a description of the solution. darcs-hash:20060730202659-ac50b-1840aff40ec2467242bd107676c7426cdb14f643.gz
* Include unistd.h and stropts.h in common.c to fix Solaris problems reported ↵Gravatar axel2006-07-28
| | | | | | by Netocrat darcs-hash:20060728125057-ac50b-455d5a9a1671ad3bfee61a46266b420aff1adb49.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
* Even more input validationGravatar axel2006-06-21
| | | | darcs-hash:20060621100746-ac50b-8aa5648c05a656829a895669be27c6fa4f1d8458.gz
* Remove common_init and common_destroy. Use halloc instead.Gravatar axel2006-06-21
| | | | darcs-hash:20060621095838-ac50b-e4349a0ab02696cead5397efce3792c9d56c2d15.gz
* Check exit status of close and fclose in a few extra placesGravatar axel2006-06-21
| | | | darcs-hash:20060621095430-ac50b-52afcee91b856f706d6df6bcf2e3a6bc7d746e40.gz
* Update input validation. Always use the magic CHECK macro, which prints an ↵Gravatar axel2006-06-21
| | | | | | error message including instructions on how to report this problem. darcs-hash:20060621004836-ac50b-a47f296634eda0c469eb39034603015b1ad7ab5c.gz
* Various code polish, including minor rearangement of builtin code to export ↵Gravatar axel2006-06-21
| | | | | | fewer functions, a few additional input checks, and removal of the unneeded, exported error_max variable darcs-hash:20060620212016-ac50b-f76c10eea23fab14a648ea83ed0c83a171b8fef9.gz
* Minor comment edits, reindentation and other code formating changesGravatar axel2006-06-15
| | | | darcs-hash:20060615103706-ac50b-ad9f7060e40f5a786877e95f027688c90f43b6ec.gz
* Minor comment edits, reindentation and other code formating changesGravatar axel2006-06-15
| | | | darcs-hash:20060615103646-ac50b-d7cde4cfca0c776127e9e161daefb74ee6d027ba.gz
* Fix segfault caused by a backslash followed by a null inside single quotesGravatar axel2006-06-15
| | | | darcs-hash:20060615005931-ac50b-4c6be7129dfd2c3a5759a811b605ad32fceff758.gz
* Add support for hishlighting potentially valid paths - default behaviour is ↵Gravatar axel2006-06-14
| | | | | | to underline them darcs-hash:20060614132240-ac50b-448a4f8c43007262876d1ab6b52480e46b0e2981.gz
* Major restructuring of the buildsystem, meaning that the documentation ↵Gravatar axel2006-06-13
| | | | | | doesn't needlessly rebuild itself, and the size of the fish binary drops slightly darcs-hash:20060613134328-ac50b-05ae75eb5cc081b680f38e8866fac00a679cc266.gz
* Add more function input validation checksGravatar axel2006-06-09
| | | | darcs-hash:20060608235212-ac50b-25fd55f96356af65d4da1eec100cc954b4a9f81e.gz
* Highlight invalid use of variable expansion operatorGravatar axel2006-06-02
| | | | darcs-hash:20060601230438-ac50b-165ec1515e0e02674a992a1f0309a567aa6828de.gz
* Increase size of buffer for parser error string. Should change this to a ↵Gravatar axel2006-06-01
| | | | | | dynamically allocated string. darcs-hash:20060531154028-ac50b-ada120ecfe65bcf1ad1b3d1a5fad41ae9dec133c.gz
* Rename function expand_variable_array to tokenize_variable_array and move it ↵Gravatar axel2006-05-29
| | | | | | from expand.c to common.c, since it is used by fish_pager, which should not depend on expand.o darcs-hash:20060529111342-ac50b-315d7dcf04e05fa8f32e16801e6793ac4e4e022e.gz
* Add support for highlighting operators and escaped sequencesGravatar axel2006-05-27
| | | | darcs-hash:20060526164638-ac50b-2259579e0460df0641683ce6127bb8516fca8c7e.gz
* Minor editsGravatar axel2006-05-15
| | | | darcs-hash:20060514163936-ac50b-2a208818ccb26dabb60fba18078c3824da40adf5.gz
* Remove some hardcoded values in favour of constantsGravatar axel2006-05-14
| | | | darcs-hash:20060514132510-ac50b-2c703e8892d04b7d74555d05eb6618140e281a61.gz
* Fix broken method for sorting output of builtin commands 'functions', 'set' ↵Gravatar axel2006-05-14
| | | | | | and others darcs-hash:20060514094721-ac50b-9f1d8b6a2e8b4438e6a655de61af54d15cd4f537.gz
* Allow backslash escape fur null byteGravatar axel2006-05-10
| | | | darcs-hash:20060509165501-ac50b-3a69a7ed0b96d5be7860aa997b7c77e37a6b1dc7.gz
* Fixed use of improper storage type for variableGravatar axel2006-05-10
| | | | darcs-hash:20060509165207-ac50b-48561332ab938fe7972bbf07f32ac1f92322d316.gz
* Fix segfault when using the 'set' command with no argumentsGravatar axel2006-05-03
| | | | darcs-hash:20060502162830-ac50b-d3ab63c29a6daeaa62803923b060ec69942911f8.gz
* Add more descriptive error messages when trying to use variables in command ↵Gravatar axel2006-04-22
| | | | | | names darcs-hash:20060421142939-ac50b-d1809fa4687706b433d1d0a5e0a0c9d791de510f.gz