[Scummvm-cvs-logs] SF.net SVN: scummvm: [30598] scummvm/trunk
sev at users.sourceforge.net
sev at users.sourceforge.net
Mon Jan 21 13:44:39 CET 2008
Revision: 30598
http://scummvm.svn.sourceforge.net/scummvm/?rev=30598&view=rev
Author: sev
Date: 2008-01-21 04:44:39 -0800 (Mon, 21 Jan 2008)
Log Message:
-----------
Move tag2str() to common/
Modified Paths:
--------------
scummvm/trunk/common/util.cpp
scummvm/trunk/common/util.h
scummvm/trunk/engines/scumm/util.cpp
scummvm/trunk/engines/scumm/util.h
Modified: scummvm/trunk/common/util.cpp
===================================================================
--- scummvm/trunk/common/util.cpp 2008-01-21 08:14:24 UTC (rev 30597)
+++ scummvm/trunk/common/util.cpp 2008-01-21 12:44:39 UTC (rev 30598)
@@ -639,3 +639,13 @@
}
return str;
}
+
+const char *tag2str(uint32 tag) {
+ static char str[5];
+ str[0] = (char)(tag >> 24);
+ str[1] = (char)(tag >> 16);
+ str[2] = (char)(tag >> 8);
+ str[3] = (char)tag;
+ str[4] = '\0';
+ return str;
+}
Modified: scummvm/trunk/common/util.h
===================================================================
--- scummvm/trunk/common/util.h 2008-01-21 08:14:24 UTC (rev 30597)
+++ scummvm/trunk/common/util.h 2008-01-21 12:44:39 UTC (rev 30598)
@@ -319,4 +319,7 @@
char *scumm_strrev(char *str);
+const char *tag2str(uint32 tag);
+
+
#endif
Modified: scummvm/trunk/engines/scumm/util.cpp
===================================================================
--- scummvm/trunk/engines/scumm/util.cpp 2008-01-21 08:14:24 UTC (rev 30597)
+++ scummvm/trunk/engines/scumm/util.cpp 2008-01-21 12:44:39 UTC (rev 30598)
@@ -101,14 +101,4 @@
return toSimpleDir(1, temp) * 45;
}
-const char *tag2str(uint32 tag) {
- static char str[5];
- str[0] = (char)(tag >> 24);
- str[1] = (char)(tag >> 16);
- str[2] = (char)(tag >> 8);
- str[3] = (char)tag;
- str[4] = '\0';
- return str;
-}
-
} // End of namespace Scumm
Modified: scummvm/trunk/engines/scumm/util.h
===================================================================
--- scummvm/trunk/engines/scumm/util.h 2008-01-21 08:14:24 UTC (rev 30597)
+++ scummvm/trunk/engines/scumm/util.h 2008-01-21 12:44:39 UTC (rev 30598)
@@ -43,8 +43,6 @@
void assertRange(int min, int value, int max, const char *desc);
-const char *tag2str(uint32 tag);
-
} // End of namespace Scumm
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list