]> git.llucax.com Git - z.facultad/75.06/jacu.git/commitdiff
Fixed
authorRicardo Markiewicz <gazer.arg@gmail.com>
Mon, 28 Jun 2004 03:24:31 +0000 (03:24 +0000)
committerRicardo Markiewicz <gazer.arg@gmail.com>
Mon, 28 Jun 2004 03:24:31 +0000 (03:24 +0000)
src/blocksorting/bs.c

index b0010c1534e3a7d39291e4b87bb69e29caa11fd2..1988f49e450430e9078d10b8ec27208b018e4ff3 100644 (file)
@@ -312,6 +312,14 @@ int bs_readblock(FILE *fp, char *data, Uint32 pagesize, int usar_dic)
 
        while ((!feof(fp)) && ((i+buffer_pos) < pagesize)) {
                c = fgetc(fp);
+               
+               if (c == ESCAPE_CHARACTER) {
+                       data[i++] = c;
+                       data[i++] = 0xF;
+                       bs_clean_dic();
+                       continue;
+               }
+
                hint = check_hint(c);
 
                if (usar_dic != 1) {
@@ -343,13 +351,6 @@ int bs_readblock(FILE *fp, char *data, Uint32 pagesize, int usar_dic)
                                 */
                                data[i++] = hint+32;
                                bs_clean_dic();
-                               /* Imprimo el buffer que deberia ser la palabra que reemplazo */
-/*                             {
-                                       int iii;
-                                       for(iii=0; iii<buffer_pos; iii++)
-                                               printf("%c", buffer[iii]);
-                                       printf("%c\n", c);
-                               }                                       */
                                /* El buffer no lo necesito mas */
                                buffer_pos = 0;
                }