From 4078826dfd25aef9a8fc0f9fe3a7ca6a94ed4580 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Fri, 10 Dec 2004 00:27:36 +0000 Subject: [PATCH] move FLOPPY_SECTOR_SIZE, FIRST_LEVEL_SIZE and get_size() to libemile.h --- libemile/bootblock.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libemile/bootblock.h b/libemile/bootblock.h index cdf2368..5b1f90b 100644 --- a/libemile/bootblock.h +++ b/libemile/bootblock.h @@ -54,16 +54,4 @@ struct eBootBlock { #define ASSERT_BB(a) if ( sizeof(eBootBlock_t) != 1024 ) { a } -#define FLOPPY_SECTOR_SIZE 512 -#define FIRST_LEVEL_SIZE (FLOPPY_SECTOR_SIZE * 2) - -static inline unsigned long get_size(char* file) -{ - struct stat result; - - stat(file, &result); - - return (result.st_size + FLOPPY_SECTOR_SIZE - 1) - / FLOPPY_SECTOR_SIZE * FLOPPY_SECTOR_SIZE; -} #endif