mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Drop unuses error counter for string conversions
darcs-hash:20060222142042-ac50b-25f2e050c680071ccec6989e477f6db5904a2713.gz
This commit is contained in:
parent
a4a025b786
commit
0ea69dab7b
2 changed files with 0 additions and 14 deletions
12
common.c
12
common.c
|
@ -71,13 +71,6 @@ parts of fish.
|
||||||
|
|
||||||
struct termios shell_modes;
|
struct termios shell_modes;
|
||||||
|
|
||||||
/**
|
|
||||||
Number of error encountered. This is reset after each command, and
|
|
||||||
used to limit the number of error messages on commands with many
|
|
||||||
string convertion problems.
|
|
||||||
*/
|
|
||||||
static int error_count=0;
|
|
||||||
|
|
||||||
int error_max=1;
|
int error_max=1;
|
||||||
|
|
||||||
wchar_t ellipsis_char;
|
wchar_t ellipsis_char;
|
||||||
|
@ -271,11 +264,6 @@ wchar_t *str2wcs_internal( const char *in, wchar_t *out )
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
void error_reset()
|
|
||||||
{
|
|
||||||
error_count=0;
|
|
||||||
}
|
|
||||||
|
|
||||||
char *wcs2str( const wchar_t *in )
|
char *wcs2str( const wchar_t *in )
|
||||||
{
|
{
|
||||||
char *out;
|
char *out;
|
||||||
|
|
2
reader.c
2
reader.c
|
@ -2287,7 +2287,6 @@ static int read_i()
|
||||||
{
|
{
|
||||||
prev_end_loop=0;
|
prev_end_loop=0;
|
||||||
}
|
}
|
||||||
error_reset();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
reader_pop();
|
reader_pop();
|
||||||
|
@ -2935,7 +2934,6 @@ static int read_ni( int fd )
|
||||||
free( buff );
|
free( buff );
|
||||||
res=1;
|
res=1;
|
||||||
}
|
}
|
||||||
error_reset();
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue