You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2006/10/24 19:51:43 UTC

svn commit: r467405 - /lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/Integers.charm

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");