Permalink
Browse files

2006-10-12 Al Riddoch <alriddoch@zepler.org>

	* libmd3/endian.c: Make a couple of byte swap functions, as their
	  names are too generic to be exported.
  • Loading branch information...
1 parent aa4c9dc commit 6c1187ebaec8d3934f69554ba1c175f00c0e307b @alriddoch committed Oct 12, 2006
Showing with 8 additions and 3 deletions.
  1. +5 −0 ChangeLog
  2. +3 −3 libmd3/endian.c
View
@@ -1,3 +1,8 @@
+2006-10-12 Al Riddoch <alriddoch@zepler.org>
+
+ * libmd3/endian.c: Make a couple of byte swap functions, as their
+ names are too generic to be exported.
+
2006-08-24 Al Riddoch <alriddoch@zepler.org>
* configure.ac: Increment version to 0.1.94 for release.
View
@@ -18,7 +18,8 @@
#include <libmd3/endian.h>
#include <libmd3/structure.h>
-void swap_32(uint8_t * ptr)
+#if (LIBMD3_BYTE_ORDER != LIBMD3_LITTLE_ENDIAN)
+static void swap_32(uint8_t * ptr)
{
uint8_t tmp = ptr[0];
ptr[0] = ptr[3];
@@ -28,14 +29,13 @@ void swap_32(uint8_t * ptr)
ptr[2] = tmp;
}
-void swap_16(uint8_t * ptr)
+static void swap_16(uint8_t * ptr)
{
uint8_t tmp = ptr[0];
ptr[0] = ptr[1];
ptr[1] = tmp;
}
-#if (LIBMD3_BYTE_ORDER != LIBMD3_LITTLE_ENDIAN)
static void swap_int32(int32_t * num)
{
swap_32((uint8_t*)num);

0 comments on commit 6c1187e

Please sign in to comment.