Skip to content

Commit

Permalink
Latino 1.2.9 | Se a renombrado el comando "archivo.copiar()" por "arc…
Browse files Browse the repository at this point in the history
…hivo.duplicar()" y se a mejorado la funcion
  • Loading branch information
MelvinG24 committed Oct 2, 2020
1 parent 26c8725 commit 20044a2
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 17 deletions.
4 changes: 2 additions & 2 deletions include/latino.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ THE SOFTWARE.
/** Version menor de Latino */
#define LAT_VERSION_MENOR "2"
/** Version de correcion de errores */
#define LAT_VERSION_PARCHE "7a"
#define LAT_VERSION_PARCHE "9"
/** Version de Latino */
#define LAT_VERSION \
"Latino " LAT_VERSION_MAYOR "." LAT_VERSION_MENOR "." LAT_VERSION_PARCHE
Expand Down Expand Up @@ -125,7 +125,7 @@ extern int parse_silent;
#define MAX_STR_LENGTH (1024 * 1024)
/** Tamanio maximo de la pila de la maquina virtual */
//#define MAX_STACK_SIZE (1024 * 8)
#define MAX_STACK_SIZE (1024 * 16)
#define MAX_STACK_SIZE (1024 * 8)
/** Tamanio maximo de una ruta de derectorio */
#define MAX_PATH_LENGTH 1024
/** Tamanio maximo de la entrada por teclado */
Expand Down
6 changes: 3 additions & 3 deletions instaladores/Win32/LatinoInnoSetup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Latino"
#define MyAppVersion "1.2.7"
#define MyAppVersion "1.2.9"
;#define MyAppVersion GetFileVersion ("..\..\build\src\Release\latino.exe")
#define MyAppPublisher "Lenguaje-Latino.org"
#define MyAppURL "http://lenguaje-latino.org/"
#define MyAppPublisher "LenguajeLatino.org"
#define MyAppURL "http://lenguajelatino.org/"
#define MyAppSupURL "https://manual-latino.readthedocs.io/es/latest/"
#define MyAppUpURL "https://github.com/lenguaje-latino/latino"
#define MyAppExeName "latino.exe"
Expand Down
30 changes: 29 additions & 1 deletion logo/Latino-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed logo/latino_old.ico
Binary file not shown.
19 changes: 8 additions & 11 deletions src/latfilelib.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static void file_ejecutar(lat_mv *mv) {
}
}

static void file_copiar(lat_mv *mv) {
static void file_duplicar(lat_mv *mv) {
lat_objeto *b = latC_desapilar(mv);
lat_objeto *a = latC_desapilar(mv);
char *aa = latC_checar_cadena(mv, a);
Expand All @@ -157,15 +157,12 @@ static void file_copiar(lat_mv *mv) {
} else {
FILE *archivo, *copiar;
archivo = fopen(latC_checar_cadena(mv, a), "r");
copiar = fopen(latC_checar_cadena(mv, b), "w");
fprintf(copiar, "%s", archivo);
const char *txt = archivo;
fclose(archivo);
copiar = fopen(latC_checar_cadena(mv, b), "wb");
fprintf(copiar, "%s", txt);
fclose(copiar);
}
// FILE *archivo = fopen(latC_checar_cadena(mv, a), "a");
// // fprintf(archivo, "%s", latC_checar_cadena(mv, b));
// fprintf(latC_checar_cadena(mv, b), "%s", archivo);
// fclose(archivo);
}

static void file_eliminar(lat_mv *mv) {
Expand Down Expand Up @@ -194,7 +191,7 @@ static void file_crear(lat_mv *mv) {
static void file_renombrar(lat_mv *mv) {
lat_objeto *b = latC_desapilar(mv);
lat_objeto *a = latC_desapilar(mv);
char *nuevo = (char*)malloc(64);
char *nuevo = (char*)malloc(MAX_ID_LENGTH);
strcpy(nuevo, latC_checar_cadena(mv, b));
bool ret = rename(latC_checar_cadena(mv, a), nuevo);
if (!ret) {
Expand All @@ -217,9 +214,9 @@ static const lat_CReg libfile[] = {{"leer", file_leer, 1},
{"lineas", file_lineas, 1},
{"ejecutar", file_ejecutar, 1},
{"escribir", file_escribir, 2},
//{"agregar", file_agregar,3},
{"copiar", file_copiar, 2},
{"duplicar", file_copiar, 2},
// {"agregar", file_agregar,3},
// {"copiar", file_duplicar, 2},
{"duplicar", file_duplicar, 2},
{"anexar", file_anexar, 2},
{"eliminar", file_eliminar, 1},
{"borrar", file_eliminar, 1},
Expand Down

0 comments on commit 20044a2

Please sign in to comment.