diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-17 12:47:01 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-17 12:47:01 -0700 |
commit | d06d6c69645c4d355772cb19043469328c05ccc5 (patch) | |
tree | ba9f91943b94b9b59b3e781580eca5d3230ac493 /common.h | |
parent | 977a4477f646e344e66a7b0bc22e2e89b72d20db (diff) |
Various changes to reduce fish's compiled code size
OS X release build executable size dropped from 672k to 511k
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -122,7 +122,7 @@ extern const wchar_t *program_name; if( !(arg) ) \ { \ debug( 0, \ - _( L"function %s called with null value for argument %s. " ), \ + "function %s called with null value for argument %s. ", \ __func__, \ #arg ); \ bugreport(); \ @@ -162,7 +162,7 @@ extern const wchar_t *program_name; if( signal_is_blocked() ) \ { \ debug( 0, \ - _( L"function %s called while blocking signals. " ), \ + "function %s called while blocking signals. ", \ __func__); \ bugreport(); \ show_stackframe(); \ @@ -191,8 +191,6 @@ extern const wchar_t *program_name; void show_stackframe(); -wcstring_list_t completions_to_wcstring_list( const std::vector<completion_t> &completions ); - /** Read a line from the stream f into the buffer buff of length len. If buff is to small, it will be reallocated, and both buff and len will @@ -211,8 +209,6 @@ int fgetws2(wcstring *s, FILE *f); void sort_strings( std::vector<wcstring> &strings); -void sort_completions( std::vector<completion_t> &strings); - /** Returns a newly allocated wide character string equivalent of the specified multibyte character string @@ -635,6 +631,7 @@ ssize_t read_loop(int fd, void *buff, size_t count); will print the string 'fish: Pi = 3.141', given that debug_level is 1 or higher, and that program_name is 'fish'. */ +void debug( int level, const char *msg, ... ); void debug( int level, const wchar_t *msg, ... ); /** |