mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-06 16:56:40 +08:00
src/tools/uchardet.cpp: make stuff static
This commit is contained in:
parent
ef19faa8c5
commit
45bd32d102
@ -45,9 +45,9 @@
|
||||
#endif
|
||||
#define BUFFER_SIZE 65536
|
||||
|
||||
char buffer[BUFFER_SIZE];
|
||||
static char buffer[BUFFER_SIZE];
|
||||
|
||||
void detect(FILE * fp)
|
||||
static void detect(FILE * fp)
|
||||
{
|
||||
uchardet_t handle = uchardet_new();
|
||||
|
||||
@ -74,7 +74,7 @@ void detect(FILE * fp)
|
||||
uchardet_delete(handle);
|
||||
}
|
||||
|
||||
void show_version()
|
||||
static void show_version()
|
||||
{
|
||||
printf("\n");
|
||||
printf("uchardet Command Line Tool\n");
|
||||
@ -85,7 +85,7 @@ void show_version()
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
void show_usage()
|
||||
static void show_usage()
|
||||
{
|
||||
show_version();
|
||||
printf("Usage:\n");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user