diff options
author | Aaron Gyes <me@aaron.gy> | 2016-04-08 19:09:01 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2016-04-09 12:40:04 -0700 |
commit | 574851f092358f5834afb0b529676924fcbd59c6 (patch) | |
tree | 678d470a19667d6cee5c0be294b76853d4d4b366 /src/fallback.h | |
parent | 2d5eaed745892a5e035caf7ccc02d27044f344fb (diff) |
Fix #2919 by removing the entire block.
This code represents only risk and does nothing useful for anything
that can compile fish.
In C++ situations where __STDC_VERSION__ is unset (as it should be),
fish was assuming we are on < C99 and setting it to __FUNCTION__.
Basically always, __PRETTY_FUNCTION__ ends up reaplaced by __FUNCTION__, this hurt
error message usefulness and richness.
__PRETTY_FUNCTION__: const thing::sub(int)
__FUNCTION__: sub
Diffstat (limited to 'src/fallback.h')
-rw-r--r-- | src/fallback.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/fallback.h b/src/fallback.h index f3252c14..0623ec54 100644 --- a/src/fallback.h +++ b/src/fallback.h @@ -24,19 +24,6 @@ int fish_wcswidth(const wchar_t *str, size_t n); #endif /** - Make sure __func__ is defined to some string. In C99, this should - be the currently compiled function. If we aren't using C99 or - later, older versions of GCC had __FUNCTION__. -*/ -#if __STDC_VERSION__ < 199901L -# if __GNUC__ >= 2 -# define __func__ __FUNCTION__ -# else -# define __func__ "<unknown>" -# endif -#endif - -/** Under curses, tputs expects an int (*func)(char) as its last parameter, but in ncurses, tputs expects a int (*func)(int) as its last parameter. tputs_arg_t is defined to always be what tputs |