9511_project01

project 1 for algorithms & programming I (9511) prof. Cardozo
Index Commits Files Refs README
commit 114532b62c051015038274f1e2fa2571391be00a
parent 8e1ba4a968b14e1c0c21a82c272fa1c38a813d6b
Author: klewer-martin <martin.cachari@gmail.com>
Date:   Thu, 11 Feb 2021 14:46:37 -0300

Last updates before the dead line;

Diffstat:
MMakefile | 18+++++++++---------
MREADME.md | 40----------------------------------------
Mperrors.h | 17+++++++++--------
3 files changed, 18 insertions(+), 57 deletions(-)
diff --git a/Makefile b/Makefile
@@ -4,7 +4,7 @@ CFLAGS = -std=c99 -Wall -pedantic
 all: main clean
 
 main: main.o arguments.o perrors.o load_country_codes.o read_file.o print_file.o
-    $(CC) $(CFLAGS) main.o arguments.o perrors.o load_country_codes.o read_file.o print_file.o -o main 
+    $(CC) $(CFLAGS) main.o arguments.o perrors.o load_country_codes.o read_file.o print_file.o -o analisis_covid 
 
 main.o: main.c main.h arguments.h macros.h
     $(CC) $(CFLAGS) -c main.c
@@ -29,25 +29,25 @@ clean:
     rm -f *.o 
 
 run: 
-    ./main -in input.csv -out output.txt
+    ./analisis_covid -in input.csv -out output.txt
 
 run2: 
-    ./main -out output.txt -in input.csv 
+    ./analisis_covid -out output.txt -in input.csv 
 
 run3: 
-    ./main -in -out
+    ./analisis_covid -in -out
 
 run4: 
-    ./main -out output.txt -in 
+    ./analisis_covid -out output.txt -in 
 
 run5: 
-    ./main -in input.csv -out
+    ./analisis_covid -in input.csv -out
 
 run6: 
-    ./main -out -in input.csv 
+    ./analisis_covid -out -in input.csv 
 
 run7: 
-    ./main -in -out output.txt
+    ./analisis_covid -in -out output.txt
 
 run8: 
-    ./main -in input.csv 
+    ./analisis_covid -in input.csv 
diff --git a/README.md b/README.md
@@ -1,42 +1,3 @@
-# PROJECT 01 - ALGORITHMS & PROGRAMMING I (95.11)
-
-This folder contains the first project of "Algoritmos y 
-Programacion I" a subject from Facultad de Ingenieria de la
-Universidad de Buenos Aires. The project is a program that 
-runs on CLI which its function is to process data entered via 
-a .csv file.
-
-What it does is receive a number for a country, date, and number of
-cases (of COVID19), and prints it on a file with a human readable
-format.
-
-Bibliography:
-
-"The C programming language" - Brian W. Kernighan & Dennis Ritchie.
-
-Installation:
-
-NOTE: You need to have installed gcc in order to compile the application.  
-Install it and make shure you have gcc added to path to execute it from
-terminal/cmd.
-
-Arch based distros:
-    
-    Install base-devel, git(not neccesary unless you want to clone the repo).
-         
-    Clone repo from terminal or download the .zip file and unzip it.
-         
-    Navigate to the folder and open a terminal there, run 'make install'.
-
-Windows installation:
-
-    Downlaod .zip file and unzip it or clone repo.
-    
-    Navigate to the downloaded folder.
-    
-    Execute 'make.bat'.
-
-    
 NAME
     analisis_covid - analyze RAW data and export it with a human 
     readable format.
@@ -55,7 +16,6 @@ DESCRIPTION
     it's considered corrupt.
 
 
-
 AUTHOR
     Written by Martin J. Klöckner - Argentina - December 2020.
 
diff --git a/perrors.h b/perrors.h
@@ -4,13 +4,13 @@
 #include "main.h"
 
 #define MSG_ERROR_NULL_POINTER    "ERROR_NULL_POINTER (3)\n"\
-                                "An unexpected error has occured during the execution\n"\
-                                "of the program"
+                                "Un error inesperado ha ocurrido durante la ejecucion de\n"\
+                                "el programa"
 
 #define MSG_ERROR_INVOCATING_PROGRAM    "\nERROR_INVOCATING_PROGRAM (2)\n"\
-                                        "Usage:\t$ ./main -in <input file> -out <outputfile>\n"\
-                                        "\t$ ./main -out <output file -in <input file>\n"\
-                                        "Read README.md to know more"
+                                        "Uso:\t$ ./main -in <input file> -out <outputfile>\n"\
+                                        "\t$     ./main -out <output file -in <input file>\n"\
+                                        "Lee el archivo README.md para saber mas"
 
 #define MSG_IO_FILE_NOT_FOUND     "\nIO_FILE_NOT_FOUND (1)\n"\
                                 "Un de los archivos de entrada o salida no se ha especificado"\
@@ -20,7 +20,7 @@
                                         "compruebe que el archivo \""COUNTRY_CODES_FILE_NAME"\" se encuentre\n"\
                                         "disponible en el directorio de el programa ejecutado y que\n"\
                                         "el nombre coincida con el de \"COUNTRY_CODES_FILE_NAME\" dentro\n"\
-                                        "de el archivo main.h\n"
+                                        "de el archivo main.h"
 
 #define MSG_ERROR_PRINTING
 
@@ -29,14 +29,15 @@
                                         "escrito correctamente y la existencia de el mismo"
 
 #define MSG_ERROR_ALLOCATING_TIME        "\nERROR_ALOCATING_TIME (7)\n"\
-                                        "strftime(3): el formato especificado\n"
+                                        "Hubo un problema inesperado durante la traduccion de la fecha al formato\n"\
+                                        "especificado."
 
 #define MSG_ERROR_DATA_ON_FILE_MISSING    "\nERROR_DATA_ON_FILE_MISSING (8)\n"\
                                         "En alguna linea de el archivo de entrada falta un dato,\n"\
                                         "compruebe que dicho archivo no esta corrupto y ejecute\n"\
                                         "el programa nuevamente"
 
-#define MSG_OK "\nEverything executed correctly.\n"
+#define MSG_OK "\nOperacion realizada exitosamente!\n"
 
 
 void print_error(status_t error);