Comentarizacion y limpieza

This commit is contained in:
Víctor Román Archidona 2002-10-09 06:02:31 +00:00
parent b223b47020
commit e79d5fa4dc
2 changed files with 189 additions and 252 deletions

View file

@ -1,7 +1,7 @@
/* /*
* eDiv Compiler * eDiv Compiler
* Copyleft (C) 2000-2002 Sion Entertainment * Copyright (C) 2000-2002 Sion Entertainment
* http://www.sion-e.com * http://www.sionhq.com
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -29,12 +29,12 @@
#include <zlib.h> #include <zlib.h>
#include "encrypt.h" #include "encrypt.h"
#include "shared.h" // Contiene la clave de cifrado #include "shared.h" /* Contiene la clave de cifrado */
union { union {
byte b[128]; byte b[128];
int d[32]; int d[32];
} seed_coder; // Seed aleatorio (127 bytes + PTR) } seed_coder; /* Seed aleatorio (127 bytes + PTR) */
byte rndb(void) byte rndb(void)
{ {
@ -84,9 +84,9 @@ void init_rnd_coder(int n, char * clave)
rndb(); rndb();
} }
//ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ /*
// Funci¢n de encriptaci¢n/desencriptaci¢n * Funci¢n de encriptaci¢n/desencriptaci¢n
//ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
void coder(byte * ptr, int len, char * clave) void coder(byte * ptr, int len, char * clave)
{ {
@ -164,8 +164,7 @@ void _encriptar(int encode, char * fichero, char * clave)
free(ptr); return; free(ptr); return;
} }
// Si todo ha ido bien ... /* Si todo ha ido bien ... */
fclose(f); fclose(f);
free(ptr); free(ptr);
@ -214,8 +213,7 @@ void _comprimir(int encode, char *fichero) {
return; return;
} }
// Si no se gana espacio, se deja el fichero sin comprimir /* Si no se gana espacio, se deja el fichero sin comprimir */
if (size2>=size-12) { if (size2>=size-12) {
free(ptr_dest); free(ptr_dest);
free(ptr); free(ptr);
@ -281,8 +279,7 @@ void _comprimir(int encode, char *fichero) {
return; return;
} }
// Si todo ha ido bien ... /* Si todo ha ido bien ... */
fclose(f); fclose(f);
free(ptr_dest); free(ptr_dest);
remove("temp.ZX!"); remove("temp.ZX!");

File diff suppressed because it is too large Load diff