Remove a redundant status
diff --git a/include/bc.h b/include/bc.h
index 026a7da..b22e600 100644
--- a/include/bc.h
+++ b/include/bc.h
@@ -102,7 +102,6 @@
BC_STATUS_EXEC_ARRAY_LEN,
BC_STATUS_EXEC_BAD_READ_EXPR,
BC_STATUS_EXEC_RECURSIVE_READ,
- BC_STATUS_EXEC_PRINT_ERR,
BC_STATUS_EXEC_BAD_CONSTANT,
BC_STATUS_EXEC_BAD_RETURN,
BC_STATUS_EXEC_BAD_LABEL,
diff --git a/src/bc/data.c b/src/bc/data.c
index 2140e81..2f4a262 100644
--- a/src/bc/data.c
+++ b/src/bc/data.c
@@ -93,7 +93,6 @@
"Runtime",
"Runtime",
"Runtime",
- "Runtime",
"POSIX",
"POSIX",
@@ -171,7 +170,6 @@
"array too long; must be [1, BC_DIM_MAX]",
"bad read() expression",
"read() call inside of a read() call",
- "print error",
"bad constant",
"cannot return from function; no function to return from",
"bad label; this is probably a bug in bc",
diff --git a/src/bc/program.c b/src/bc/program.c
index a288351..a3aa3b4 100644
--- a/src/bc/program.c
+++ b/src/bc/program.c
@@ -612,7 +612,7 @@
}
}
- if (err == EOF) return BC_STATUS_EXEC_PRINT_ERR;
+ if (err == EOF) return BC_STATUS_IO_ERR;
}
return BC_STATUS_SUCCESS;