Proper logging using scheme; implemented most MRB FFI in scheme

This commit is contained in:
2022-12-15 23:30:22 +00:00
parent 688d816bce
commit fa8dfaf8e8
11 changed files with 212 additions and 142 deletions

View File

@@ -57,6 +57,8 @@ void seghandle(int sig) {
}
int main(int argc, char **args) {
int logout = 1;
for (int i = 1; i < argc; i++) {
if (args[i][0] == '-') {
switch(args[i][1]) {
@@ -91,11 +93,15 @@ int main(int argc, char **args) {
exit(0);
break;
case 'c':
logout = 0;
break;
}
}
}
if (DBG) {
if (DBG && logout) {
time_t now = time(NULL);
char fname[100];
snprintf(fname, 100, "yugine-%d.log", now);