From: Ricardo Markiewicz Date: Fri, 25 Jun 2004 04:19:18 +0000 (+0000) Subject: Limpio de basura todo el codigo X-Git-Tag: svn_import~62 X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/commitdiff_plain/a293398508dd82716cabed67614d1692fe689457 Limpio de basura todo el codigo --- diff --git a/src/blocksorting/bs.c b/src/blocksorting/bs.c index ddd6aef..fa14152 100644 --- a/src/blocksorting/bs.c +++ b/src/blocksorting/bs.c @@ -27,18 +27,11 @@ int _compare(const void *d1, const void *d2) { int __compare(const void *d1, const void *d2) { t_BlockSortData *s1, *s2; - char i; s1 = (t_BlockSortData *)d1; s2 = (t_BlockSortData *)d2; - i = es_menor(s1->bs->data, s1->bs, s1->pos_inicial, s2->pos_inicial); - -/* if (i == 0) {*/ - /* si ambos strings son iguales, fuerzo a que d1 quede primero */ - /*return -1; - }*/ - return i; + return es_menor(s1->bs->data, s1->bs, s1->pos_inicial, s2->pos_inicial); } char es_menor(char *data, t_BlockSort *bs, int i, int j) @@ -73,15 +66,6 @@ void ordenar_array(char *data, t_BlockSort *bs) qsort(bs->array, bs->len, sizeof(t_BlockSortData), __compare); } -void print_(char *data, Uint32 pos, Uint32 len) -{ - Uint32 i; - - for(i=0; ilen; i++) { - /* print_(data, bs->array[i].pos_inicial, bs->len); */ out[i] = data[bs->array[i].pos_final]; if (bs->array[i].ord == 1) k = i; } @@ -117,18 +100,6 @@ void bs_solve(char *in, char *out, t_BlockSort *bs, Uint32 *k, Uint32 leido) bs->len = l; } -void print_v(t_BlockSortDecode *d, size_t len) -{ - size_t i; - - for(i=0; i