From a47dc64718336f6160f7aad645b57e29df05deca19a712b467291a3d4ca155bb Mon Sep 17 00:00:00 2001 From: Victor Roman Archidona Date: Mon, 7 Oct 2002 14:51:57 +0000 Subject: [PATCH] Mas limpieza de codigo y comentarizacion :) --- ediv/src/ediv/config.c | 34 ++++++------ ediv/src/ediv/dll_load.c | 32 +++++------ ediv/src/ediv/ediv.c | 106 ++++++++++++++++-------------------- ediv/src/ediv/ediv_export.c | 48 +++++----------- 4 files changed, 96 insertions(+), 124 deletions(-) diff --git a/ediv/src/ediv/config.c b/ediv/src/ediv/config.c index 4bae404..a793e31 100644 --- a/ediv/src/ediv/config.c +++ b/ediv/src/ediv/config.c @@ -1,7 +1,7 @@ /* * eDiv Compiler - * Copyleft (C) 2000-2002 Sion Entertainment - * http://www.sion-e.com + * Copyright (C) 2000-2002 Sion Entertainment + * http://www.sionhq.com * * 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 @@ -23,7 +23,6 @@ #include #include "main.h" -//#include "config.h" #include "compiler.h" #include "lower.h" #include "language.h" @@ -59,7 +58,8 @@ void lee_ediv_cfg(char* ediv_cfg) strcpy(cfg,ediv_cfg); - max_process=0; // Valores de las opciones por defecto + /* Valores de las opciones por defecto */ + max_process=0; ignore_errors=0; free_sintax=0; extended_conditions=0; @@ -91,9 +91,9 @@ void lee_ediv_cfg(char* ediv_cfg) if(!strcmp(tag,"max_process")) { salta_spc(); - if(buffer[i]!='=') cfg_error(1); // se esperaba '=' + if(buffer[i]!='=') cfg_error(1); /* se esperaba '=' */ salta_spc(); - if(buffer[i]<'0' || buffer[i]>'9') cfg_error(2); // se esperaba un dato numerico + if(buffer[i]<'0' || buffer[i]>'9') cfg_error(2); /* se esperaba un dato numerico */ c=0; while(buffer[i]>='0' && buffer[i]<='9' && i # include "dll_load.h" - struct in_addr iahost; -//struct sockaddr_in sin; struct hostent *htent; struct servent *svent; int status; @@ -36,9 +34,8 @@ void muestra_motd(); void conecta(char *servidor, char *archivo); #else -# include // ¿será igual en BeOS? +# include /* ¿será igual en BeOS? */ # include -//# include #endif #include @@ -58,9 +55,9 @@ void conecta(char *servidor, char *archivo); int main(int argc, char *argv[]) { - FILE *fp; // stream del PRG + FILE *fp; /* stream del PRG /* char *p; - char libmagic[14]; // cabecera "magic" de EDIVRUN.LIB + char libmagic[14]; /* cabecera "magic" de EDIVRUN.LIB */ int i,j; byte hayprog=0; @@ -73,8 +70,7 @@ int main(int argc, char *argv[]) listados=0; noexe=0; - // Sistemas - + /* Sistemas */ #ifdef _WIN32 strcpy(sistema,"win32"); #endif @@ -87,7 +83,7 @@ int main(int argc, char *argv[]) idioma=detecta_idioma(); - // mensaje de cabecera + /* mensaje de cabecera */ printf(translate(0)); printf(translate(1)); printf("\n"); @@ -99,7 +95,7 @@ int main(int argc, char *argv[]) if(strcmp(argv[1],"--help")==0 || strcmp(argv[1],"-h")==0) { ayuda: - // pantalla de ayuda + /* pantalla de ayuda */ printf(translate(2)); printf(translate(3),argv[0]); printf(translate(4)); @@ -129,7 +125,7 @@ int main(int argc, char *argv[]) if(++i