source: util.c

Revision Log Mode:


Legend:

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