summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJakob L. Kreuze <jakob@memeware.net>2018-05-23 18:16:25 -0400
committerJakob L. Kreuze <jakob@memeware.net>2018-05-23 18:16:25 -0400
commit7802dcd0df8a6f0e88bbfb8f9a06999be2afc919 (patch)
treeff71a81fcbe9f5b79794134bce101c76ef76dd8c /src/main.rs
parentfe1dd1ab24e12a70b436b2f685aaad3ea6cf06f7 (diff)
Update README
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/main.rs b/src/main.rs
index 0c48e53..7bfdd82 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -5,67 +5,6 @@ use std::process;
mod fmt;
-// initgroupfile(char *filename)
-// {
-// char buf[16];
-// long i, j, k;
-
-// if (numgroupfiles >= MAXGROUPFILES) return(-1);
-
-// groupfil[numgroupfiles] = open(filename,O_BINARY|O_RDWR,S_IREAD);
-// if (groupfil[numgroupfiles] != -1)
-// {
-// groupfilpos[numgroupfiles] = 0;
-// read(groupfil[numgroupfiles],buf,16);
-// if ((buf[0] != 'K') || (buf[1] != 'e') || (buf[2] != 'n') ||
-// (buf[3] != 'S') || (buf[4] != 'i') || (buf[5] != 'l') ||
-// (buf[6] != 'v') || (buf[7] != 'e') || (buf[8] != 'r') ||
-// (buf[9] != 'm') || (buf[10] != 'a') || (buf[11] != 'n'))
-// {
-// close(groupfil[numgroupfiles]);
-// groupfil[numgroupfiles] = -1;
-// return(-1);
-// }
-// gnumfiles[numgroupfiles] = *((long *)&buf[12]);
-
-// if ((gfilelist[numgroupfiles] = (char *)kmalloc(gnumfiles[numgroupfiles]<<4)) == 0)
-// { printf("Not enough memory for file grouping system\n"); exit(0); }
-// if ((gfileoffs[numgroupfiles] = (long *)kmalloc((gnumfiles[numgroupfiles]+1)<<2)) == 0)
-// { printf("Not enough memory for file grouping system\n"); exit(0); }
-
-// read(groupfil[numgroupfiles],gfilelist[numgroupfiles],gnumfiles[numgroupfiles]<<4);
-
-// j = 0;
-// for(i=0;i<gnumfiles[numgroupfiles];i++)
-// {
-// k = *((long *)&gfilelist[numgroupfiles][(i<<4)+12]);
-// gfilelist[numgroupfiles][(i<<4)+12] = 0;
-// gfileoffs[numgroupfiles][i] = j;
-// j += k;
-// }
-// gfileoffs[numgroupfiles][gnumfiles[numgroupfiles]] = j;
-// }
-// numgroupfiles++;
-// return(groupfil[numgroupfiles-1]);
-// }
-
-
-// High-level description:
-// - Caches group files into an array with a rolling index.
-// - Keeps track of group file positions (pointer?) starts as 0.
-// - Keeps track of number of files in another array (gnumfiles)
-//
-// - Check header for "KenSilverman", invalidate entry in cache if bad.
-// - kmalloc 16 * number of files (for storing table)
-// - kmalloc 4 * (number of files + 1) (for storing individual file offsets)
-// - Read in table
-// - For every entry, read in the file size, and invalidate the entry.
-
-
-
-
-// -------
-
// void printstr(short x, short y, char string[81], char attribute)
// {
// char character;