From 237170ebcbd54669e9a303bd6d269345bee401c0 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 16 Mar 2007 22:06:04 +0000 Subject: [PATCH] Changed PHYSFS_file from a typedef to a #define for legacy code. --- CHANGELOG.txt | 3 +++ physfs.h | 14 +++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 0b515008..25cfb6ee 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -2,6 +2,9 @@ * CHANGELOG. */ +03162007 - Changed PHYSFS_file from a typedef to a #define (in case it would + cause an aggressive compiler to think you're passing the wrong type + to a function) and added Doxygen comments to explain it. 03152007 - Bunch of work on Unicode...added case-folding stricmp, removed platform-specific stricmp implementations, changed appropriate calls to an ASCII-only stricmp that ignores locale. Fixed case on diff --git a/physfs.h b/physfs.h index a27ba90a..0bcc7bd9 100644 --- a/physfs.h +++ b/physfs.h @@ -339,7 +339,19 @@ typedef struct void *opaque; /**< That's all you get. Don't touch. */ } PHYSFS_File; -typedef PHYSFS_File PHYSFS_file; /* for backwards compatibility with 1.0 */ + +/** + * \def PHYSFS_file + * \brief 1.0 API compatibility define. + * + * PHYSFS_file is identical to PHYSFS_File. This #define is here for backwards + * compatibility with the 1.0 API, which had an inconsistent capitalization + * convention in this case. New code should use PHYSFS_File, as this #define + * may go away someday. + * + * \sa PHYSFS_File + */ +#define PHYSFS_file PHYSFS_File /**