X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/502cd41cf62007430ce887023d9e99584da7a3f4..d72d964935fcfb67aa0be2b123ed60ef03a0d1db:/emufs_gui/gui.c diff --git a/emufs_gui/gui.c b/emufs_gui/gui.c index 3d5d820..a25ec54 100644 --- a/emufs_gui/gui.c +++ b/emufs_gui/gui.c @@ -8,6 +8,7 @@ #include "form.h" #include "articulos.h" +#include "facturas.h" #include "emufs.h" #define CTRLD 4 @@ -21,13 +22,11 @@ int main(int argc, char *argv[]) { int c, fin=0; - art_cargar(argv[1]); - - art_obtener(NULL, "438"); +/* art_cargar(argv[1]); art_liberar(NULL); return 1; - +*/ /* Inicio Curses */ signal(SIGINT, finish); initscr(); @@ -56,9 +55,10 @@ int main(int argc, char *argv[]) return 1; } - if (argc == 2) + if (argc == 2) { art_cargar(argv[1]); - else + fact_cargar(argv[1]); + } else art_cargar(NULL); /* Ventana, caracter para linea vertical, caracter para linea horizontal*/ @@ -89,6 +89,7 @@ int main(int argc, char *argv[]) endwin(); art_liberar(NULL); + fact_liberar(NULL); return 0; }