From: asterix Date: Mon, 26 May 2008 09:19:41 +0000 (+0000) Subject: Define a kfile_size type, and use it. X-Git-Tag: 2.0.0~578 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=3f32a55a47be10c12c127ab5c46ff483ba2e371e;p=bertos.git Define a kfile_size type, and use it. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1356 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/kern/kfile.h b/bertos/kern/kfile.h index 4bb7a238..52f7991c 100644 --- a/bertos/kern/kfile.h +++ b/bertos/kern/kfile.h @@ -95,7 +95,8 @@ /* fwd decl */ struct KFile; -typedef int32_t kfile_off_t; ///< KFile offset type, used by kfile_seek function. +typedef int32_t kfile_off_t; ///< KFile offset type, used by kfile_seek function. +typedef int32_t kfile_size_t; ///< KFile size type, used in kfile struct. /** * Costants for repositioning read/write file offset. @@ -183,8 +184,8 @@ typedef struct KFile DB(id_t _type); ///< Used to keep trace, at runtime, of obj type. /* NOTE: these must _NOT_ be size_t on 16bit CPUs! */ - uint32_t seek_pos; - uint32_t size; + kfile_off_t seek_pos; + kfile_size_t size; } KFile; /**