]> mj.ucw.cz Git - libucw.git/blobdiff - charset/charconv-gen.h
Opt: Constify
[libucw.git] / charset / charconv-gen.h
index 1c76b12a2d4e5328397491cc4c80ea0fab66e844..f4988548aedc3c19d3039f3343fb776e05ec96bf 100644 (file)
@@ -16,7 +16,7 @@ do {
 
   const byte *s, *se;
   byte *d, *de;
 
   const byte *s, *se;
   byte *d, *de;
-  uns code;
+  uint code;
   int e;
 
 #ifdef CONV_READ_STD
   int e;
 
 #ifdef CONV_READ_STD
@@ -28,7 +28,7 @@ do {
 #endif
 
 #ifdef CONV_READ_UTF8
 #endif
 
 #ifdef CONV_READ_UTF8
-  uns cc;
+  uint cc;
 #endif
 
   if (unlikely(c->state))
 #endif
 
   if (unlikely(c->state))
@@ -138,8 +138,8 @@ got_code:
       else
         {
          byte *k = string_table + code - 0x100;
       else
         {
          byte *k = string_table + code - 0x100;
-         uns len = *k++;
-         if (unlikely((uns)(de - d) < len))
+         uint len = *k++;
+         if (unlikely((uint)(de - d) < len))
            {
              c->state = SEQ_WRITE;
              c->string_at = k;
            {
              c->state = SEQ_WRITE;
              c->string_at = k;