List:Commits« Previous MessageNext Message »
From:Stewart Smith Date:November 29 2007 12:20am
Subject:bk commit into 5.1 tree (stewart:1.2740)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of stewart. When stewart does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-11-29 09:20:47+10:00, stewart@willster.(none) +1 -0
  Solaris cc doesn't like puppies (err... C++ style comments)

  storage/ndb/src/common/util/azio.c@stripped, 2007-11-29 09:20:41+10:00,
stewart@willster.(none) +11 -10
    Solaris cc doesn't like puppies (err... C++ style comments)

diff -Nrup a/storage/ndb/src/common/util/azio.c b/storage/ndb/src/common/util/azio.c
--- a/storage/ndb/src/common/util/azio.c	2007-11-14 14:13:35 +10:00
+++ b/storage/ndb/src/common/util/azio.c	2007-11-29 09:20:41 +10:00
@@ -65,17 +65,18 @@ void read_header(azio_stream *s, unsigne
 
 size_t az_inflate_mem_size()
 {
-  return sizeof(struct inflate_state)            // state
-    + ((1U << MAX_WBITS)*sizeof(unsigned char)); // window
+  return sizeof(struct inflate_state)            /* state */
+    + ((1U << MAX_WBITS)*sizeof(unsigned char)); /* window */
 }
 
 size_t az_deflate_mem_size()
 {
   return sizeof(deflate_state)
-    + ((1U << MAX_WBITS)*(2*sizeof(Byte)))       // window = wsize,2*|Byte|
-    + ((1U << MAX_WBITS)*sizeof(Pos))            // prev   = wsize,|Pos|
-    + ((1U << (AZ_MEMLEVEL+7))*sizeof(Pos))      // head   = hashsize,|Pos|
-    + ((1U << (AZ_MEMLEVEL+6))*(sizeof(ush)+2)); // overlay= lit_bufsize,|ush|+2
+    + ((1U << MAX_WBITS)*(2*sizeof(Byte)))      /* window = wsize,2*|Byte| */
+    + ((1U << MAX_WBITS)*sizeof(Pos))           /* prev   = wsize,|Pos| */
+    + ((1U << (AZ_MEMLEVEL+7))*sizeof(Pos))     /* head   = hashsize,|Pos| */
+    + ((1U << (AZ_MEMLEVEL+6))*(sizeof(ush)+2));/* overlay= lit_bufsize,|ush|+2
+						*/
 }
 
 voidpf az_alloc(voidpf opaque, uInt items, uInt size)
@@ -96,7 +97,7 @@ voidpf az_alloc(voidpf opaque, uInt item
 }
 void az_free(voidpf opaque, voidpf address)
 {
-  // Oh how we hack.
+  /* Oh how we hack. */
   struct az_alloc_rec *r = (struct az_alloc_rec*)opaque;
   r->mfree= r->size;
   if(r->mfree==r->size)
@@ -128,7 +129,7 @@ int az_open (azio_stream *s, const char 
     s->stream.zalloc = (alloc_func)az_alloc;
     s->stream.zfree = (free_func)az_free;
   }
-//  s->stream.opaque = (voidpf)r;
+/*  s->stream.opaque = (voidpf)r; */
   s->bufalloced = 0;
   if(!s->inbuf)
   {
@@ -386,7 +387,7 @@ int check_header(azio_stream *s)
   /* Peek ahead to check the gzip magic header */
   if ( s->stream.next_in[0] == gz_magic[0]  && s->stream.next_in[1] ==
gz_magic[1])
   {
-    abort(); // FIXME: stewart broke it, massively
+    abort(); /* FIXME: stewart broke it, massively */
     s->stream.avail_in -= 2;
     s->stream.next_in += 2;
     s->version= (unsigned char)2;
@@ -954,7 +955,7 @@ int azclose (azio_stream *s)
 
     flush_write_buffer(s);
 
-//    write_header(s);
+/*    write_header(s); */
   }
 
   return destroy(s);
Thread
bk commit into 5.1 tree (stewart:1.2740)Stewart Smith29 Nov