diff options
author | (no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-06 16:41:57 +0000 |
---|---|---|
committer | (no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-06 16:41:57 +0000 |
commit | b5e60b9d709ada7b94cfb8196df9f9c2e1881a01 (patch) | |
tree | fa4ce91e27dd6f97abbbcca704adc2d8802d2cf7 /src/common | |
parent | 37054522efee220a79e72bb36a9c8e4309286348 (diff) | |
download | hercules-b5e60b9d709ada7b94cfb8196df9f9c2e1881a01.tar.gz hercules-b5e60b9d709ada7b94cfb8196df9f9c2e1881a01.tar.bz2 hercules-b5e60b9d709ada7b94cfb8196df9f9c2e1881a01.tar.xz hercules-b5e60b9d709ada7b94cfb8196df9f9c2e1881a01.zip |
Fixed some EOL issues
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1056 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/buffer.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/common/buffer.h b/src/common/buffer.h index 4d7f46d38..ea94380ce 100644 --- a/src/common/buffer.h +++ b/src/common/buffer.h @@ -1,18 +1,18 @@ -#ifndef _BUFFER_H_
-#define _BUFFER_H_
-
-// Full credit for this goes to Shinomori [Ajarn]
-
-#ifdef __GNUC__ // GCC has variable length arrays
-
-#define CREATE_BUFFER(name, type, size) type name[size]
-#define DELETE_BUFFER(name)
-
-#else // others don't, so we emulate them
-
-#define CREATE_BUFFER(name, type, size) type *name=(type*)aCalloc(size,sizeof(type))
-#define DELETE_BUFFER(name) aFree(name);name=NULL
-
-#endif
-
-#endif
+#ifndef _BUFFER_H_ +#define _BUFFER_H_ + +// Full credit for this goes to Shinomori [Ajarn] + +#ifdef __GNUC__ // GCC has variable length arrays + +#define CREATE_BUFFER(name, type, size) type name[size] +#define DELETE_BUFFER(name) + +#else // others don't, so we emulate them + +#define CREATE_BUFFER(name, type, size) type *name=(type*)aCalloc(size,sizeof(type)) +#define DELETE_BUFFER(name) aFree(name);name=NULL + +#endif + +#endif |