9511_project01

project 1 for algorithms & programming I (9511) prof. Cardozo
Index Commits Files Refs README
main.h (797B)
   1 #ifndef MAIN_H
   2 #define MAIN_H
   3 
   4 #include <stdio.h>
   5 #include <stdlib.h>
   6 #include <string.h>
   7 #include <time.h>
   8 #include <stdbool.h>
   9 
  10 #include "macros.h"
  11 
  12 
  13 #define COUNTRY_CODES_FILE_NAME "iso3166-1.csv"
  14 
  15 #define COUNTRIES_NUMBER    1000
  16 #define ARRAYS_LENGTH        100
  17 
  18 #define COUNTRY_PROMPT "Pais"
  19 
  20 #define SIZE_OF_BUFF1    32
  21 #define SIZE_OF_BUFF2    32    
  22 
  23 #define INITIAL_SIZE 1000
  24 #define TIME_MAX_DIGITS 16
  25 
  26 
  27 extern const char formato_de_la_fecha[];
  28 
  29 extern uint country, date, infected;
  30 
  31 extern ulong infected_monthly;
  32 
  33 extern int prev_month, prev_country;
  34 
  35 
  36 typedef enum {
  37     OK,
  38     IO_FILE_NOT_FOUND,
  39     ERROR_INVOCATING_PROGRAM,
  40     ERROR_NULL_POINTER,
  41     ERROR_LOADING_COUNTRY_CODES,
  42     ERROR_PRINTING,
  43     ERROR_READING_FILE,
  44     ERROR_ALLOCATING_TIME,
  45     ERROR_DATA_ON_FILE_MISSING,
  46     END_OF_INPUT_FILE,
  47 } status_t;
  48 
  49 #endif