mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Rename some variables.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4718 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
2e63374f31
commit
cb7d969963
@ -576,23 +576,23 @@ uoff_t str_to_uofft(const char *str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* convert all low-ascii (<32) to ^<A..> combinations */
|
/* convert all low-ascii (<32) to ^<A..> combinations */
|
||||||
char *show_lowascii(const char *channel)
|
char *show_lowascii(const char *str)
|
||||||
{
|
{
|
||||||
char *str, *p;
|
char *ret, *p;
|
||||||
|
|
||||||
str = p = g_malloc(strlen(channel)*2+1);
|
ret = p = g_malloc(strlen(str)*2+1);
|
||||||
while (*channel != '\0') {
|
while (*str != '\0') {
|
||||||
if ((unsigned char) *channel >= 32)
|
if ((unsigned char) *str >= 32)
|
||||||
*p++ = *channel;
|
*p++ = *str;
|
||||||
else {
|
else {
|
||||||
*p++ = '^';
|
*p++ = '^';
|
||||||
*p++ = *channel + 'A'-1;
|
*p++ = *str + 'A'-1;
|
||||||
}
|
}
|
||||||
channel++;
|
str++;
|
||||||
}
|
}
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
||||||
return str;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get time in human readable form with localtime() + asctime() */
|
/* Get time in human readable form with localtime() + asctime() */
|
||||||
|
@ -79,7 +79,7 @@ int dec2octal(int decimal);
|
|||||||
uoff_t str_to_uofft(const char *str);
|
uoff_t str_to_uofft(const char *str);
|
||||||
|
|
||||||
/* convert all low-ascii (<32) to ^<A..> combinations */
|
/* convert all low-ascii (<32) to ^<A..> combinations */
|
||||||
char *show_lowascii(const char *channel);
|
char *show_lowascii(const char *str);
|
||||||
|
|
||||||
/* Get time in human readable form with localtime() + asctime() */
|
/* Get time in human readable form with localtime() + asctime() */
|
||||||
char *my_asctime(time_t t);
|
char *my_asctime(time_t t);
|
||||||
|
Loading…
Reference in New Issue
Block a user