Work around RDoc limitations.
[ruby-eet.git] / ext / ext.c
index 02ddba9454dd2789c3e08b86cb7bd9f5747a492a..94b21bf4a226af15e522640821bfa8035ab96792 100644 (file)
--- a/ext/ext.c
+++ b/ext/ext.c
@@ -1,5 +1,5 @@
 /*
- * $Id: ext.c 35 2005-05-10 18:58:49Z tilman $
+ * $Id: ext.c 38 2005-05-13 18:30:15Z tilman $
  *
  * Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -39,7 +39,6 @@
        ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \
        (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24))
 #else /* !WORDS_BIGENDIAN */
-# define BSWAP16(x) (x)
 # define BSWAP32(x) (x)
 #endif /* WORDS_BIGENDIAN */
 
@@ -505,7 +504,7 @@ chunk_serialize (VALUE self)
 void
 Init_eet_ext ()
 {
-       VALUE m, c;
+       VALUE m, c, cs, cc;
 
        m = rb_define_module ("Eet");
 
@@ -521,11 +520,11 @@ Init_eet_ext ()
        rb_define_method (c, "read_image", c_read_image, 1);
        rb_define_method (c, "write_image", c_write_image, -1);
 
-       c = rb_define_class_under (m, "Stream", rb_cArray);
-       rb_define_method (c, "serialize", stream_serialize, 0);
+       cs = rb_define_class_under (m, "Stream", rb_cArray);
+       rb_define_method (cs, "serialize", stream_serialize, 0);
 
-       c = rb_define_class_under (m, "Chunk", rb_cObject);
-       rb_define_method (c, "serialize", chunk_serialize, 0);
+       cc = rb_define_class_under (m, "Chunk", rb_cObject);
+       rb_define_method (cc, "serialize", chunk_serialize, 0);
 
        id_include = rb_intern ("include?");
 }