mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-27 20:25:12 +00:00
PPC fix by James Vega, fixing an issue with a variable named putc, which clashed with the putc macro
darcs-hash:20060403150422-ac50b-78d5db541cb1f41bfea55deac7578c0df73605bd.gz
This commit is contained in:
parent
634bdb8b3b
commit
db5b887824
2 changed files with 4 additions and 4 deletions
|
@ -38,17 +38,17 @@
|
||||||
#include <ncurses/term.h>
|
#include <ncurses/term.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "common.h"
|
#include "fallback.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef TPUTS_KLUDGE
|
#ifdef TPUTS_KLUDGE
|
||||||
|
|
||||||
int tputs(const char *str, int affcnt, int (*putc)(tputs_arg_t))
|
int tputs(const char *str, int affcnt, int (*fish_putc)(tputs_arg_t))
|
||||||
{
|
{
|
||||||
while( *str )
|
while( *str )
|
||||||
{
|
{
|
||||||
putc( *str++ );
|
fish_putc( *str++ );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ typedef char tputs_arg_t;
|
||||||
Linux on PPC seems to have a tputs implementation that sometimes
|
Linux on PPC seems to have a tputs implementation that sometimes
|
||||||
behaves strangely. This fallback seems to fix things.
|
behaves strangely. This fallback seems to fix things.
|
||||||
*/
|
*/
|
||||||
int tputs(const char *str, int affcnt, int (*putc)(tputs_arg_t));
|
int tputs(const char *str, int affcnt, int (*fish_putc)(tputs_arg_t));
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue