Fix bugs and have emulator emulate itself

This commit is contained in:
Justine Tunney 2020-08-31 05:17:31 -07:00
parent 5aabacb361
commit bd29223891
111 changed files with 1283 additions and 2073 deletions

View file

@ -4,7 +4,7 @@
COSMOPOLITAN_C_START_
typedef void *StringTableFormatter(long yn, long xn, const char *const[yn][xn],
int emit(), void *, const char *,
int (*)(), void *, const char *,
const char *, const char *);
StringTableFormatter FormatStringTable;
@ -15,28 +15,27 @@ StringTableFormatter FormatStringTableForAssertion;
void *FreeStringTableCells(long yn, long xn, char *[yn][xn]);
void FormatMatrixDouble(long yn, long xn, const double[yn][xn], int emit(),
void FormatMatrixDouble(long yn, long xn, const double[yn][xn], int (*)(),
void *, StringTableFormatter, const char *,
const char *, const char *, double,
double rounder(double));
void FormatMatrixFloat(long yn, long xn, const float[yn][xn], int emit(),
void *, StringTableFormatter, const char *, const char *,
const char *, double, double rounder(double));
void FormatMatrixByte(long yn, long xn, const unsigned char[yn][xn], int emit(),
const char *, const char *, double, double (*)(double));
void FormatMatrixFloat(long yn, long xn, const float[yn][xn], int (*)(), void *,
StringTableFormatter, const char *, const char *,
const char *, double, double (*)(double));
void FormatMatrixByte(long yn, long xn, const unsigned char[yn][xn], int (*)(),
void *, StringTableFormatter, const char *, const char *,
const char *);
void FormatMatrixShort(long yn, long xn, const short[yn][xn], int emit(),
void *, StringTableFormatter, const char *, const char *,
void FormatMatrixShort(long yn, long xn, const short[yn][xn], int (*)(), void *,
StringTableFormatter, const char *, const char *,
const char *);
char *StringifyMatrixDouble(long yn, long xn, const double[yn][xn],
StringTableFormatter, const char *, const char *,
const char *, double,
double rounder(double)) mallocesque;
double (*)(double)) mallocesque;
char *StringifyMatrixFloat(long yn, long xn, const float[yn][xn],
StringTableFormatter, const char *, const char *,
const char *, double,
double rounder(double)) mallocesque;
double (*)(double)) mallocesque;
char *StringifyMatrixByte(long yn, long xn, const unsigned char[yn][xn],
StringTableFormatter, const char *, const char *,
const char *) mallocesque;