source: util.c

Revision Log Mode:


Legend:

Added
Modified
Copied or renamed
Diff Rev Age Author Log Message
(edit) @cba6b9c   3 years andersk owl_util_file_deleteline: Prevent FD leak in error paths Found by ...
(edit) @7b89e8c   6 years davidben Add owl_argv_quote convenience function Did we really never write ... release-1.9
(edit) @6646fdb   6 years davidben Restore correct semantics of message 'time' attribute This rewrites ... release-1.9
(edit) @f271129   6 years jgross Fix up headers The additions to owl.h and some of the removals were ... release-1.9
(edit) @4ebbfbc   6 years jgross Show the time zone in :info; replace ctime with strftime This fixes ... release-1.9
(edit) @8219374   6 years davidben Use getpwnam_r instead of getpwnam It's re-entrant, so that's ... release-1.8release-1.9
(edit) @396505be   6 years davidben Use owl_global_get_homedir for ~ in owl_util_makepath It's strange ... release-1.8release-1.9
(edit) @dde1b4d   6 years davidben Use g_build_filename instead of g_strdup_printf to build paths Saves ... release-1.8release-1.9
(edit) @c0c48d14   6 years davidben Reimplement owl_util_makepath The new algorithm is cleaner and much ... release-1.8release-1.9
(edit) @b8a3e00   6 years davidben Consistently use BarnOwl or barnowl BarnOwl refers to the program, ... release-1.8release-1.9
(edit) @3cdd6d2   6 years davidben Add owl_ptr_array_free convenience function Unfortunately, most uses ... release-1.8release-1.9
(edit) @6829afc   6 years davidben Define CALLER_OWN macro Replace our exising uses of ... release-1.8release-1.9
(edit) @d427f08   6 years nelhage Use G_GNUC_WARN_UNUSED_RESULT Have gcc warn us when we ignore the ... release-1.8release-1.9
(edit) @83a4af3   6 years jgross Replace free() with g_free() I can't believe I missed this when I ... release-1.8release-1.9
(edit) @9efa5bd   6 years davidben Clamp the number of color pairs to 256 without ext-color Debian ... release-1.8release-1.9
(edit) @e56303f   7 years davidben Replace owl_parse_delete with g_strfreev Also cut the pointless ... release-1.8release-1.9
(edit) @3472845   7 years andersk Replace owl_sprintf with g_strdup_printf. Signed-off-by: Anders ... release-1.8release-1.9
(edit) @d4927a7   7 years andersk Replace owl_strdup with g_strdup. Signed-off-by: Anders Kaseorg ... release-1.8release-1.9
(edit) @ddbbcffa   7 years andersk Replace owl_free with g_free. Signed-off-by: Anders Kaseorg ... release-1.8release-1.9
(edit) @35b6eb9   7 years andersk Replace owl_realloc with g_renew. Signed-off-by: Anders Kaseorg ... release-1.8release-1.9
(edit) @96828e4   7 years andersk Replace owl_malloc with g_new and g_new0. Signed-off-by: Anders ... release-1.8release-1.9
(edit) @6965867   7 years davidben g_ptr_array_new_with_free_func is glib 2.22+ Use g_ptr_array_foreach ... release-1.8release-1.9
(edit) @0290b2a   7 years davidben Use GString instead of allocating a giant buffer in owl_parseline release-1.8release-1.9
(edit) @65c753e   7 years davidben Use a GPtrArray to manage the growing list in owl_parseline It's much ... release-1.8release-1.9
(edit) @f47696f   7 years davidben Add owl_string_appendf_quoted for easy construction of command lines. release-1.8release-1.9
(edit) @2bc6ad35   7 years davidben Add owl_quote_arg and owl_string_append_quoted_arg Also add unit ... release-1.8release-1.9
(edit) @d275eb2   7 years davidben Replace atokenize with glib's g_strsplit_set Glib's had ... release-1.8release-1.9
(edit) @fa90c34   7 years davidben Fixup owl_util_recursive_resolve_link to handle relative symlinks ... release-1.8release-1.9
(edit) @9b9efa2b   7 years davidben Punt owl_util_max and owl_util_min in favor of MAX and MIN glib ... release-1.8release-1.9
(edit) @950e2da   7 years kcr Fixed :unsub to make it work if ~/.zephyr.subs is a symlink (trac 133) ... release-1.7release-1.8release-1.9
(edit) @5fca55f   7 years kcr I/O errors on writing subscription file in :unsub are no longer ... release-1.7release-1.8release-1.9
(edit) @c1f1e1e   7 years davidben Add convenience method for connecting a window to a signal release-1.7release-1.8release-1.9
(edit) @ad788b5   7 years davidben Move the sepbar stuff into a separate file release-1.7release-1.8release-1.9
(edit) @385fda9   7 years davidben A fairly hacky job of porting sepbar to owl_window We now use the new ... release-1.7release-1.8release-1.9
(edit) @05ca0d8   7 years davidben Implement our own owl_signal_connect_object This is actually more ... release-1.7release-1.8release-1.9
(edit) @4e33cb2   7 years davidben Punt a lot of needrefreshes Move the actual needrefreshes into the ... release-1.7release-1.8release-1.9
(edit) @9a7b4f2   7 years nelhage Use zcrypt from our own bin directory. release-1.6release-1.7release-1.8release-1.9
(edit) @f449096   8 years davidben Drop calls to update_panels outside main loop One call is sufficient. ... release-1.6release-1.7release-1.8release-1.9
(edit) @46d940a   8 years andersk atokenize: Use owl_strdup instead of memcpy. Signed-off-by: Anders ... release-1.6release-1.7release-1.8release-1.9
(edit) @40d22cf   8 years andersk Rename owl_parsefree to owl_parse_delete. Signed-off-by: Anders ... release-1.6release-1.7release-1.8release-1.9
(edit) @1672650   8 years andersk Rename atokenize_free to atokenize_delete. Signed-off-by: Anders ... release-1.6release-1.7release-1.8release-1.9
(edit) @8ae2de9   8 years davidben Attach PANELs to all of our WINDOWs We replace wnoutrefresh with ... release-1.6release-1.7release-1.8release-1.9
(edit) @a61daae   8 years andersk owl_util_file_deleteline: Fix a leak. Signed-off-by: Anders Kaseorg ... release-1.6release-1.7release-1.8release-1.9
(edit) @96c3265   8 years kcr Tighten up sepbar() release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @1b9d3cc   8 years geofft atoi("puce") == 0 Signed-off-by: Geoffrey Thomas <geofft@mit.edu> release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @a3e61a2   8 years kcr Rewrite color name<->number mapping code Make it data-driven, as ... release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @0697f09   8 years asedeno Drop owl_animate_hack. release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @435001d   8 years alexmv sys/stat.h is needed for "struct stat" release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @946058b   8 years kcr rewrite owl_util_file_deleteline Rewrite owl_util_file_deleteline to ... release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @6ace255   8 years kcr owl_getline, owl_getline_chomp, and owl_slurp For the glorious ... release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @f119757   8 years andersk g_utf8_next_char can’t return NULL; remove redundant checks. ... release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @c79a047   8 years andersk Correctly prototype functions with no parameters as foo(void), not ... release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @da60ba9   8 years davidben Cause unsub to warn user if user wasn't subbed Add a return value to ... release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @eea72a1   8 years nelhage owl_new_sv: Escape non-utf8 strings before erroring with them. ... release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @36486be   8 years andersk Replace several owl_malloc, sprintf sequences with owl_strdup or ... release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @4083c49   8 years andersk Fix unchecked accesses to s[strlen(s) - 1]. Signed-off-by: Anders ... release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @e30ed92   8 years nelhage skiptokens: Handle quotes more correctly. This fixes ctl's bug about ... release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @8bce750   8 years nelhage Move all regression tests into tester.c. release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @9e5c9f3   8 years andersk Add const qualifiers for owl_view *. Signed-off-by: Anders Kaseorg ... release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @3eb599d   8 years andersk Add const qualifiers for owl_messagelist *. Signed-off-by: Anders ... release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @e19eb97   8 years andersk Add const qualifiers for char * and void *. Signed-off-by: Anders ... release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @fa4562c   8 years andersk Prepare code for adding const qualifiers for char * and void *. ... release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @65b2173   8 years andersk Split up declarations for adding const qualifiers for char * and void ... release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @4d86e06   8 years andersk Get rid of a whole bunch of useless casts. Signed-off-by: Anders ... release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @d43edd2   8 years andersk Death to RCS keywords. Signed-off-by: Anders Kaseorg <andersk@mit.edu> release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @7f6a8a2   8 years andersk Quash a zephyr 3 warning by adding some missing consts. ... release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @3e8ff1e   8 years nelhage Implement owl_text_expand_tabs, and tests. release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @7bf51d5   8 years nelhage Correctly read the BARNOWL_DATA_DIR environment variable. getenv() ... release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @4b17a6c   8 years nelhage Zephyr: Always send in UTF-8, never iso-latin-1. debianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @f34dd65   9 years nelhage Kill a whole bunch of unused code. I generated a list of dead ... debianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @e97c4a30   9 years geofft util.c: Fix double-free from owl_zephyr_delsub. Also fix general ... debianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @6eaf35b   9 years andersk Correct format specifiers for longs. debianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @601733d   9 years asedeno The color default has been -1 for a while now, so we match what curses ... debianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @ee310eb   10 years asedeno Merged revisions 909-923 via svnmerge from ... barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @af1920fd   10 years asedeno Portability - removing C++ style comments. barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @84027015   10 years asedeno editwin.c - lots of utf-8 cleanup that I had been putting off. util.c ... barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @c1522ec   10 years asedeno Eliminating a warning by un-internalizing a new fmtext function. barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @7b1d048   10 years asedeno first pass at outbound zephyr -> iso-8859-1 sanitizing. Not that we ... barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @6201646   10 years asedeno Fixing bug encountered when last field was not null-terminated. barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @5376a95   10 years asedeno First pass at incoming zephyr -> UTF-8 sanitizing. This only operates ... barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @28ee32b   10 years asedeno UTF-8 - first pass unicode changes: * remove downstr() from text.c, ... barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @5bc0f68   10 years asedeno Merged revisions 777-778 via svnmerge from ... barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @89f5338   10 years asedeno Moving owl_get_datadir to util.c so make test'' works again. barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @93ee554   10 years asedeno Merged revisions 734-776 via svnmerge from ... barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @34509d5   10 years asedeno GLib/Unicode branch - adding glib dependency. Linking BarnOwl to ... barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @04166e9   10 years nelhage Don't read before the start of the string for an instance barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @93f65b6   10 years nelhage Clean up an unused var warning. barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @1cf3f8d3   10 years nelhage Make the built-in regression tests output TAP and add a perl wrapper ... barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @c2c5c77   11 years asedeno Adding 256-color support. This requires a version of ncurses that ... barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @d524c83   11 years nelhage free() should be owl_free() barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @95caa16   11 years nelhage Fix a pair of stupid minor memory leaks. barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @f166580   11 years asedeno This is better still. barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @59916e8   11 years asedeno Once more, dealing better with free(). barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @be5aa09   11 years asedeno Fixing a bug reported over zephyr in which narrowing would permanently ... barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @7a20e4c   11 years nelhage smartnarrowing to an unclass is now the same as narrowing to the ... barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @0138478   11 years nelhage Test failures now print out file/line numbers barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @fe67f1f   13 years kretch Do OLC formatting for anything coming from olc.matisse Improvements to ... barnowl_perlaimdebianowlrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @1bb1e67   14 years nygren Fix two minor issues found by valgrind barnowl_perlaimdebianowlrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @330bcec   14 years kretch In the sepbar, reverse video the view name when it's not set to ... barnowl_perlaimdebianowlrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
(edit) @40458b9   14 years kretch Filters of filters now work barnowl_perlaimdebianowlrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Note: See TracRevisionLog for help on using the revision log.