Commit f1f58379 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

unlit: mark local functions as 'static'



Found by uselex.rb:
    complain: [R]: exported from: ./utils/unlit/dist/build/unlit.o
    egetc: [R]: exported from: ./utils/unlit/dist/build/unlit.o
    myputc: [R]: exported from: ./utils/unlit/dist/build/unlit.o
    readline: [R]: exported from: ./utils/unlit/dist/build/unlit.o
    unlit: [R]: exported from: ./utils/unlit/dist/build/unlit.o
    writeerror: [R]: exported from: ./utils/unlit/dist/build/unlit.o
Signed-off-by: default avatarSergei Trofimovich <siarheit@google.com>
parent 5d73fb61
......@@ -91,7 +91,7 @@ static char *ofilename = NULL;
* if noisy is not set.
*/
void complain(char *file, int lin, char *what)
static void complain(char *file, int lin, char *what)
{
if (noisy) {
if (file)
......@@ -101,7 +101,7 @@ void complain(char *file, int lin, char *what)
}
}
void writeerror(void)
static void writeerror(void)
{
if (!strcmp(ofilename,"-")) {
fprintf(stderr, CANNOTWRITESTDOUT);
......@@ -111,7 +111,7 @@ void writeerror(void)
exit(1);
}
void myputc(char c, FILE *ostream)
static void myputc(char c, FILE *ostream)
{
if (putc(c,ostream) == EOF) {
writeerror();
......@@ -121,8 +121,7 @@ void myputc(char c, FILE *ostream)
#define TABPOS 8
/* As getc, but does TAB expansion */
int
egetc(FILE *istream)
static int egetc(FILE *istream)
{
static int spleft = 0;
static int linepos = 0;
......@@ -171,7 +170,7 @@ egetc(FILE *istream)
* stream.
*/
line readline(FILE *istream, FILE *ostream) {
static line readline(FILE *istream, FILE *ostream) {
int c, c1;
char buf[100];
int i;
......@@ -246,7 +245,7 @@ line readline(FILE *istream, FILE *ostream) {
* - there should be at least one DEFN line in a script.
*/
void unlit(char *file, FILE *istream, FILE *ostream)
static void unlit(char *file, FILE *istream, FILE *ostream)
{
line last, this=START;
int linesread=0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment