Import backup from 2004-06-01
This commit is contained in:
1 parent
6d941b7b16
commit
b4aca026d4
17 files changed
+419
-161
No files matched your search
+1
-1
@@ -7,7 +7,7 @@
|
||||
#include "hos_defines.h"
|
||||
#include "fs/vfs.h"
|
||||
#include "mm/vmm.h"
|
||||
#include "lang/string.h"
|
||||
#include "lang/cstring.h"
|
||||
|
||||
//From Microsoft's FAT32 File System Specification
|
||||
DSKSZTOSECPERCLUS DskTableFAT16 [] =
|
||||
|
||||
+5
-23
@@ -3,37 +3,19 @@
|
||||
// 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"
|
||||
//#include "lang/LinkedList.h"
|
||||
#include "lang/string.h"
|
||||
#include "kio.h"
|
||||
|
||||
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");
|
||||
}
|
||||
string test1 = "hi there.";
|
||||
printf("%s", test1.data());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user