Changed names of functions in utility.c and all affected files, to make

compliant with the style guide. Everybody rebuild your tags file!
This commit is contained in:
Mark Whitley
2000-12-07 19:56:48 +00:00
parent 7b5c16ebe5
commit f57c944e09
155 changed files with 1019 additions and 1019 deletions

View File

@@ -14,14 +14,14 @@ static unsigned int pointer;
static void push(double a)
{
if (pointer >= (sizeof(stack) / sizeof(*stack)))
fatalError("stack overflow\n");
error_msg_and_die("stack overflow\n");
stack[pointer++] = a;
}
static double pop()
{
if (pointer == 0)
fatalError("stack underflow\n");
error_msg_and_die("stack underflow\n");
return stack[--pointer];
}
@@ -120,7 +120,7 @@ static void stack_machine(const char *argument)
}
o++;
}
fatalError("%s: syntax error.\n", argument);
error_msg_and_die("%s: syntax error.\n", argument);
}
/* return pointer to next token in buffer and set *buffer to one char

View File

@@ -35,7 +35,7 @@ extern int dutmp_main(int argc, char **argv)
} else {
file = open(argv[1], O_RDONLY);
if (file < 0) {
fatalError(io_error, argv[1], strerror(errno));
error_msg_and_die(io_error, argv[1], strerror(errno));
}
}

View File

@@ -75,7 +75,7 @@ extern int mt_main(int argc, char **argv)
}
if (code->name == 0) {
errorMsg("unrecognized opcode %s.\n", argv[1]);
error_msg("unrecognized opcode %s.\n", argv[1]);
return EXIT_FAILURE;
}

View File

@@ -39,7 +39,7 @@ int readlink_main(int argc, char **argv)
buf = xrealloc(buf, bufsize);
size = readlink(argv[1], buf, bufsize);
if (size == -1)
fatalError("%s: %s\n", argv[1], strerror(errno));
error_msg_and_die("%s: %s\n", argv[1], strerror(errno));
}
buf[size] = '\0';