mirror of
https://github.com/ksherlock/profuse.git
synced 2024-12-22 20:29:59 +00:00
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@190 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
parent
77d7021e90
commit
21906f7b9b
@ -1,17 +1,21 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include <cctype>
|
||||
#include <memory>
|
||||
|
||||
#include <Pascal/File.h>
|
||||
|
||||
#include <ProfUSE/auto.h>
|
||||
#include <ProFUSE/Exception.h>
|
||||
|
||||
#include <Endian/Endian.h>
|
||||
#include <Endian/IOBuffer.h>
|
||||
|
||||
#include <Device/BlockDevice.h>
|
||||
#include <Device/BlockCache.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include <cctype>
|
||||
#include <memory>
|
||||
|
||||
|
||||
using namespace LittleEndian;
|
||||
using namespace Pascal;
|
||||
@ -197,7 +201,7 @@ int FileEntry::textRead(uint8_t *buffer, unsigned size, unsigned offset)
|
||||
unsigned l;
|
||||
unsigned count = 0;
|
||||
|
||||
auto_array<uint8_t> tmp;
|
||||
ProFUSE::auto_array<uint8_t> tmp;
|
||||
unsigned tmpSize = 0;
|
||||
|
||||
if (!_pageSize) textInit();
|
||||
|
14
Pascal/Makefile
Normal file
14
Pascal/Makefile
Normal file
@ -0,0 +1,14 @@
|
||||
CC = g++
|
||||
CPPFLAGS += -g -Wall -I../
|
||||
|
||||
|
||||
all : Date.o Entry.o FileEntry.o VolumeEntry.o
|
||||
|
||||
Date.o : Date.cpp Date.h
|
||||
|
||||
Entry.o : Entry.cpp File.h
|
||||
|
||||
FileEntry.o : FileEntry.cpp File.h Date.h
|
||||
|
||||
VolumeEntry.o : VolumeEntry.cpp File.h Date.h
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <Pascal/File.h>
|
||||
|
||||
#include <ProfUSE/auto.h>
|
||||
#include <ProFUSE/auto.h>
|
||||
#include <ProFUSE/Exception.h>
|
||||
|
||||
#include <Endian/Endian.h>
|
||||
@ -12,6 +12,9 @@
|
||||
#pragma mark -
|
||||
#pragma mark VolumeEntry
|
||||
|
||||
using namespace LittleEndian;
|
||||
using namespace Pascal;
|
||||
|
||||
unsigned VolumeEntry::ValidName(const char *cp)
|
||||
{
|
||||
// 7 chars max. Legal values: ascii, printable,
|
||||
@ -86,7 +89,7 @@ VolumeEntry::VolumeEntry(const char *name, Device::BlockDevice *device)
|
||||
|
||||
VolumeEntry::VolumeEntry(Device::BlockDevice *device)
|
||||
{
|
||||
auto_array<uint8_t> buffer(new uint8_t[512]);
|
||||
ProFUSE::auto_array<uint8_t> buffer(new uint8_t[512]);
|
||||
unsigned blockCount;
|
||||
|
||||
// read the header block, then load up all the header
|
||||
|
Loading…
Reference in New Issue
Block a user