- Remove some header duplication. Modified: trunk/reactos/boot/freeldr/freeldr/fs/fsrec.c Modified: trunk/reactos/boot/freeldr/freeldr/fs/ntfs.c Modified: trunk/reactos/boot/freeldr/freeldr/include/freeldr.h Modified: trunk/reactos/boot/freeldr/freeldr/include/fs.h Modified: trunk/reactos/boot/freeldr/freeldr/include/rtl.h _____
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fsrec.c --- trunk/reactos/boot/freeldr/freeldr/fs/fsrec.c 2005-11-13 04:50:55 UTC (rev 19190) +++ trunk/reactos/boot/freeldr/freeldr/fs/fsrec.c 2005-11-13 05:17:17 UTC (rev 19191) @@ -122,7 +122,7 @@
return FALSE; }
- if (!RtlCompareMemory(BootSector->SystemId, "NTFS", 4)) + if (RtlEqualMemory(BootSector->SystemId, "NTFS", 4)) { return TRUE; } _____
Modified: trunk/reactos/boot/freeldr/freeldr/fs/ntfs.c --- trunk/reactos/boot/freeldr/freeldr/fs/ntfs.c 2005-11-13 04:50:55 UTC (rev 19190) +++ trunk/reactos/boot/freeldr/freeldr/fs/ntfs.c 2005-11-13 05:17:17 UTC (rev 19191) @@ -102,7 +102,7 @@
if (AttrRecord->NameLength == NameLength) { AttrName = (PWCHAR)((PCHAR)AttrRecord + AttrRecord->NameOffset); - if (!RtlCompareMemory(AttrName, Name, NameLength << 1)) + if (RtlEqualMemory(AttrName, Name, NameLength << 1)) { /* Found it, fill up the context and return. */ Context->Record = AttrRecord; @@ -611,7 +611,7 @@ return FALSE; }
- if (RtlCompareMemory(NtfsBootSector->SystemId, "NTFS", 4)) + if (!RtlEqualMemory(NtfsBootSector->SystemId, "NTFS", 4)) { FileSystemError("Invalid NTFS signature."); return FALSE; _____
Modified: trunk/reactos/boot/freeldr/freeldr/include/freeldr.h --- trunk/reactos/boot/freeldr/freeldr/include/freeldr.h 2005-11-13 04:50:55 UTC (rev 19190) +++ trunk/reactos/boot/freeldr/freeldr/include/freeldr.h 2005-11-13 05:17:17 UTC (rev 19191) @@ -20,6 +20,10 @@
#ifndef __FREELDR_H #define __FREELDR_H
+#define UINT64_C(val) val##ULL + +#include <stdlib.h> +#include <stdio.h> #include <ddk/ntddk.h> #include <ndk/ntndk.h> #include <arch.h> _____
Modified: trunk/reactos/boot/freeldr/freeldr/include/fs.h --- trunk/reactos/boot/freeldr/freeldr/include/fs.h 2005-11-13 04:50:55 UTC (rev 19190) +++ trunk/reactos/boot/freeldr/freeldr/include/fs.h 2005-11-13 05:17:17 UTC (rev 19191) @@ -21,7 +21,7 @@
#define __FS_H
-#define EOF -1 +//#define EOF -1
#define FS_FAT 1 #define FS_NTFS 2 _____
Modified: trunk/reactos/boot/freeldr/freeldr/include/rtl.h --- trunk/reactos/boot/freeldr/freeldr/include/rtl.h 2005-11-13 04:50:55 UTC (rev 19190) +++ trunk/reactos/boot/freeldr/freeldr/include/rtl.h 2005-11-13 05:17:17 UTC (rev 19191) @@ -22,32 +22,6 @@
#include <freeldr.h>
-/////////////////////////////////////////////////////////////////////// //////////////// -// -// Memory Functions -// -/////////////////////////////////////////////////////////////////////// //////////////// -int memcmp(const void *buf1, const void *buf2, size_t count); -void * memcpy(void *to, const void *from, size_t count); -void * memmove(void *dest, const void *src, size_t count); -void * memset(void *src, int val, size_t count); - -#define RtlCompareMemory(Source1, Source2, Length) memcmp(Source1, Source2, Length) - -/////////////////////////////////////////////////////////////////////// //////////////// -// -// Standard Library Functions -// -/////////////////////////////////////////////////////////////////////// //////////////// -int atoi(const char *string); -char * itoa(int value, char *string, int radix); -int toupper(int c); -int tolower(int c); - -int isspace(int c); -int isdigit(int c); -int isxdigit(int c); - char * convert_to_ascii(char *buf, int c, int num); char * convert_i64_to_ascii(char *buf, int c, unsigned long long num);
@@ -55,27 +29,8 @@ void delay(unsigned msec); void sound(int freq);
-#ifndef max -#define max(a, b) (((a) > (b)) ? (a) : (b)) -#endif - -#ifndef min -#define min(a, b) (((a) < (b)) ? (a) : (b)) -#endif - -#define UINT64_C(val) val##ULL -
//////////////////////////////////////////////////////////////////////// /////////////// // -// Screen Output Functions -// -/////////////////////////////////////////////////////////////////////// //////////////// -void print(char *str); -int printf(const char *fmt, ...); -int sprintf(char *buffer, const char *format, ...); - -/////////////////////////////////////////////////////////////////////// //////////////// -// // List Functions //
//////////////////////////////////////////////////////////////////////// ///////////////