]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/base224.c
tableprinter: removed some obsolete FIXME, added some comments
[libucw.git] / ucw / base224.c
index 8e5cec3dd60297a4c164e73facb8d03bfda6c5f2..6af7178c3d04f597198c54fdb0fac6a79ec1b3dc 100644 (file)
 
 #undef LOCAL_DEBUG
 
 
 #undef LOCAL_DEBUG
 
-#include "ucw/lib.h"
-#include "ucw/base224.h"
+#include <ucw/lib.h>
+#include <ucw/base224.h>
 
 static void
 encode_block(byte *w, u32 hi, u32 lo)
 {
 
 static void
 encode_block(byte *w, u32 hi, u32 lo)
 {
-  uns x, y;
+  uint x, y;
 
   /*
    *   Splitting of the 39-bit block: [a-e][0-5] are the base-32 digits, *'s are used for base-7.
 
   /*
    *   Splitting of the 39-bit block: [a-e][0-5] are the base-32 digits, *'s are used for base-7.
@@ -58,11 +58,11 @@ encode_block(byte *w, u32 hi, u32 lo)
     }
 }
 
     }
 }
 
-uns
-base224_encode(byte *dest, const byte *src, uns len)
+uint
+base224_encode(byte *dest, const byte *src, uint len)
 {
   u32 lo=0, hi=0;                      /* 64-bit buffer accumulating input bits */
 {
   u32 lo=0, hi=0;                      /* 64-bit buffer accumulating input bits */
-  uns i=0;                             /* How many source bits do we have buffered */
+  uint i=0;                            /* How many source bits do we have buffered */
   u32 x;
   byte *w=dest;
 
   u32 x;
   byte *w=dest;
 
@@ -95,14 +95,14 @@ base224_encode(byte *dest, const byte *src, uns len)
   return w - dest;
 }
 
   return w - dest;
 }
 
-uns
-base224_decode(byte *dest, const byte *src, uns len)
+uint
+base224_decode(byte *dest, const byte *src, uint len)
 {
   u32 hi=0, lo=0;                      /* 64-bit buffer accumulating output bits */
 {
   u32 hi=0, lo=0;                      /* 64-bit buffer accumulating output bits */
-  uns i=0;                             /* How many bits do we have accumulated */
+  uint i=0;                            /* How many bits do we have accumulated */
   u32 h, l;                            /* Decoding of the current block */
   u32 h, l;                            /* Decoding of the current block */
-  uns x;                               /* base-7 part of the current block */
-  uns len0;
+  uint x;                              /* base-7 part of the current block */
+  uint len0;
   byte *start = dest;
 
   do
   byte *start = dest;
 
   do