Import backup from 2004-05-23

This commit is contained in:
josh committed 2017-07-25 22:23:46 -04:00
1 parent a982312d2c
commit 6d941b7b16
12 files changed
+85 -59

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
#include "hos_defines.h"
#include "fs/vfs.h"
#include "mm/vmm.h"
#include "string/string.h"
#include "lang/string.h"
//From Microsoft's FAT32 File System Specification
DSKSZTOSECPERCLUS DskTableFAT16 [] =
+22 -2
View File
@@ -3,9 +3,9 @@
// Date: 03/11/04
// Modified: 03/16/04
#include "hos_defines.h"
#include "vfs.h"
//#include "fs/vfat.h"
#include "hos_defines.h"
//#include "block/rd.h"
//#include "block/loop.h"
#include "lang/LinkedList.h"
@@ -13,7 +13,27 @@
void vfs_init()
{
LinkedList<int> test;
for (int i = 0; i < 100; i++)
test.insert(i/2, i);
printf("num: %d\t", test.numElements());
for (int i = 0; i < test.numElements(); i++)
printf("%d\t", test[i]);
while (test.numElements())
test.pop_back();
printf("\n");
for (int i = 0; i < 6; i++)
test.push_back(i << 1);
for (int i = 0; i < test.numElements(); i++)
printf("%d\t", test[i]);
printf("\nnum: %d\t", test.numElements());
while (test.numElements())
{
test.remove(0);
for (int i = 0; i < test.numElements(); i++)
printf("%d\t", test[i]);
printf("\n");
}
}