lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r467405 - /lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/Integers.charm
Date Tue, 24 Oct 2006 17:51:43 GMT
Author: marvin
Date: Tue Oct 24 10:51:42 2006
New Revision: 467405

URL: http://svn.apache.org/viewvc?view=rev&rev=467405
Log:
Add short names for BIG_ENDIAN and LITTLE_ENDIAN.

Modified:
    lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/Integers.charm

Modified: lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/Integers.charm
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/Integers.charm?view=diff&rev=467405&r1=467404&r2=467405
==============================================================================
--- lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/Integers.charm (original)
+++ lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/Integers.charm Tue Oct 24 10:51:42
2006
@@ -241,6 +241,11 @@
     if (want_short_names) {
         Start_Short_Names(conf_fh);
 
+        if (machine_is_big_endian())
+            shorten_constant(conf_fh, "BIG_ENDIAN");
+        else 
+            shorten_constant(conf_fh, "LITTLE_ENDIAN");
+
         shorten_constant(conf_fh, "SIZEOF_CHAR");
         shorten_constant(conf_fh, "SIZEOF_SHORT");
         shorten_constant(conf_fh, "SIZEOF_LONG");



Mime
View raw message