diff --git a/ediv/authors.txt b/ediv/authors.txt index 96d1fcc..52c379e 100644 --- a/ediv/authors.txt +++ b/ediv/authors.txt @@ -50,7 +50,6 @@ Webmaster Agradecimientos --------------- -- Daijo - Daniel Navarro - José Luis Cebrián - Beorn diff --git a/ediv/doc/doku.c b/ediv/doc/doku.c deleted file mode 100644 index aa49fed..0000000 --- a/ediv/doc/doku.c +++ /dev/null @@ -1,554 +0,0 @@ -/* - * eDiv Compiler - * Copyleft (C) 2000-2002 Sion Entertainment - * http://www.sion-e.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 - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#include -#include -#include - -// esta es la tabla donde se almacenan los nombres de las directivas y los textos -// por los que deben ser sustituidas, definidos en template.txt -struct _sust { - char de[20]; - char a[1024]; -} sust[20]; - -// esta funcion recibe un nombre de fichero (actual) y, consultando el index.dok, -// devuelve el documento anterior, el siguiente y el superior. Evidentemente esto -// se usa para generar los enlaces de navegacion. -void situame(char* actual, char* ant, char* sig, char* sup); - -// esta funcion abre el fichero indicado en fixero1 y busca en el el texto -// encerrado entre las directivas <%title%> y <%/title%>, y lo devuelve en -// el puntero "titulo" -void lee_titulo(char* fixero1, char* titulo); - -// esta es llamada cuando nos encontramos con la directiva <%index%>. Parsea -// el arbolito ese con los signos '+' y genera una unordered list mu potita. -void procesa_indice(); - -// esta es llamada cuando encontramos <%subindex%>. Se le indica el fichero -// actual y busca la entrada correspondiente en el index.dok. Entonces parsea -// la porcion de arbol que engloba y genera un subíndice como los de SGML. -void procesa_subindice(char* actual); - - -FILE *f; -int i,tamano; -char* buffer; - -int main(int argc, char* argv[]) -{ - int c,num=-1,j,sw; - char nomfich[256]; - char tag[20]; - int flag=0; - - if(argc!=2) { - printf("Modo de uso: %s \n",argv[0]); - exit(1); - } - - for(i=0;i') i+=2; - c=0; - if(!strcmp(sust[num].de,"index") || !strcmp(sust[num].de,"/index") || - !strcmp(sust[num].de,"subindex")) { - printf("Error en template.txt: \"%s\" es una directiva reservada\n",sust[num].de); - exit(10); - } - } - if(buffer[i]=='"') { - i++; - while(1) { - if(buffer[i]=='"' && buffer[i-1]!='\\') break; - if(buffer[i]=='\\' && buffer[i+1]=='n') - buffer[++i]='\n'; - else if(buffer[i]=='\\' && buffer[i+1]=='"') - buffer[++i]='"'; - sust[num].a[c++]=buffer[i++]; - } - } - } - - free(buffer); - - strcpy(nomfich,argv[1]); - strcat(nomfich,".dok"); - - if((f=fopen(nomfich,"r"))==NULL) { - printf("Error abriendo fichero %s\n",nomfich); - exit(4); - } - - fseek(f,0,SEEK_END); - tamano=ftell(f); - fseek(f,0,SEEK_SET); - - if((buffer=(char*)malloc(tamano+1))==NULL) { - printf("Error: memoria insuficiente\n"); - exit(5); - } - - tamano=fread(buffer,1,tamano,f); - fclose(f); - - buffer[tamano]=0; - - strcpy(nomfich,argv[1]); - strcat(nomfich,".html"); - - if((f=fopen(nomfich,"w"))==NULL) { - printf("Error creando fichero %s\n",nomfich); - exit(7); - } - - printf("Procesando...\n"); - - fprintf(f,"\n"); - for(i=0;i') i+=2; - else { - fclose(f); - printf("Error en tag %s, byte %d\n",tag,i); - exit(8); - } - flag=i; - sw=0; - for(j=0;j<=num;j++) - if(!strcmp(sust[j].de,tag)) { - sw=1; - fwrite(sust[j].a,1,strlen(sust[j].a),f); - break; - } - if(!sw) { - if(!strcmp(tag,"index")) { - procesa_indice(); - flag=i; - } - else if(!strcmp(tag,"subindex")) { - procesa_subindice(argv[1]); - } - else { - fclose(f); - printf("Error: tag no reconocido %s en byte %d\n",tag,i); - exit(9); - } - } - if(!strcmp(tag,"/title") && strcmp(argv[1],"index")) { - char ant[256], sig[256], sup[256]; - char tant[512], tsig[512], tsup[512], tidx[512]; - situame(argv[1],ant,sig,sup); - lee_titulo(ant,tant); - lee_titulo(sig,tsig); - lee_titulo(sup,tsup); - lee_titulo("index",tidx); - fprintf(f,"\n\n\n\n\n
"); - if(*ant!=0) fprintf(f,"Anterior
%s",ant,tant); - else fprintf(f,"Anterior
 "); - fprintf(f,"
"); - if(*sup!=0) fprintf(f,"Subir
%s",sup,tsup); - else fprintf(f,"Subir
%s",tidx); - fprintf(f,"
Contenido" - "
%s
",tidx); - if(*sig!=0) fprintf(f,"Siguiente
%s",sig,tsig); - else fprintf(f,"Siguiente
 "); - fprintf(f,"

\n"); - } - } - } - - fwrite(&buffer[flag],1,strlen(&buffer[flag]),f); - - fclose(f); - - printf("Guardado %s\n",nomfich); - - return 0; -} - -void situame(char* actual, char* ant, char* sig, char* sup) -{ - FILE* fi; - char* buf,tag[20],fixero[256]; - int tam,p,c; - - int nivel=0,ni; - char anterior[256],superior[20][256]; - const char fin[]="<%/index%>"; - int j,sw=0,pillasig=0; - - *ant=0; *sig=0; *sup=0; - - if((fi=fopen("index.dok","r"))==NULL) { - printf("Error: no puedo abrir index.dok\n"); - exit(13); - } - - fseek(fi,0,SEEK_END); - tam=ftell(fi); - fseek(fi,0,SEEK_SET); - - if((buf=(char*)malloc(tam+1))==NULL) { - printf("Error: memoria insuficiente\n"); - exit(14); - } - - tam=fread(buf,1,tam,fi); - fclose(fi); - - buf[tam]=0; - - for(p=0;p') p+=2; - else { - printf("Error en fichero index.dok, tag %s, byte %d\n",tag,p); - exit(15); - } - if(!strcmp(tag,"index")) { - sw=1; - break; - } - } - } - - if(!sw) { - printf("Error: no se encuentra directiva <%index%> en index.dok\n"); - exit(16); - } - - memset(fixero,0,256); - memset(anterior,0,256); - memset(superior,0,256*20); - - for(;pnivel) { - if(ni==20) { - printf("Error: el indice no puede tener mas de 20 niveles\n"); - exit(17); - } - - if(!pillasig) { nivel=ni; strcpy(superior[nivel],fixero); } - } - if(ni31 && buf[p]!='<') - fixero[c++]=buf[p++]; - fixero[c]=0; - if(buf[p]=='<') p--; - if(pillasig) { - strcpy(ant,anterior); - strcpy(sig,fixero); - strcpy(sup,superior[nivel]); - fclose(fi); - free(buf); - return; - } - if(!strcmp(actual,fixero)) pillasig=1; - else strcpy(anterior,fixero); - } - if(pillasig) { - strcpy(ant,anterior); - strcpy(sup,superior[nivel]); - fclose(fi); - free(buf); - return; - } - printf("Error: el documento no esta listado en el indice\n"); - exit(18); -} - -void lee_titulo(char* fixero1, char* titulo) -{ - FILE* fi; - char* buf,tag[20],fixero[256]; - int tam,p,c; - - strcpy(fixero,fixero1); - strcat(fixero,".dok"); - - if((fi=fopen(fixero,"rb"))==NULL) { - sprintf(titulo,"[Error al abrir \"%s\"]",fixero); - return; - } - - fseek(fi,0,SEEK_END); - tam=ftell(fi); - fseek(fi,0,SEEK_SET); - - if((buf=(char*)malloc(tam+1))==NULL) { - printf("Error: memoria insuficiente\n"); - exit(11); - } - - tam=fread(buf,1,tam,fi); - fclose(fi); - - buf[tam]=0; - - for(p=0;p') p+=2; - else { - printf("Error en fichero %s, tag %s, byte %d\n",fixero,tag,p); - exit(13); - } - if(!strcmp(tag,"title")) { - c=0; - while(p"); - fprintf(f,"\n"); - i+=10; - return; - } - while(buffer[i]=='+') { ni++; i++; } - if(ni>nivel) { - if(ni==20) { - printf("Error: el indice no puede tener mas de 20 niveles\n"); - exit(25); - } - for(j=nivel;j"); - fprintf(f,"\n"); - nivel=ni; - } - if(ni"); - fprintf(f,"\n"); - nivel=ni; - } - c=0; - while(buffer[i]>31 && buffer[i]!='<') - fixero[c++]=buffer[i++]; - fixero[c]=0; - if(buffer[i]=='<') i--; - lee_titulo(fixero,titulo); - if(nivel==0) - fprintf(f,"

%s

\n",fixero,titulo); - else - fprintf(f,"
  • %s
  • \n",fixero,titulo); - } -} - -void procesa_subindice(char* actual) -{ - FILE* fi; - char* buf,tag[20],fixero[256],titulo[512]; - int tam,p,c; - - int nivel=0,ni,iniv; - const char fin[]="<%/index%>"; - int j,sw=0,pilla=0; - - if((fi=fopen("index.dok","r"))==NULL) { - printf("Error: no puedo abrir index.dok\n"); - exit(19); - } - - fseek(fi,0,SEEK_END); - tam=ftell(fi); - fseek(fi,0,SEEK_SET); - - if((buf=(char*)malloc(tam+1))==NULL) { - printf("Error: memoria insuficiente\n"); - exit(20); - } - - tam=fread(buf,1,tam,fi); - fclose(fi); - - buf[tam]=0; - - for(p=0;p') p+=2; - else { - printf("Error en fichero index.dok, tag %s, byte %d\n",tag,p); - exit(21); - } - if(!strcmp(tag,"index")) { - sw=1; - break; - } - } - } - - if(!sw) { - printf("Error: no se encuentra directiva <%index%> en index.dok\n"); - exit(22); - } - - for(;pnivel) { - if(ni==20) { - printf("Error: el indice no puede tener mas de 20 niveles\n"); - exit(23); - } - if(pilla && ni==iniv+1) { - //for(j=nivel;j"); - fprintf(f,"\n"); - } - nivel=ni; - } - if(ni"); - // fprintf(f,"\n"); - //} - nivel=ni; - if(pilla && nivel<=iniv) break; - } - c=0; - while(buf[p]>31 && buf[p]!='<') - fixero[c++]=buf[p++]; - fixero[c]=0; - if(buf[p]=='<') p--; - if(!strcmp(actual,fixero)) { - pilla=1; - fprintf(f,"
      "); - iniv=nivel; - } - if(pilla && nivel<=iniv+1) { - lee_titulo(fixero,titulo); - fprintf(f,"
    • %s
    • \n",fixero,titulo); - } - } - if(pilla) { - //for(j=iniv;j<=nivel;j++) - fprintf(f,"
    "); - /*if(nivel"); - fprintf(f,"\n"); - return; - } - printf("Error: el documento no esta listado en el indice\n"); - exit(24); -} \ No newline at end of file diff --git a/ediv/doc/doku.txt b/ediv/doc/doku.txt deleted file mode 100644 index 634cebe..0000000 --- a/ediv/doc/doku.txt +++ /dev/null @@ -1,71 +0,0 @@ - -Doku - -Este es el programa para hacer los documentos de eDIV. Espero que -sepais perdonar el codigo guarrindongo, desordenado y descomentarizado :P -Voy a explicar un poco como funciona: -Los documentos se crean en archivos .dok, que son basicamente archivos -HTML con ciertas directivas especiales encerradas en <% y %> (para -que el dreamweaver los muestre como directivas ASP :) ). SIEMPRE -debe haber un fichero index.dok. Básicamente su estructura es la -siguiente: - -<%title%>Titulo del indice<%/title%> -Logo, texto de presentacion, etc -<%index%> -prologo -capitulo1 -+parte1 -+parte2 -++semiacto1 -++semiacto2 -capitulo2 -+parte1 -+etc -epilogo -<%/index%> -<%end%> - -Yo creo que se entiende ¿no? :P Los signos '+' delante de los apartados -indican los niveles y subniveles. OJO, que lo que se indica en el indice -son NOMBRES DE ARCHIVO .dok sin extension, no los titulos de los apartados. -Asi, el apartado "capitulo1" se leera del fichero capitulo1.dok y generara -un fichero capitulo1.html, aunque este se pueda titular "Capítulo I: El -embargo de Largo" (el titulo se indica dentro de los .dok, entre las -directivas <%title%> y <%/title%>. -La estructura de un .dok que no sea el indice, como podeis imaginar, sera -algo tal que asi: - -<%title%>Título del documento<%/title%> -Texto html de lo que quieras explicar ;P -<%end%> - -Queda muy bonito poner una directiva <%subindex%> justo antes del <%end%> en -los documentos que tengan sub-apartados, ya que generara un sub-indice de -los mismos, como el SGML ;) -Ah, y en los documentos que no son el indice, se colocan arriba unos enlaces -muy chulos de atrás, siguiente, subir... ¡¡como el SGML!! xDD - -EXPLICACION DETALLADA DEL FURRULAMIENTO DE ESTO - -- Primero lee el template.txt, donde se definen algunas directivas. Se pueden - añadir directivas propias al gusto del consumidor ;) hasta un maximo de 20. - ¡OJO! En el template.txt hay que tener mucho cuidado de no equivocarse con - la sintaxis, ya que la rutina no advierte de los errores. Para los otros - ficheros sí se comprueban un poco más, pero no te fíes (¿qué creías? este - programa está hecho en un par de tardes) :P -- Luego se abre el .dok en cuestion y se sustituyen todas las directivas por - su texto html correspondiente, tal como lo haria un interprete de PHP o ASP, - pero mucho mas sencillo, claro. <%title%> inserta el texto que le corresponde - y luego mete los enlaces de navegacion, si no estamos en el index.dok, Otras - directivas, como <%index%> o <%subindex%> no sustituyen texto sino que llaman - a funciones especiales. -- para mas detalles, mira las descripciones de las funciones en el source :P - -para pasar todos los dok del directorio a html, hay ke usar el script makedok -(ver leeme-doc.txt). si se modifica el indice, HAY que rular el script para que -todos los enlaces de navegacion se actualicen. Trankilos, el proceso es muy -rapido ;) - -Er_Makina - diff --git a/ediv/el_stub.txt b/ediv/el_stub.txt deleted file mode 100644 index 1c5dbd6..0000000 --- a/ediv/el_stub.txt +++ /dev/null @@ -1,21 +0,0 @@ - ********************** - * EL STUB DEL eDiv * - ********************** - - -9/7/2001 ---------- - - -He empezado el STUB, ja que soy el encargado de las DLL's y queria provar las Dll's de -un modo que no fuera autoejecutables (la manera que haciamos antes , añadir al DLL_MAIN -las instrucciones) y entonces me he puesto a trabajar en el STUB, por el momento lo unico -que he hecho ha sido cojer codigo de las dll's del eDIV y adaptarlo al STUB, seguramente se -puede sacar mucho codigo, pero por si acaso lo dejo, ja que los encargados son ER_MAKINA y -RISEVEN, lo que el STUB hace ahora es busca las Dlls, las carga y bueno se pueden ejecutar -instrucciones de la DLL mediante la funcion ejecuta(void *proceso,int numero_parametros); -en el Source se detalla como se puede ejecutar una funcion. Supongo que algo de aqui sera util, -ja que se necesitaran rutinas para el uso de la DLL ;) - - |RooT| - diff --git a/ediv/src/bmp2fnt/b2f.c b/ediv/src/bmp2fnt/b2f.c deleted file mode 100644 index daecd94..0000000 --- a/ediv/src/bmp2fnt/b2f.c +++ /dev/null @@ -1,173 +0,0 @@ -/* - * eDiv Compiler - * Copyleft (C) 2000-2002 Sion Entertainment - * http://www.sion-e.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 - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - - -#include -#include -#include -#include - -#include -#include "edivfont.h" - - -int main(int argc, char* argv[]) -{ - FILE *fp ; - int im ; - FILE *img ; - FILE *out ; - char* pool; - struct _fuente_control_s fuente_control_s ; - char tras[3] ; - char none[3] ; - SDL_Surface *imagen ; - int i , x , y ; - char *px ; - fpos_t pos ; - - out = fopen("stdout.txt", "w" ) ; - -/* - fuente_control_s.rect['A'].x = 220 ; - fuente_control_s.rect['A'].y = 3 ; - fuente_control_s.rect['A'].w = 7 ; - fuente_control_s.rect['A'].h = 7 ; -*/ - - imagen = SDL_LoadBMP("fuente.bmp") ; - SDL_LockSurface( imagen ); - - // Se calculan los rects - px = imagen->pixels ; - - - // Color de borde ( El primero k se encuentra - none[0] = *(px + 0) ; - none[1] = *(px + 1) ; - none[2] = *(px + 2) ; - - // Colo trasparente ( Fila 1, Columna1, corresponde al caracter 0 ) - tras[0] = *(px + imagen->pitch + 3 + 0) ; - tras[1] = *(px + imagen->pitch + 3 + 1) ; - tras[2] = *(px + imagen->pitch + 3 + 2) ; - - - i = 1 ; - x = 3 ; - y = 0 ; - for ( x = 3 ; x < imagen->w ; x++ ) - { - for ( y = 0 ; y < imagen->h ; y++ ) - { - if (*(px + imagen->pitch*y + x*3 + 0) != none[0] || - *(px + imagen->pitch*y + x*3 + 1) != none[1] || - *(px + imagen->pitch*y + x*3 + 2) != none[2] ) - { - fuente_control_s.rect[i].x = x ; - fuente_control_s.rect[i].y = y ; - for ( ; y < imagen->h ; y++ ) - { - if (*(px + imagen->pitch*y + x*3 + 0) == none[0] && - *(px + imagen->pitch*y + x*3 + 1) == none[1] && - *(px + imagen->pitch*y + x*3 + 2) == none[2] ) - break ; - } - y--; - fuente_control_s.rect[i].h = y - fuente_control_s.rect[i].y + 1; - - for ( ; x < imagen->w ; x++ ) - { - if (*(px + imagen->pitch*y + x*3 + 0) == none[0] && - *(px + imagen->pitch*y + x*3 + 1) == none[1] && - *(px + imagen->pitch*y + x*3 + 2) == none[2] ) - break ; - } - x--; - fuente_control_s.rect[i].w = x - fuente_control_s.rect[i].x + 1 ; - x++; - - fprintf(out, "%i: %i,%i-%i,%i\n" , - i , - fuente_control_s.rect[i].x , - fuente_control_s.rect[i].y , - fuente_control_s.rect[i].w , - fuente_control_s.rect[i].h ) ; - - i++; - break ; - } - } - if ( i > 255) - break ; - } - - //SDL_UnlockSurface( imagen ); - //SDL_FreeSurface( imagen ) ; - - //im = open( "fuente.bmp" , O_RDONLY | O_BINARY ) ; - fp = fopen("fuente.fnt" , "w" ) ; - - fuente_control_s.offset_imagen = sizeof( fuente_control_s ) ; - fuente_control_s.size_imagen = imagen->w * imagen->h * imagen->format->BytesPerPixel ; - fuente_control_s.w = imagen->w ; - fuente_control_s.h = imagen->h ; - fuente_control_s.bytespp = imagen->format->BytesPerPixel ; - - printf("Sizeof control: %i\nOffset imagen: %i\nSizeof imagen: %i" , - fuente_control_s.offset_imagen, fuente_control_s.offset_imagen , - fuente_control_s.size_imagen ) ; - getchar(); - - //close(im) ; - //img = fopen("fuente.bmp" , "r" ) ; - - if(!(pool = malloc(fuente_control_s.size_imagen + 1) ) ) - printf("ERROR: Memoria insuficiente\n"); - - // generamos la imagen a guardar - for ( x = 0 ; x < imagen->w ; x++ ) - for ( y = 0 ; y < imagen->h ; y++ ) - for ( i = 0 ; i < imagen->format->BytesPerPixel ; i++ ) - pool[ ( x + y * imagen->w ) * imagen->format->BytesPerPixel + i ] = *(px + ( y * imagen->pitch ) + ( x * imagen->format->BytesPerPixel ) + i ) ; - - SDL_UnlockSurface( imagen ); - - - //fread( pool , 1 , fuente_control_s.size_imagen , img ) ; - printf("\nescribe: %i" , fwrite( &fuente_control_s , 1 , sizeof(fuente_control_s) , fp ) ); - //fwrite( &fuente_control_s , 1 , fuente_control_s.offset_imagen , fp ) ; - - pos = fuente_control_s.offset_imagen ; - fsetpos(fp , &pos ) ; - - //fwrite( &fuente_control_s , 1 , 2060 , fp ) ; - printf( "\n%i\n" , ftell( fp ) ) ; - getchar() ; - - - fwrite( pool , 1 , fuente_control_s.size_imagen , fp ) ; - - free(pool) ; - - return 0 ; -} - - diff --git a/ediv/src/bmp2fnt/b2f.dsp b/ediv/src/bmp2fnt/b2f.dsp deleted file mode 100644 index 447cefd..0000000 --- a/ediv/src/bmp2fnt/b2f.dsp +++ /dev/null @@ -1,101 +0,0 @@ -# Microsoft Developer Studio Project File - Name="b2f" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=b2f - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "b2f.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "b2f.mak" CFG="b2f - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "b2f - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "b2f - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "b2f - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD BASE RSC /l 0xc0a /d "NDEBUG" -# ADD RSC /l 0xc0a /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 - -!ELSEIF "$(CFG)" == "b2f - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "Debug" -# PROP Intermediate_Dir "Debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c -# ADD CPP /nologo /MD /W3 /Gm /GX /ZI /Od /I "..\shared" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c -# ADD BASE RSC /l 0xc0a /d "_DEBUG" -# ADD RSC /l 0xc0a /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib sdlmain.lib sdl.lib /nologo /subsystem:console /debug /machine:I386 /out:"../../bin/b2f.exe" /pdbtype:sept - -!ENDIF - -# Begin Target - -# Name "b2f - Win32 Release" -# Name "b2f - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" -# Begin Source File - -SOURCE=.\b2f.c -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h;hpp;hxx;hm;inl" -# Begin Source File - -SOURCE=..\shared\edivfont.h -# End Source File -# End Group -# End Target -# End Project diff --git a/ediv/src/bmp2fnt/b2f.sln b/ediv/src/bmp2fnt/b2f.sln deleted file mode 100644 index 933d04d..0000000 --- a/ediv/src/bmp2fnt/b2f.sln +++ /dev/null @@ -1,21 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 7.00 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "b2f", "b2f.vcproj", "{892F2A1D-847C-45C1-B7D9-3F421D749FA5}" -EndProject -Global - GlobalSection(SolutionConfiguration) = preSolution - ConfigName.0 = Debug - ConfigName.1 = Release - EndGlobalSection - GlobalSection(ProjectDependencies) = postSolution - EndGlobalSection - GlobalSection(ProjectConfiguration) = postSolution - {892F2A1D-847C-45C1-B7D9-3F421D749FA5}.Debug.ActiveCfg = Debug|Win32 - {892F2A1D-847C-45C1-B7D9-3F421D749FA5}.Debug.Build.0 = Debug|Win32 - {892F2A1D-847C-45C1-B7D9-3F421D749FA5}.Release.ActiveCfg = Release|Win32 - {892F2A1D-847C-45C1-B7D9-3F421D749FA5}.Release.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - EndGlobalSection - GlobalSection(ExtensibilityAddIns) = postSolution - EndGlobalSection -EndGlobal diff --git a/ediv/src/bmp2fnt/b2f.suo b/ediv/src/bmp2fnt/b2f.suo deleted file mode 100644 index 0a55e71..0000000 Binary files a/ediv/src/bmp2fnt/b2f.suo and /dev/null differ diff --git a/ediv/src/bmp2fnt/b2f.vcproj b/ediv/src/bmp2fnt/b2f.vcproj deleted file mode 100644 index 32bceed..0000000 --- a/ediv/src/bmp2fnt/b2f.vcproj +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ediv/src/bmp2fnt/b2f.vcproj.vspscc b/ediv/src/bmp2fnt/b2f.vcproj.vspscc deleted file mode 100644 index 8390beb..0000000 --- a/ediv/src/bmp2fnt/b2f.vcproj.vspscc +++ /dev/null @@ -1,10 +0,0 @@ -"" -{ -"FILE_VERSION" = "9237" -"ENLISTMENT_CHOICE" = "NEVER" -"PROJECT_FILE_RELATIVE_PATH" = "relative:bmp2fnt" -"NUMBER_OF_EXCLUDED_FILES" = "0" -"ORIGINAL_PROJECT_FILE_PATH" = "" -"NUMBER_OF_NESTED_PROJECTS" = "0" -"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT" -} diff --git a/ediv/src/dlls/dlls.sln b/ediv/src/dlls/dlls.sln deleted file mode 100644 index ddbb6ad..0000000 --- a/ediv/src/dlls/dlls.sln +++ /dev/null @@ -1,69 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 7.00 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "strings", "strings\strings.vcproj", "{F83A4960-9687-42C4-B722-14A028A9C393}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dinmem", "dinmem\dinmem.vcproj", "{6994F9CD-63ED-425D-879C-678D1706F4AE}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "edivstd", "edivstd\edivstd.vcproj", "{7205B875-5EFC-4C86-8C38-2F6A66DCEBF2}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "file", "file\file.vcproj", "{6994F9CD-63ED-425D-879C-678D1706F4AE}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "graphics", "graphics\graphics.vcproj", "{595A2626-DD40-44EC-A2B8-FB513D15D8C9}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "input", "input\input.vcproj", "{6994F9CD-63ED-425D-879C-678D1706F4AE}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "scroll", "scroll\scroll.vcproj", "{11D7DB5D-4EC9-4181-A9F0-B03EAAE4A070}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "text", "text\text.vcproj", "{6994F9CD-63ED-425D-879C-678D1706F4AE}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "math", "math\math.vcproj", "{5F3C5CEB-002A-4132-BCA3-65CE524A23E9}" -EndProject -Global - GlobalSection(SolutionConfiguration) = preSolution - ConfigName.0 = Debug - ConfigName.1 = Release - EndGlobalSection - GlobalSection(ProjectDependencies) = postSolution - EndGlobalSection - GlobalSection(ProjectConfiguration) = postSolution - {F83A4960-9687-42C4-B722-14A028A9C393}.Debug.ActiveCfg = Debug|Win32 - {F83A4960-9687-42C4-B722-14A028A9C393}.Debug.Build.0 = Debug|Win32 - {F83A4960-9687-42C4-B722-14A028A9C393}.Release.ActiveCfg = Release|Win32 - {F83A4960-9687-42C4-B722-14A028A9C393}.Release.Build.0 = Release|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Debug.ActiveCfg = Debug|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Debug.Build.0 = Debug|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Release.ActiveCfg = Release|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Release.Build.0 = Release|Win32 - {7205B875-5EFC-4C86-8C38-2F6A66DCEBF2}.Debug.ActiveCfg = Debug|Win32 - {7205B875-5EFC-4C86-8C38-2F6A66DCEBF2}.Debug.Build.0 = Debug|Win32 - {7205B875-5EFC-4C86-8C38-2F6A66DCEBF2}.Release.ActiveCfg = Release|Win32 - {7205B875-5EFC-4C86-8C38-2F6A66DCEBF2}.Release.Build.0 = Release|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Debug.ActiveCfg = Debug|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Debug.Build.0 = Debug|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Release.ActiveCfg = Release|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Release.Build.0 = Release|Win32 - {595A2626-DD40-44EC-A2B8-FB513D15D8C9}.Debug.ActiveCfg = Debug|Win32 - {595A2626-DD40-44EC-A2B8-FB513D15D8C9}.Debug.Build.0 = Debug|Win32 - {595A2626-DD40-44EC-A2B8-FB513D15D8C9}.Release.ActiveCfg = Release|Win32 - {595A2626-DD40-44EC-A2B8-FB513D15D8C9}.Release.Build.0 = Release|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Debug.ActiveCfg = Debug|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Debug.Build.0 = Debug|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Release.ActiveCfg = Release|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Release.Build.0 = Release|Win32 - {11D7DB5D-4EC9-4181-A9F0-B03EAAE4A070}.Debug.ActiveCfg = Debug|Win32 - {11D7DB5D-4EC9-4181-A9F0-B03EAAE4A070}.Debug.Build.0 = Debug|Win32 - {11D7DB5D-4EC9-4181-A9F0-B03EAAE4A070}.Release.ActiveCfg = Release|Win32 - {11D7DB5D-4EC9-4181-A9F0-B03EAAE4A070}.Release.Build.0 = Release|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Debug.ActiveCfg = Debug|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Debug.Build.0 = Debug|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Release.ActiveCfg = Release|Win32 - {6994F9CD-63ED-425D-879C-678D1706F4AE}.Release.Build.0 = Release|Win32 - {5F3C5CEB-002A-4132-BCA3-65CE524A23E9}.Debug.ActiveCfg = Debug|Win32 - {5F3C5CEB-002A-4132-BCA3-65CE524A23E9}.Debug.Build.0 = Debug|Win32 - {5F3C5CEB-002A-4132-BCA3-65CE524A23E9}.Release.ActiveCfg = Release|Win32 - {5F3C5CEB-002A-4132-BCA3-65CE524A23E9}.Release.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - EndGlobalSection - GlobalSection(ExtensibilityAddIns) = postSolution - EndGlobalSection -EndGlobal diff --git a/ediv/src/dlls/dlls.suo b/ediv/src/dlls/dlls.suo deleted file mode 100644 index 2b45314..0000000 Binary files a/ediv/src/dlls/dlls.suo and /dev/null differ diff --git a/ediv/src/dlls/export.h b/ediv/src/dlls/export.h deleted file mode 100644 index 6062933..0000000 --- a/ediv/src/dlls/export.h +++ /dev/null @@ -1,321 +0,0 @@ - -/* - * eDiv Compiler - * Copyleft (C) 2000-2002 Sion Entertainment - * http://www.sion-e.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 - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -/* Este fichero es la cabecera para las DLL's de eDIV. - * Para saber cómo se utiliza, consulte el eDIV SDK de la documentación de eDIV - * ESTE FICHERO -NO- HA DE SER MODIFICADO PARA CREAR DLLs, TAN SÓLO POR - * DESARROLLADORES DE eDIV. EN CASO DE SER MODIFICADO, SE PERDERÁ LA - * COMPATIBILIDAD CON eDIV Y EL RESTO DE DLLs. - * En caso de encontrar cualquier bug o anomalía en este archivo, por favor - * notifíquelo a Sion Entertainment en bugs@edivcentral.com - */ - -#ifndef __EDIV__EXPORT_H -#define __EDIV__EXPORT_H - -#ifdef __cplusplus -extern "C" { -#endif - -// COMPATIBILIDAD WIN <-> LINUX - -#ifdef _WIN32 -//# define DllMain() WINAPI DllMain(HINSTANCE hInst, DWORD reason, LPVOID) -# include -#else - #ifndef bool - typedef enum { FALSE, TRUE } bool; - #endif -#endif - - -///// VARINDEX ///// - -typedef enum { v_global, v_reserved, v_local } tipo_t; - -typedef struct { - unsigned char hash; - tipo_t tipo; - char* nombre; - int offset; -} varindex_t; - -#define global(nombre) fp->mem[fp->GetVarOffset(v_global,nombre)] -#define reserved(nombre,id) fp->mem[(id)+fp->GetVarOffset(v_reserved,nombre)] -#define local(nombre,id) fp->mem[(id)+fp->GetVarOffset(v_local,nombre)] -#define globalptr(nombre) fp->GetVarOffset(v_global,nombre) -#define reservedptr(nombre) fp->GetVarOffset(v_reserved,nombre) -#define localptr(nombre) fp->GetVarOffset(v_local,nombre) - -///// FIN DE VARINDEX ///// - - -#include - -/* Funciones de exportación de datos */ -typedef int (TYPEOF_EDIV_Export)(char* cadena, int nparam, void* hfuncion); -typedef int (TYPEOF_EDIV_Export_Const)(char* cadena, int valor); -typedef int (TYPEOF_EDIV_Export_Global)(char* cadena, int valor); -typedef int (TYPEOF_EDIV_Export_Global_Tab)(char* cadena, int numregs); -typedef int (TYPEOF_EDIV_Export_Global_Struct)(char* cadena, int numregs); -typedef int (TYPEOF_EDIV_Export_Member_Int)(char* cadena, int valor); -typedef int (TYPEOF_EDIV_Export_Member_Str)(char* cadena, int tamano); -typedef int (TYPEOF_EDIV_Export_Member_Tab)(char* cadena, int numregs); -typedef int (TYPEOF_EDIV_Export_EndStruct)(); -typedef int (TYPEOF_EDIV_Export_Local)(char* cadena, int valor); -typedef int (TYPEOF_EDIV_Export_Local_Tab)(char* cadena, int numregs); -typedef int (TYPEOF_EDIV_Export_Local_Struct)(char* cadena, int numregs); -typedef int (TYPEOF_EDIV_Export_Entrypoint)(int ep, void* hfuncion); -typedef int (TYPEOF_EDIV_Export_Priority)(int priority); - -/* Call_Entrypoint */ -typedef int (TYPEOF_Call_Entrypoint)(int ep, ...); - -/* Dibuja */ -typedef int (TYPEOF_Dibuja)(SDL_Surface *, SDL_Rect, SDL_Rect, int, int, int, int); - -/* Errores */ -typedef void (TYPEOF_Runtime_Error)(int, ...); -typedef void (TYPEOF_Critical_Error)(int, ...); - -/* Obtiene offset de variable indexada dinámicamente */ -typedef int (TYPEOF_GetVarOffset)(tipo_t tipo,char* nombre); - -/* Finaliza el stub (exit) */ -typedef void (TYPEOF_Stub_Quit)(int n); - -// estilo BO2K, sólo para "defaultear" las funciones como NULL -/*extern TYPEOF_EDIV_Export *EDIV_Export; -extern TYPEOF_EDIV_Export_Const *EDIV_Export_Const; -extern TYPEOF_EDIV_Export_Global *EDIV_Export_Global; -extern TYPEOF_EDIV_Export_Global_Tab *EDIV_Export_Global_Tab; -extern TYPEOF_EDIV_Export_Global_Struct *EDIV_Export_Global_Struc; -extern TYPEOF_EDIV_Export_Member_Int *EDIV_Export_Member_Int; -extern TYPEOF_EDIV_Export_Member_Str *EDIV_Export_Member_Str; -extern TYPEOF_EDIV_Export_Member_Tab *EDIV_Export_Member_Tab; -extern TYPEOF_EDIV_Export_EndStruct *EDIV_Export_EndStruct; -extern TYPEOF_EDIV_Export_Local *EDIV_Export_Local; -extern TYPEOF_EDIV_Export_Local_Tab *EDIV_Export_Local_Tab; -extern TYPEOF_EDIV_Export_Local_Struct *EDIV_Export_Local_Struct; -extern TYPEOF_EDIV_Export_Entrypoint *EDIV_Export_Entrypoint; -extern TYPEOF_EDIV_Export_Priority *EDIV_Export_Priority;*/ - -/*TYPEOF_EDIV_Export *EDIV_Export =NULL; -TYPEOF_EDIV_Export_Const *EDIV_Export_Const =NULL; -TYPEOF_EDIV_Export_Global *EDIV_Export_Global =NULL; -TYPEOF_EDIV_Export_Global_Tab *EDIV_Export_Global_Tab =NULL; -TYPEOF_EDIV_Export_Global_Struct *EDIV_Export_Global_Struct=NULL; -TYPEOF_EDIV_Export_Member_Int *EDIV_Export_Member_Int =NULL; -TYPEOF_EDIV_Export_Member_Str *EDIV_Export_Member_Str =NULL; -TYPEOF_EDIV_Export_Member_Tab *EDIV_Export_Member_Tab =NULL; -TYPEOF_EDIV_Export_EndStruct *EDIV_Export_EndStruct =NULL; -TYPEOF_EDIV_Export_Local *EDIV_Export_Local =NULL; -TYPEOF_EDIV_Export_Local_Tab *EDIV_Export_Local_Tab =NULL; -TYPEOF_EDIV_Export_Local_Struct *EDIV_Export_Local_Struct =NULL; -TYPEOF_EDIV_Export_Entrypoint *EDIV_Export_Entrypoint =NULL; -TYPEOF_EDIV_Export_Priority *EDIV_Export_Priority =NULL;*/ - - -// EXPORTAFUNCS_PARAMS deben usarse como parámetros para ExportaFuncs -#define EXPORTAFUNCS_PARAMS \ -TYPEOF_EDIV_Export *EDIV_Export ,\ -TYPEOF_EDIV_Export_Const *EDIV_Export_Const ,\ -TYPEOF_EDIV_Export_Global *EDIV_Export_Global ,\ -TYPEOF_EDIV_Export_Global_Tab *EDIV_Export_Global_Tab ,\ -TYPEOF_EDIV_Export_Global_Struct *EDIV_Export_Global_Struct,\ -TYPEOF_EDIV_Export_Member_Int *EDIV_Export_Member_Int ,\ -TYPEOF_EDIV_Export_Member_Str *EDIV_Export_Member_Str ,\ -TYPEOF_EDIV_Export_Member_Tab *EDIV_Export_Member_Tab ,\ -TYPEOF_EDIV_Export_EndStruct *EDIV_Export_EndStruct ,\ -TYPEOF_EDIV_Export_Local *EDIV_Export_Local ,\ -TYPEOF_EDIV_Export_Local_Tab *EDIV_Export_Local_Tab ,\ -TYPEOF_EDIV_Export_Local_Struct *EDIV_Export_Local_Struct ,\ -TYPEOF_EDIV_Export_Entrypoint *EDIV_Export_Entrypoint ,\ -TYPEOF_EDIV_Export_Priority *EDIV_Export_Priority - - -///////////// -// ENTRY-POINTS -/////////// -// Estas funciones son llamadas por el STUB en determinados eventos -// (Cuando una DLL hace cierta acción, lo avisa al Stub y el stub se encarga de llamar -// a las correspondientes rutinas de las dll's, ordenadas por prioridad) -///////// - -// Constantes para EDIV_Export_Entrypoint - -#define EDIV_set_video_mode 1 // Al activar un nuevo modo de vídeo -#define EDIV_process_palette 2 // Al cargar una paleta -#define EDIV_process_active_palette 3 // Al modificar la paleta activa (usada en los fades) -#define EDIV_process_sound 4 // Al cargar un efecto sonoro -#define EDIV_process_map 5 // Al cargar un mapa -#define EDIV_process_fpg 6 // Al cargar un FPG -#define EDIV_process_fnt 7 // Al cargar una fuente -#define EDIV_background_to_buffer 8 // Volcar el fondo al buffer -#define EDIV_buffer_to_video 9 // Volcar el buffer a la memoria de video -#define EDIV_post_process_scroll 10 // Tras dibujar una ventana de scroll (sin los sprites) -#define EDIV_post_process_m7 11 // Tras dibujar una ventana de modo7 (sin los sprites) -#define EDIV_post_process_m8 12 // Tras dibujar una ventana de modo8 (sin los sprites) -#define EDIV_post_process_buffer 13 // Tras haber terminado de dibujarlo todo -#define EDIV_post_process 14 // Tras ejecutar el frame de un proceso (cualquier %) -#define EDIV_put_sprite 15 // Dibujar un sprite -#define EDIV_ss_init 16 // Inicio de salvapantallas -#define EDIV_ss_frame 17 // Frame de salvapantallas -#define EDIV_ss_end 18 // Fin de salvapantallas -#define EDIV_frame 19 // En cada frame -#define EDIV_trace 20 // Después de ejecutar cada instrucción de bytecode (solo en debug) -#define EDIV_debug 21 // Invocar al trazador - sentencia debug (solo en debug) -#define EDIV_first_load 22 // Se ejecuta al cargar la DLL en ejecucion -#define EDIV_quit 23 // Llamado por stub_quit() - - -// Voy a poner unos #defines para que la declaración de datos sea un poco más BASIC... :p -#ifdef CONST -# undef CONST -#endif -#define FUNCTION EDIV_Export -#define CONST EDIV_Export_Const -#define GLOBAL EDIV_Export_Global -#define GLOBAL_ARRAY EDIV_Export_Global_Tab -#define GLOBAL_STRUCT EDIV_Export_Global_Struct -#define _INT EDIV_Export_Member_Int -#define _STRING EDIV_Export_Member_Str -#define _ARRAY EDIV_Export_Member_Tab -#define END_STRUCT EDIV_Export_EndStruct() -#define LOCAL EDIV_Export_Local -#define LOCAL_ARRAY EDIV_Export_Local_Tab -#define LOCAL_STRUCT EDIV_Export_Local_Struct -#define ENTRYPOINT(e) EDIV_Export_Entrypoint(EDIV_##e,e) -#define PRIORITY EDIV_Export_Priority - - -// FUNCTION_PARAMS deben usarse como parametros para TODAS las funciones -// ¡ojo! debe ser igual en extern.h -#define FUNCTION_PARAMS struct _fun_params *fp - - -//struct _procs_s &procs_s, \ - -struct _procs_s{ - int id ; // offset de los datos locales del proceso - int tipo ; // tipo de proceso - int orden ; // indice en proc_orden[] - int num_params ; // numero de parametros k coje ( NO SE PARA K SIRVE PERO PARA ALGO ESTARA CBP NO ? ) - int imem ; // Posicion en la k se quedo suspendido el proceso - int priority ; // Priority - int frame; // Frame completado - int graph ; -}; - -struct _regions -{ - int x , y , w , h ; -} ; - -struct _existe { - int regions ; - int dibuja ; -} ; -struct _file -{ - SDL_Surface *Surface ; - int existe ; - struct - { - int x , y ; - } cpoint[ 20 ] ; -} ; - -struct _files -{ - int num ; - int existe ; - struct _file *mapa ; -} ; - -struct _fun_params{ - int *pila ; - int *sp ; - int *mem ; - int num_params; - varindex_t *varindex ; - struct _procs_s *procs_s ; - int *num_procs ; - int *proc_orden ; - int *proceso_actual ; - unsigned char* nombre_program; - struct _regions *regions ; - struct _existe existe ; - struct _files *files ; - TYPEOF_Dibuja *Dibuja ; // <- Tienes una funcion identica a esta variable (Daijo) <<- Y que? , la funcion no esta dentro de esta estructura :P (Riseven) - TYPEOF_Call_Entrypoint *Call_Entrypoint ; - TYPEOF_Runtime_Error *Runtime_Error ; - TYPEOF_Critical_Error *Critical_Error ; - TYPEOF_GetVarOffset *GetVarOffset ; - TYPEOF_Stub_Quit *Stub_Quit ; - int imem_max; - SDL_Surface *screen; -} ; - - -// Se usa igual que el getparm() de DIV -#define getparm() fp->pila[(*fp->sp)--] -#define getstrparm() (char*)&fp->mem[fp->pila[(*fp->sp)--]] - -// Y esto por si los despistes xD -#define retval(a) return (a) - - -// Prototipos de los entrypoints - -void set_video_mode(void); -void process_palette(void); -void process_active_palette(void); -void process_sound(char *sound,int lenght); -void process_fpg(char *fpg,int fpg_lenght); -void process_map(char *map,int map_lenght); -void process_fnt(char *fnt,int fnt_lenght); -void background_to_buffer(void); -void buffer_to_video(void); -void post_process_scroll(void); -void post_process_m7(void); -void post_process_m8(void); -void post_process_buffer(void); -void post_process(void); -void put_sprite(unsigned char * si, int x,int y, int an, int al, int xg, int yg, - int ang, int size, int flags); -void ss_init(void); -void ss_frame(void); -void ss_end(void); -void frame(FUNCTION_PARAMS); -void trace(int imem, char* nombreprg, int* lin, void* dbg); -void debug(int imem, char* nombreprg, int* lin, void* dbg); -void first_load(FUNCTION_PARAMS) ; -void quit(void); - -////////////////////////////// - - -#ifdef __cplusplus -} -#endif - -#endif /* __EDIV__EXPORT_H */ diff --git a/ediv/src/dlls/math/Makefile b/ediv/src/dlls/math/Makefile deleted file mode 100644 index a656c59..0000000 --- a/ediv/src/dlls/math/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -LDFLAGS = -ggdb -CFLAGS = -Wall -CC = gcc - -TARGET = ../../../bin/so/edivstd.so - -$(TARGET): edivstd.c - $(CC) $(LDFLAGS) $(CFLAGS) -I../ -shared -Wl,-soname,edivstd.so -o $@ $< \ No newline at end of file diff --git a/ediv/src/dlls/math/main.h b/ediv/src/dlls/math/main.h deleted file mode 100644 index 0118bae..0000000 --- a/ediv/src/dlls/math/main.h +++ /dev/null @@ -1,29 +0,0 @@ - -#define PIOVER180 0.017453292519943295769236907684886 - - -int eDiv_Abs(FUNCTION_PARAMS) ; -int eDiv_Pow(FUNCTION_PARAMS) ; -int eDiv_Sqrt(FUNCTION_PARAMS) ; -int eDiv_Rand(FUNCTION_PARAMS) ; -int eDiv_RandSeed(FUNCTION_PARAMS) ; -int eDiv_Sin(FUNCTION_PARAMS) ; -int eDiv_Cos(FUNCTION_PARAMS) ; -int eDiv_Tan(FUNCTION_PARAMS) ; -int eDiv_GetAngle(FUNCTION_PARAMS) ; -int eDiv_GetDist(FUNCTION_PARAMS) ; -int eDiv_GetDistX(FUNCTION_PARAMS) ; -int eDiv_GetDistY(FUNCTION_PARAMS) ; -int eDiv_FgetAngle(FUNCTION_PARAMS) ; -int eDiv_FgetDist(FUNCTION_PARAMS) ; -int eDiv_NearAngle(FUNCTION_PARAMS) ; - -float eDiv_cpysign(float n,float s); -float eDiv_max(float n1,float n2); -float eDiv_min(float n1,float n2); -float eDiv_xmax(float n1,float n2,float n3); -float eDiv_xmin(float n1,float n2,float n3); -float eDiv_xmid(float n1,float n2,float n3); - -int ftomil(float) ; -int prepara_angulo( int ) ; diff --git a/ediv/src/dlls/math/math.c b/ediv/src/dlls/math/math.c deleted file mode 100644 index c8a0226..0000000 --- a/ediv/src/dlls/math/math.c +++ /dev/null @@ -1,405 +0,0 @@ -/* - * eDiv Compiler - * Copyleft (C) 2000-2002 Sion Entertainment - * http://www.sion-e.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 - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -/* EDIVSTD.DLL - * Esta librería contiene los datos más básicos que puede requerir un programa - * DIV, tal como las opciones de compilación, estructura reserved, etc. - */ -#include -#include -#include - -#include "math.h" -#include "main.h" - -int seno[90001] ; - -/*int DllMain() -{ - //printf("Cargada DLL: SAMPLE\n"); - - // Si se quiere que la DLL se cargue, hay que devolver true - return TRUE; -}*/ - -int ExportaFuncs(EXPORTAFUNCS_PARAMS) -{ - CONST("pi",180000); - - FUNCTION("abs",1,eDiv_Abs); - FUNCTION("pow",2,eDiv_Pow); - FUNCTION("sqrt",1,eDiv_Sqrt); - FUNCTION("rand",2,eDiv_Rand); - FUNCTION("rand_seed",1,eDiv_RandSeed) ; - FUNCTION("sin",1,eDiv_Sin) ; - FUNCTION("cos",1,eDiv_Cos) ; - FUNCTION("tan",1,eDiv_Tan) ; - FUNCTION("get_angle",1,eDiv_GetAngle) ; - FUNCTION("get_dist",1,eDiv_GetDist) ; - FUNCTION("get_distx",2,eDiv_GetDistX) ; - FUNCTION("get_disty",2,eDiv_GetDistY) ; - FUNCTION("fget_angle",4,eDiv_FgetAngle) ; - FUNCTION("fget_dist",4,eDiv_FgetDist) ; - FUNCTION("near_angle",3,eDiv_NearAngle) ; - FUNCTION("cpysign",2,eDiv_cpysign) ; - FUNCTION("max",2,eDiv_max) ; - FUNCTION("min",2,eDiv_min) ; - FUNCTION("xmax",3,eDiv_xmax) ; - FUNCTION("xmin",3,eDiv_xmin) ; - FUNCTION("xmid",3,eDiv_xmid) ; - ENTRYPOINT(first_load) ; - - return TRUE; -} - - - - -int eDiv_Abs(FUNCTION_PARAMS) -{ - int a = getparm() ; - if ( a < 0 ) a = -a ; - return a ; -} - -int eDiv_Pow(FUNCTION_PARAMS) -{ - int a,b,c,n,i ; - b = getparm() ; - a = getparm() ; - n = 1 ; - c = b ; - if ( c < 0 ) c = -c ; - for ( i = 1 ; i < c ; i++ ) - { - n *= a ; - } - if ( b < 0 ) - n = 1 / n ; - return n ; -} - -int eDiv_Sqrt(FUNCTION_PARAMS) -{ - int a ; - a = getparm() ; - return sqrt( a ) ; -} - -int eDiv_Rand(FUNCTION_PARAMS) -{ - int a,b,n ; - b = getparm() ; - a = getparm() ; - n = (int)(rand()%(b-a+1))+a ; - return n ; -} - -int eDiv_RandSeed(FUNCTION_PARAMS) -{ - int a ; - a = getparm() ; - if ( a == 0 ) - srand(time(NULL)) ; - else - srand(a) ; - return 1 ; -} - -int eDiv_Sin(FUNCTION_PARAMS) -{ - int a ; - a = getparm() ; - a = prepara_angulo(a) ; - if ( a <= 90000 ) - return seno[a]; - if ( a <= 180000 ) - return seno[180000-a] ; - if ( a <= 270000 ) - return -seno[a-180000] ; - return -seno[360000-a] ; -} - -int eDiv_Cos(FUNCTION_PARAMS) -{ - int a ; - a = getparm() ; - a = prepara_angulo(a) ; - if ( a <= 90000 ) - return seno[90000-a]; - if ( a <= 180000 ) - return -seno[a-90000] ; - if ( a <= 270000 ) - return -seno[270000-a] ; - return seno[a-270000] ; -} - -int eDiv_Tan(FUNCTION_PARAMS) -{ - int a , b , c; - a = getparm() ; - a = prepara_angulo(a) ; - if ( a <= 90000 ) - b = seno[a]; - else - if ( a <= 180000 ) - b = seno[180000-a] ; - else - if ( a <= 270000 ) - b = -seno[a-180000] ; - else - b = -seno[360000-a] ; - if ( a <= 90000 ) - c = seno[90000-a]; - else - if ( a <= 180000 ) - c = -seno[a-90000] ; - else - if ( a <= 270000 ) - c = -seno[270000-a] ; - else - c = seno[a-270000] ; - - if ( c == 0 ) - return 0x7FFFFFFF ; - else - return ( (int)(b/c) ) ; - return 0 ; -} - - - -int eDiv_GetAngle(FUNCTION_PARAMS) -{ - int id1 , id2 ; - int x1 , x2 , y1, y2 ; - int a = getparm() ; - id1 = fp->procs_s[ fp->proc_orden[ *fp->proceso_actual ] ].id ; - id2 = a ; - x1 = local("x",id1) ; - y1 = local("y",id1) ; - x2 = local("x",id2) ; - y2 = local("y",id2) ; - if ( (x2-x1) != 0 ) - { - a = atan( (double)((y2-y1) / (x2-x1)) ) / PIOVER180 ; - if ( x2 < x1 ) - a+= 180 ; - }else - if ( y2 > y1 ) - a = 90 ; - else - a = 270 ; - a *= 1000 ; - a = prepara_angulo(a) ; - return a ; -} - -int eDiv_GetDist(FUNCTION_PARAMS) -{ - int id1 , id2 ; - int x1 , x2 , y1, y2 ; - int a = getparm() ; - id1 = fp->procs_s[ fp->proc_orden[*fp->proceso_actual] ].id ; - id2 = a ; - x1 = local("x",id1) ; - y1 = local("y",id1) ; - x2 = local("x",id2) ; - y2 = local("y",id2) ; - a = sqrt( pow( x2-x1 , 2 ) + pow( y2-y1 , 2 ) ) ; - return a ; -} - -int eDiv_GetDistX(FUNCTION_PARAMS) -{ - int a , b ; - b = getparm() ; //distancia - a = getparm() ; //angulo - a = (int) b* cos( (a/1000)*PIOVER180 ) ; - return a ; -} - -int eDiv_GetDistY(FUNCTION_PARAMS) -{ - int a , b ; - b = getparm() ; //distancia - a = getparm() ; //angulo - a = (int) b* sin( (a/1000)*PIOVER180 ) ; - return a ; -} - -int eDiv_FgetAngle(FUNCTION_PARAMS) -{ - int x1 , y1 , x2 , y2 , a ; - y2 = getparm() ; - x2 = getparm() ; - y1 = getparm() ; - x1 = getparm() ; - if ( (x2-x1) != 0 ) - { - a = atan( (double)((y2-y1) / (x2-x1)) ) / PIOVER180 ; - if ( x2 < x1 ) - a+= 180 ; - }else - if ( y2 > y1 ) - a = 90 ; - else - a = 270 ; - a *= 1000 ; - a = prepara_angulo(a) ; - return a ; -} - -int eDiv_FgetDist(FUNCTION_PARAMS) -{ - int x1 , y1 , x2 , y2 , a; - y2 = getparm() ; - x2 = getparm() ; - y1 = getparm() ; - x1 = getparm() ; - a = sqrt( pow( x2-x1 , 2 ) + pow( y2-y1 , 2 ) ) ; - return a ; -} - -int eDiv_NearAngle(FUNCTION_PARAMS) -{ - int a , b , c ; - c = getparm() ; - b = getparm() ; - a = getparm() ; - a = prepara_angulo(a) ; - b = prepara_angulo(b) ; - c = prepara_angulo(c) ; - if ( abs(a - b) <= c ) - return b ; - if ( a < b ) - { - if ( abs( b-a ) < 180000 ) - { - a = prepara_angulo( a+c ) ; - }else - { - a = prepara_angulo( a-c ) ; - } - return a ; - }else - { - if ( abs( b-a ) < 180000 ) - { - a = prepara_angulo( a-c ) ; - }else - { - a = prepara_angulo( a+c ) ; - } - return a ; - } - return 0 ; -} - -int eDiv_cpysign(FUNCTION_PARAMS) -{ - int s = getparm() ; - int n = getparm() ; - return ((s<0)?((n<0)?(n):(-n)):((n>=0)?(n):(-n))); -} - -int eDiv_max(FUNCTION_PARAMS) -{ - int n2 = getparm() ; - int n1 = getparm() ; - return ((n1>n2)?(n1):(n2)); -} - -int eDiv_min(FUNCTION_PARAMS) -{ - int n2 = getparm() ; - int n1 = getparm() ; - return ((n1m) m=n2; - if(n3>m) m=n3; - return m; -} - -int eDiv_xmin(FUNCTION_PARAMS) -{ - int n3 = getparm() ; - int n2 = getparm() ; - int n1 = getparm() ; - - int m=n1; - if(n2n2 && n1>n3 && n2>=n3) || - (n1>n2 && n1==n3 && n2n3) || - (n1>n2 && n1>n3 && n2n3 && n2>n3)) - return n3; - return n1; -} - - -//------------------------------ ENTRYPOINTS ------------------------------------------- - -void first_load() -{ - int i ; - //calculamos los senos del 0 al 90000 - for ( i = 0 ; i < 90000 ; i++ ) - { - seno[i] = ftomil( sin( (i / 1000)*PIOVER180 ) ); - } - //seno[90000] = 0x7FFFFFFF ; - seno[90000]=1000; - srand(time(NULL)); -} - - -//**************************** FUNCIONES INTERNAS DE LA DLL *************************** - -int ftomil( float n ) -{ - - return ((int)(n*1000)) ; - -} - -int prepara_angulo( int n ) -{ - n = n % 360000 ; - if ( n < 0 ) n = n + 360000 ; - return n ; -} - diff --git a/ediv/src/dlls/math/math.def b/ediv/src/dlls/math/math.def deleted file mode 100644 index 1244a84..0000000 --- a/ediv/src/dlls/math/math.def +++ /dev/null @@ -1,3 +0,0 @@ -LIBRARY math -EXPORTS - ExportaFuncs diff --git a/ediv/src/dlls/math/math.sln b/ediv/src/dlls/math/math.sln deleted file mode 100644 index 6259e45..0000000 --- a/ediv/src/dlls/math/math.sln +++ /dev/null @@ -1,21 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 7.00 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "math", "math.vcproj", "{5F3C5CEB-002A-4132-BCA3-65CE524A23E9}" -EndProject -Global - GlobalSection(SolutionConfiguration) = preSolution - ConfigName.0 = Debug - ConfigName.1 = Release - EndGlobalSection - GlobalSection(ProjectDependencies) = postSolution - EndGlobalSection - GlobalSection(ProjectConfiguration) = postSolution - {5F3C5CEB-002A-4132-BCA3-65CE524A23E9}.Debug.ActiveCfg = Debug|Win32 - {5F3C5CEB-002A-4132-BCA3-65CE524A23E9}.Debug.Build.0 = Debug|Win32 - {5F3C5CEB-002A-4132-BCA3-65CE524A23E9}.Release.ActiveCfg = Release|Win32 - {5F3C5CEB-002A-4132-BCA3-65CE524A23E9}.Release.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - EndGlobalSection - GlobalSection(ExtensibilityAddIns) = postSolution - EndGlobalSection -EndGlobal diff --git a/ediv/src/dlls/math/math.suo b/ediv/src/dlls/math/math.suo deleted file mode 100644 index eeb44e8..0000000 Binary files a/ediv/src/dlls/math/math.suo and /dev/null differ diff --git a/ediv/src/dlls/math/math.vcproj b/ediv/src/dlls/math/math.vcproj deleted file mode 100644 index 04c9540..0000000 --- a/ediv/src/dlls/math/math.vcproj +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ediv/src/doku/doku.c b/ediv/src/doku/doku.c deleted file mode 100644 index 5673b28..0000000 --- a/ediv/src/doku/doku.c +++ /dev/null @@ -1,571 +0,0 @@ -/* - * eDiv Compiler - * Copyleft (C) 2000-2002 Sion Entertainment - * http://www.sion-e.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 - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#include -#include -#include - -/* esta es la tabla donde se almacenan los nombres de las directivas y los textos - * por los que deben ser sustituidas, definidos en template.txt - */ -struct _sust { - char de[20]; - char a[1024]; -} sust[20]; - -/* esta funcion recibe un nombre de fichero (actual) y, consultando el index.dok, - * devuelve el documento anterior, el siguiente y el superior. Evidentemente esto - * se usa para generar los enlaces de navegacion. - */ -void situame(char* actual, char* ant, char* sig, char* sup); - -/* esta funcion abre el fichero indicado en fixero1 y busca en el el texto - * encerrado entre las directivas <%title%> y <%/title%>, y lo devuelve en - * el puntero "titulo" - */ -void lee_titulo(char* fixero1, char* titulo); - -/* esta es llamada cuando nos encontramos con la directiva <%index%>. Parsea - * el arbolito ese con los signos '+' y genera una unordered list mu potita. - */ -void procesa_indice(); - -/* esta es llamada cuando encontramos <%subindex%>. Se le indica el fichero - * actual y busca la entrada correspondiente en el index.dok. Entonces parsea - * la porcion de arbol que engloba y genera un subíndice como los de SGML. - */ -void procesa_subindice(char* actual); - - -FILE *f; -int i,tamano; -char* buffer; - -int main(int argc, char* argv[]) -{ - int c,num=-1,j,sw; - char nomfich[256]; - char tag[20]; - int flag=0; - - if(argc!=2) { - printf("Modo de uso: %s \n",argv[0]); - exit(1); - } - - for(i=0;i') i+=2; - c=0; - if(!strcmp(sust[num].de,"index") || !strcmp(sust[num].de,"/index") || - !strcmp(sust[num].de,"subindex")) { - printf("Error en template.txt: \"%s\" es una directiva reservada\n",sust[num].de); - exit(10); - } - } - if(buffer[i]=='"') { - i++; - while(1) { - if(buffer[i]=='"' && buffer[i-1]!='\\') break; - if(buffer[i]=='\\' && buffer[i+1]=='n') - buffer[++i]='\n'; - else if(buffer[i]=='\\' && buffer[i+1]=='"') - buffer[++i]='"'; - sust[num].a[c++]=buffer[i++]; - } - } - } - - free(buffer); - - strcpy(nomfich,argv[1]); - strcat(nomfich,".dok"); - - if((f=fopen(nomfich,"r"))==NULL) { - printf("Error abriendo fichero %s\n",nomfich); - exit(4); - } - - fseek(f,0,SEEK_END); - tamano=ftell(f); - fseek(f,0,SEEK_SET); - - if((buffer=(char*)malloc(tamano+1))==NULL) { - printf("Error: memoria insuficiente\n"); - exit(5); - } - - tamano=fread(buffer,1,tamano,f); - fclose(f); - - buffer[tamano]=0; - - strcpy(nomfich,argv[1]); - strcat(nomfich,".html"); - - if((f=fopen(nomfich,"w"))==NULL) { - printf("Error creando fichero %s\n",nomfich); - exit(7); - } - - printf("Procesando...\n"); - - fprintf(f,"\n"); - for(i=0;i') i+=2; - else { - fclose(f); - printf("Error en tag %s, byte %d\n",tag,i); - exit(8); - } - flag=i; - sw=0; - for(j=0;j<=num;j++) - if(!strcmp(sust[j].de,tag)) { - sw=1; - fwrite(sust[j].a,1,strlen(sust[j].a),f); - break; - } - if(!sw) { - if(!strcmp(tag,"index")) { - procesa_indice(); - flag=i; - } - else if(!strcmp(tag,"subindex")) { - procesa_subindice(argv[1]); - } - else { - fclose(f); - printf("Error: tag no reconocido %s en byte %d\n",tag,i); - exit(9); - } - } - if(!strcmp(tag,"/title") && strcmp(argv[1],"index")) { - char ant[256], sig[256], sup[256]; - char tant[512], tsig[512], tsup[512], tidx[512]; - situame(argv[1],ant,sig,sup); - lee_titulo(ant,tant); - lee_titulo(sig,tsig); - lee_titulo(sup,tsup); - lee_titulo("index",tidx); - fprintf(f,"\n\n\n\n\n
    "); - if(*ant!=0) fprintf(f,"Anterior
    %s",ant,tant); - else fprintf(f,"Anterior
     "); - fprintf(f,"
    "); - if(*sup!=0) fprintf(f,"Subir
    %s",sup,tsup); - else fprintf(f,"Subir
    %s",tidx); - fprintf(f,"
    Contenido" - "
    %s
    ",tidx); - if(*sig!=0) fprintf(f,"Siguiente
    %s",sig,tsig); - else fprintf(f,"Siguiente
     "); - fprintf(f,"

    \n"); - } - } - } - - fwrite(&buffer[flag],1,strlen(&buffer[flag]),f); - - fclose(f); - - printf("Guardado %s\n",nomfich); - - return 0; -} - -void situame(char* actual, char* ant, char* sig, char* sup) -{ - FILE* fi; - char* buf,tag[20],fixero[256]; - int tam,p,c; - - int nivel=0,ni; - char anterior[256],superior[20][256]; - const char fin[]="<%/index%>"; - int j,sw=0,pillasig=0; - - *ant=0; *sig=0; *sup=0; - - if((fi=fopen("index.dok","r"))==NULL) { - printf("Error: no puedo abrir index.dok\n"); - exit(13); - } - - fseek(fi,0,SEEK_END); - tam=ftell(fi); - fseek(fi,0,SEEK_SET); - - if((buf=(char*)malloc(tam+1))==NULL) { - printf("Error: memoria insuficiente\n"); - exit(14); - } - - tam=fread(buf,1,tam,fi); - fclose(fi); - - buf[tam]=0; - - for(p=0;p') p+=2; - else { - printf("Error en fichero index.dok, tag %s, byte %d\n",tag,p); - exit(15); - } - if(!strcmp(tag,"index")) { - sw=1; - break; - } - } - } - - if(!sw) { - printf("Error: no se encuentra directiva <%index%> en index.dok\n"); - exit(16); - } - - memset(fixero,0,256); - memset(anterior,0,256); - memset(superior,0,256*20); - - for(;p31 && pnivel) { - if(ni==20) { - printf("Error: el indice no puede tener mas de 20 niveles\n"); - exit(17); - } - - if(!pillasig) { nivel=ni; strcpy(superior[nivel],fixero); } - } - if(ni31 && buf[p]!='<') - fixero[c++]=buf[p++]; - fixero[c]=0; - if(buf[p]=='<') p--; - if(pillasig) { - strcpy(ant,anterior); - strcpy(sig,fixero); - strcpy(sup,superior[nivel]); - fclose(fi); - free(buf); - return; - } - if(!strcmp(actual,fixero)) pillasig=1; - else strcpy(anterior,fixero); - } - if(pillasig) { - strcpy(ant,anterior); - strcpy(sup,superior[nivel]); - fclose(fi); - free(buf); - return; - } - printf("Error: el documento no esta listado en el indice\n"); - exit(18); -} - -void lee_titulo(char* fixero1, char* titulo) -{ - FILE* fi; - char* buf,tag[20],fixero[256]; - int tam,p,c; - - strcpy(fixero,fixero1); - strcat(fixero,".dok"); - - if((fi=fopen(fixero,"rb"))==NULL) { - sprintf(titulo,"[Error al abrir \"%s\"]",fixero); - return; - } - - fseek(fi,0,SEEK_END); - tam=ftell(fi); - fseek(fi,0,SEEK_SET); - - if((buf=(char*)malloc(tam+1))==NULL) { - printf("Error: memoria insuficiente\n"); - exit(11); - } - - tam=fread(buf,1,tam,fi); - fclose(fi); - - buf[tam]=0; - - for(p=0;p') p+=2; - else { - printf("Error en fichero %s, tag %s, byte %d\n",fixero,tag,p); - exit(13); - } - if(!strcmp(tag,"title")) { - c=0; - while(p"); - fprintf(f,"\n"); - i+=10; - return; - } - if(buffer[i]==';') { - while(buffer[i]>31 && inivel) { - if(ni==20) { - printf("Error: el indice no puede tener mas de 20 niveles\n"); - exit(25); - } - for(j=nivel;j"); - fprintf(f,"\n"); - nivel=ni; - } - if(ni"); - fprintf(f,"\n"); - nivel=ni; - } - c=0; - while(buffer[i]>31 && buffer[i]!='<') - fixero[c++]=buffer[i++]; - fixero[c]=0; - if(buffer[i]=='<') i--; - lee_titulo(fixero,titulo); - if(nivel==0) - fprintf(f,"

    %s

    \n",fixero,titulo); - else - fprintf(f,"
  • %s
  • \n",fixero,titulo); - } -} - -void procesa_subindice(char* actual) -{ - FILE* fi; - char* buf,tag[20],fixero[256],titulo[512]; - int tam,p,c; - - int nivel=0,ni,iniv; - const char fin[]="<%/index%>"; - int j,sw=0,pilla=0; - - if((fi=fopen("index.dok","r"))==NULL) { - printf("Error: no puedo abrir index.dok\n"); - exit(19); - } - - fseek(fi,0,SEEK_END); - tam=ftell(fi); - fseek(fi,0,SEEK_SET); - - if((buf=(char*)malloc(tam+1))==NULL) { - printf("Error: memoria insuficiente\n"); - exit(20); - } - - tam=fread(buf,1,tam,fi); - fclose(fi); - - buf[tam]=0; - - for(p=0;p') p+=2; - else { - printf("Error en fichero index.dok, tag %s, byte %d\n",tag,p); - exit(21); - } - if(!strcmp(tag,"index")) { - sw=1; - break; - } - } - } - - if(!sw) { - printf("Error: no se encuentra directiva <%index%> en index.dok\n"); - exit(22); - } - - for(;p31 && pnivel) { - if(ni==20) { - printf("Error: el indice no puede tener mas de 20 niveles\n"); - exit(23); - } - if(pilla && ni==iniv+1) { - //for(j=nivel;j"); - fprintf(f,"\n"); - } - nivel=ni; - } - if(ni"); - // fprintf(f,"\n"); - //} - nivel=ni; - if(pilla && nivel<=iniv) break; - } - c=0; - while(buf[p]>31 && buf[p]!='<') - fixero[c++]=buf[p++]; - fixero[c]=0; - if(buf[p]=='<') p--; - if(!strcmp(actual,fixero)) { - pilla=1; - fprintf(f,"
      "); - iniv=nivel; - } - if(pilla && nivel<=iniv+1) { - lee_titulo(fixero,titulo); - fprintf(f,"
    • %s
    • \n",fixero,titulo); - } - } - if(pilla) { - //for(j=iniv;j<=nivel;j++) - fprintf(f,"
    "); - /*if(nivel"); - fprintf(f,"\n"); - return; - } - printf("Error: el documento no esta listado en el indice\n"); - exit(24); -} \ No newline at end of file diff --git a/ediv/src/doku/template.txt b/ediv/src/doku/template.txt deleted file mode 100644 index d03d2cd..0000000 --- a/ediv/src/doku/template.txt +++ /dev/null @@ -1,11 +0,0 @@ -<%title%> "\n\neDIV docs - " -<%/title%> "\n" - "\n\n\n" - "" -<%end%> "

    Esta documentación ha sido escrita por el equipo de\n" - "Sion Entertainment y forma parte del proyecto eDIV. Las actualizaciones de esta\n" - "documentación pueden obtenerse en www.edivcentral.com.\nSi ve algún error o anomalía " - "en cualquiera de los documentos que\nse incluyen en este proyecto, por favor " - "comuníquenoslo a bugs@edivcentral.com.\n" - "Gracias.
    \n© Copyleft Sion Entertainment, 2001

    \n\n\n" diff --git a/ediv/src/iconchanger/iconchanger.c b/ediv/src/iconchanger/iconchanger.c deleted file mode 100644 index f234b1a..0000000 --- a/ediv/src/iconchanger/iconchanger.c +++ /dev/null @@ -1,143 +0,0 @@ -/* IconChanger - * Pequeña utilidad-complemento para eDIV que permite sustituir el icono del stub de - * win32 por otro. El icono nuevo debe ser exactamente igual que el original del stub, - * es decir, tiene que cumplir las siguientes condiciones: - * - Contener 6 imágenes en total: - * + 16x16 a 4, 8 y 24 bits de color - * + 32x32 a 4, 8 y 24 bits de color - * - "Pesar" exactamente 8.854 bytes. - * Este programa es muy simple así que no se molesta en comprobar el formato del fichero, - * únicamente comprueba su tamaño. Si metes un icono que no es adecuado.. allá tú.. - * Puede ser útil en el futuro currarnos un programa decente que soporte cualquier tipo - * de iconos, que cambiara el tamaño del exe, etc etc, ya sería la reostia, pero por - * ahora con esto nos sobra. - * Pekeño inconveniente: sólo se puede cambiar el icono 1 vez :p Si se kiere cambiar el - * icono por segunda vez, hay que recompilar el programa. En realidad no importa, ya que - * en verdad es lo que pasa en todos los compiladores... - * Si se kiere cambiar el icono y un virus te ha comido el ediv.exe o el .prg, pos tiras - * de Resource Hacker y a kaxkarla... - * - * Er_Makina - */ - -#include -#include -#include - -#include "image.h" - -#ifndef _WIN32 -#error IconChanger es sólamente para Win32 -#endif - -#define ICO_SIZE 8854 // Tamaño que debe tener el .ico -#define ICO_START 0x66 // Offset donde se empieza a leer el .ico -#define ICO_LEN 0x2230 // Tamaño del bloque a copiar del .ico al .exe - - -void* e_malloc(size_t size) -{ - void* ret; - - if(!(ret = malloc(size))) { - printf("ERROR: Memoria insuficiente.\n\n"); - exit(1); - } - - return ret; -} - -int main(int argc, char* argv[]) -{ - FILE* f; - unsigned char *exe,*ico; - int tamanyo; - int i,j; - int ok=0; - - printf("eDIV IconChanger - (c) Copyleft Sion Ltd. 2002\n\n"); - if(argc!=3) { - printf("Modo de uso:\n\n %s \n\n",argv[0]); - exit(2); - } - - if((f=fopen(argv[2],"rb"))==NULL) { - printf("ERROR: No puedo abrir %s\n\n",argv[2]); - exit(3); - } - - fseek(f,0,SEEK_END); - tamanyo=ftell(f); - if(tamanyo!=ICO_SIZE) { - fclose(f); - printf("ERROR: El icono no es del formato válido\n\n"); - printf("Te refrescaré la memoria:\nEl icono (.ico) DEBE contener 6 imágenes en total, a saber:\n"); - printf(" - 3 imágenes de 16x16 (a 4, 8 y 24 bits de color).\n"); - printf(" - 3 imágenes de 32x32 (a 4, 8 y 24 bits de color).\n"); - printf("No puede faltar ninguna, ya que el archivo debe ocupar EXACTAMENTE %d bytes.\n\n",ICO_SIZE); - exit(4); - } - - ico=(unsigned char*)e_malloc(tamanyo); - fseek(f,0,SEEK_SET); - fread(ico,tamanyo,1,f); - fclose(f); - - if((f=fopen(argv[1],"rb"))==NULL) { - printf("ERROR: No puedo abrir %s\n\n",argv[1]); - exit(5); - } - - fseek(f,0,SEEK_END); - tamanyo=ftell(f); - fseek(f,0,SEEK_SET); - exe=(unsigned char*)e_malloc(tamanyo); /* no creo ke pase nada por unos 125 kb... - eso si, cuando se puedan meter el PAK y - las DLL's en el exe, va a haber ke cambiar - esto... */ - fread(exe,tamanyo,1,f); - fclose(f); - - // BUSKEDA - - printf("Buscando sitio donde meter mano en el exe...\n"); - - for(i=20;i diff --git a/ediv/src/kdevelop/copying b/ediv/src/kdevelop/copying deleted file mode 100644 index efda5b4..0000000 --- a/ediv/src/kdevelop/copying +++ /dev/null @@ -1,280 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 675 Mass Ave, Cambridge, MA 02139, USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS diff --git a/ediv/src/kdevelop/ediv.kdevprj b/ediv/src/kdevelop/ediv.kdevprj deleted file mode 100644 index 6da2d01..0000000 --- a/ediv/src/kdevelop/ediv.kdevprj +++ /dev/null @@ -1,209 +0,0 @@ -[AUTHORS] -dist=true -install=false -install_location= -type=DATA -[COPYING] -dist=true -install=false -install_location= -type=DATA -[ChangeLog] -dist=true -install=false -install_location= -type=DATA -[Config for BinMakefileAm] -addcxxflags= -bin_program=ediv -cxxflags=-O0 -g3 -Wall -ldadd= -ldflags= -libtool_dir= -path_to_bin_program=../../bin -[General] -AMChanged=false -author=Sion Entertainment -configure_args=a.prg -debug_args=a.prg -dir_where_make_will_be_called=ediv/ -email=bugs@edivcentral.com -execute_args=a.prg -kdevprj_version=1.3 -lfv_open_groups=Fuentes -make_options=-j1 -makefiles=Makefile.am,ediv/Makefile.am,ediv/docs/Makefile.am,ediv/docs/en/Makefile.am,po/Makefile.am -modifyMakefiles=false -project_name=Ediv -project_type=normal_empty -short_info= -sub_dir=ediv/ -version=0.1 -version_control=None -workspace=1 -[INSTALL] -dist=true -install=false -install_location= -type=DATA -[LFV Groups] -Cabeceras=*.h,*.hh,*.hxx,*.hpp,*.H -Fuentes=*.cpp,*.c,*.cc,*.C,*.cxx,*.ec,*.ecpp,*.lxx,*.l++,*.ll,*.l -GNU=AUTHORS,COPYING,ChangeLog,INSTALL,README,TODO,NEWS -Interfaz de usuario=*.kdevdlg,*.ui,*.rc -Otros=* -groups=Cabeceras,Fuentes,Interfaz de usuario,GNU,Otros -[Makefile.am] -files=ediv.kdevprj,AUTHORS,COPYING,ChangeLog,INSTALL,README,TODO,ediv.lsm -sub_dirs=ediv -type=normal -[README] -dist=true -install=false -install_location= -type=DATA -[TODO] -dist=true -install=false -install_location= -type=DATA -[Workspace_1] -browser_file=file:/mnt/d/Musica/Letras/Bares1.html -cpp_file=/home/ermaki/ediv/src/ediv/expresion.c -header_file=SinNombre.h -openfiles=SinNombre.h,SinNombre.cpp,/home/ermaki/ediv/src/ediv/ediv.c,/home/ermaki/ediv/src/ediv/listados.c,/home/ermaki/ediv/src/ediv/compiler.c,/home/ermaki/ediv/src/ediv/expresion.c,/home/ermaki/ediv/src/ediv/parser.c -show_outputview=true -show_treeview=true -[ediv.kdevprj] -dist=true -install=false -install_location= -type=DATA -[ediv.lsm] -dist=true -install=false -install_location= -type=DATA -[ediv/Makefile] -dist=true -install=false -install_location= -type=DATA -[ediv/Makefile.am] -files=ediv/expresion.c,ediv/_ml.c,ediv/_ml.h,ediv/compiler.c,ediv/compiler.h,ediv/ediv.c,ediv/ediv_export.c,ediv/encrypt.c,ediv/encrypt.h,ediv/extern.h,ediv/lower.c,ediv/lower.h,ediv/ltlex.c,ediv/main.h,ediv/parser.c,ediv/parser.h,ediv/Makefile,ediv/expresion.h,ediv/modulos.c,ediv/modulos.h,ediv/listados.c,ediv/listados.h -sub_dirs= -type=prog_main -[ediv/_ml.c] -dist=true -install=false -install_location= -type=SOURCE -[ediv/_ml.h] -dist=true -install=false -install_location= -type=HEADER -[ediv/compiler.c] -dist=true -install=false -install_location= -type=SOURCE -[ediv/compiler.h] -dist=true -install=false -install_location= -type=HEADER -[ediv/docs/Makefile.am] -sub_dirs= -type=normal -[ediv/docs/en/Makefile.am] -sub_dirs= -type=normal -[ediv/ediv.c] -dist=true -install=false -install_location= -type=SOURCE -[ediv/ediv_export.c] -dist=true -install=false -install_location= -type=SOURCE -[ediv/encrypt.c] -dist=true -install=false -install_location= -type=SOURCE -[ediv/encrypt.h] -dist=true -install=false -install_location= -type=HEADER -[ediv/expresion.c] -dist=true -install=false -install_location= -type=SOURCE -[ediv/expresion.h] -dist=true -install=false -install_location= -type=HEADER -[ediv/extern.h] -dist=true -install=false -install_location= -type=HEADER -[ediv/listados.c] -dist=true -install=false -install_location= -type=SOURCE -[ediv/listados.h] -dist=true -install=false -install_location= -type=HEADER -[ediv/lower.c] -dist=true -install=false -install_location= -type=SOURCE -[ediv/lower.h] -dist=true -install=false -install_location= -type=HEADER -[ediv/ltlex.c] -dist=true -install=false -install_location= -type=SOURCE -[ediv/main.h] -dist=true -install=false -install_location= -type=HEADER -[ediv/modulos.c] -dist=true -install=false -install_location= -type=SOURCE -[ediv/modulos.h] -dist=true -install=false -install_location= -type=HEADER -[ediv/parser.c] -dist=true -install=false -install_location= -type=SOURCE -[ediv/parser.h] -dist=true -install=false -install_location= -type=HEADER -[po/Makefile.am] -sub_dirs= -type=po diff --git a/ediv/src/kdevelop/ediv.lsm b/ediv/src/kdevelop/ediv.lsm deleted file mode 100644 index aaad37a..0000000 --- a/ediv/src/kdevelop/ediv.lsm +++ /dev/null @@ -1,14 +0,0 @@ -Begin3 -Title: Ediv -Version: 0.1 -Entered-date: -Description: -Keywords: -Author: Sion Entertainment -Maintained-by: Sion Entertainment -Primary-site: -Home-page: http:// -Original-site: -Platforms: Linux and other Unices -Copying-policy: GNU Public License -End diff --git a/ediv/src/kdevelop/install b/ediv/src/kdevelop/install deleted file mode 100644 index b683bb6..0000000 --- a/ediv/src/kdevelop/install +++ /dev/null @@ -1,167 +0,0 @@ -Basic Installation -================== - - These are generic installation instructions. - - The `configure' shell script attempts to guess correct values for -various system-dependent variables used during compilation. It uses -those values to create a `Makefile' in each directory of the package. -It may also create one or more `.h' files containing system-dependent -definitions. Finally, it creates a shell script `config.status' that -you can run in the future to recreate the current configuration, a file -`config.cache' that saves the results of its tests to speed up -reconfiguring, and a file `config.log' containing compiler output -(useful mainly for debugging `configure'). - - If you need to do unusual things to compile the package, please try -to figure out how `configure' could check whether to do them, and mail -diffs or instructions to the address given in the `README' so they can -be considered for the next release. If at some point `config.cache' -contains results you don't want to keep, you may remove or edit it. - - The file `configure.in' is used to create `configure' by a program -called `autoconf'. You only need `configure.in' if you want to change -it or regenerate `configure' using a newer version of `autoconf'. - -The simplest way to compile this package is: - - 1. `cd' to the directory containing the package's source code and type - `./configure' to configure the package for your system. If you're - using `csh' on an old version of System V, you might need to type - `sh ./configure' instead to prevent `csh' from trying to execute - `configure' itself. - - Running `configure' takes a while. While running, it prints some - messages telling which features it is checking for. - - 2. Type `make' to compile the package. - - 3. Type `make install' to install the programs and any data files and - documentation. - - 4. You can remove the program binaries and object files from the - source code directory by typing `make clean'. - -Compilers and Options -===================== - - Some systems require unusual options for compilation or linking that -the `configure' script does not know about. You can give `configure' -initial values for variables by setting them in the environment. Using -a Bourne-compatible shell, you can do that on the command line like -this: - CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure - -Or on systems that have the `env' program, you can do it like this: - env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure - -Compiling For Multiple Architectures -==================================== - - You can compile the package for more than one kind of computer at the -same time, by placing the object files for each architecture in their -own directory. To do this, you must use a version of `make' that -supports the `VPATH' variable, such as GNU `make'. `cd' to the -directory where you want the object files and executables to go and run -the `configure' script. `configure' automatically checks for the -source code in the directory that `configure' is in and in `..'. - - If you have to use a `make' that does not supports the `VPATH' -variable, you have to compile the package for one architecture at a time -in the source code directory. After you have installed the package for -one architecture, use `make distclean' before reconfiguring for another -architecture. - -Installation Names -================== - - By default, `make install' will install the package's files in -`/usr/local/bin', `/usr/local/man', etc. You can specify an -installation prefix other than `/usr/local' by giving `configure' the -option `--prefix=PATH'. - - You can specify separate installation prefixes for -architecture-specific files and architecture-independent files. If you -give `configure' the option `--exec-prefix=PATH', the package will use -PATH as the prefix for installing programs and libraries. -Documentation and other data files will still use the regular prefix. - - If the package supports it, you can cause programs to be installed -with an extra prefix or suffix on their names by giving `configure' the -option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. - -Optional Features -================= - - Some packages pay attention to `--enable-FEATURE' options to -`configure', where FEATURE indicates an optional part of the package. -They may also pay attention to `--with-PACKAGE' options, where PACKAGE -is something like `gnu-as' or `x' (for the X Window System). The -`README' should mention any `--enable-' and `--with-' options that the -package recognizes. - - For packages that use the X Window System, `configure' can usually -find the X include and library files automatically, but if it doesn't, -you can use the `configure' options `--x-includes=DIR' and -`--x-libraries=DIR' to specify their locations. - -Specifying the System Type -========================== - - There may be some features `configure' can not figure out -automatically, but needs to determine by the type of host the package -will run on. Usually `configure' can figure that out, but if it prints -a message saying it can not guess the host type, give it the -`--host=TYPE' option. TYPE can either be a short name for the system -type, such as `sun4', or a canonical name with three fields: - CPU-COMPANY-SYSTEM - -See the file `config.sub' for the possible values of each field. If -`config.sub' isn't included in this package, then this package doesn't -need to know the host type. - - If you are building compiler tools for cross-compiling, you can also -use the `--target=TYPE' option to select the type of system they will -produce code for and the `--build=TYPE' option to select the type of -system on which you are compiling the package. - -Sharing Defaults -================ - - If you want to set default values for `configure' scripts to share, -you can create a site shell script called `config.site' that gives -default values for variables like `CC', `cache_file', and `prefix'. -`configure' looks for `PREFIX/share/config.site' if it exists, then -`PREFIX/etc/config.site' if it exists. Or, you can set the -`CONFIG_SITE' environment variable to the location of the site script. -A warning: not all `configure' scripts look for a site script. - -Operation Controls -================== - - `configure' recognizes the following options to control how it -operates. - -`--cache-file=FILE' - Use and save the results of the tests in FILE instead of - `./config.cache'. Set FILE to `/dev/null' to disable caching, for - debugging `configure'. - -`--help' - Print a summary of the options to `configure', and exit. - -`--quiet' -`--silent' -`-q' - Do not print messages saying which checks are being made. - -`--srcdir=DIR' - Look for the package's source code in directory DIR. Usually - `configure' can determine that directory automatically. - -`--version' - Print the version of Autoconf used to generate the `configure' - script, and exit. - -`configure' also accepts some other, not widely useful, options. - diff --git a/ediv/src/kdevelop/readme b/ediv/src/kdevelop/readme deleted file mode 100644 index 4c0d52d..0000000 --- a/ediv/src/kdevelop/readme +++ /dev/null @@ -1 +0,0 @@ - diff --git a/ediv/src/kdevelop/stub.kdevprj b/ediv/src/kdevelop/stub.kdevprj deleted file mode 100644 index 42ab48e..0000000 --- a/ediv/src/kdevelop/stub.kdevprj +++ /dev/null @@ -1,53 +0,0 @@ -[Config for BinMakefileAm] -bin_program=stub -cxxflags=-O0 -g3 -Wall -ldflags= -[General] -author=Sion Entertainment -email=bugs@edivcentral.com -kdevprj_version=1.3 -lfv_open_groups=Cabeceras,Fuentes -makefiles=Makefile.am,stub/Makefile.am,stub/docs/Makefile.am,stub/docs/en/Makefile.am,po/Makefile.am -project_name=Stub -project_type=normal_empty -sub_dir=stub/ -version=0.1 -version_control=None -[LFV Groups] -Cabeceras=*.h,*.hh,*.hxx,*.hpp,*.H -Fuentes=*.cpp,*.c,*.cc,*.C,*.cxx,*.ec,*.ecpp,*.lxx,*.l++,*.ll,*.l -Interfaz de usuario=*.kdevdlg,*.ui,*.rc -Otros=* -groups=Cabeceras,Fuentes,Interfaz de usuario,Otros -[Makefile.am] -files=stub.kdevprj -sub_dirs=stub -type=normal -[po/Makefile.am] -sub_dirs= -type=po -[stub.kdevprj] -dist=true -install=false -install_location= -type=DATA -[stub/Makefile.am] -files=stub/stub.c,stub/main.h -sub_dirs= -type=prog_main -[stub/docs/Makefile.am] -sub_dirs= -type=normal -[stub/docs/en/Makefile.am] -sub_dirs= -type=normal -[stub/main.h] -dist=true -install=false -install_location= -type=HEADER -[stub/stub.c] -dist=true -install=false -install_location= -type=SOURCE diff --git a/ediv/src/kdevelop/todo b/ediv/src/kdevelop/todo deleted file mode 100644 index 4c0d52d..0000000 --- a/ediv/src/kdevelop/todo +++ /dev/null @@ -1 +0,0 @@ - diff --git a/ediv/src/visual c/ediv_ws.sln b/ediv/src/visual c/ediv_ws.sln index 8dfdae3..13c7304 100644 --- a/ediv/src/visual c/ediv_ws.sln +++ b/ediv/src/visual c/ediv_ws.sln @@ -1,16 +1,10 @@ Microsoft Visual Studio Solution File, Format Version 7.00 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "b2f", "..\bmp2fnt\b2f.vcproj", "{EBA9C0C6-5748-4480-A478-8F5C213BB1CE}" -EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "encrypt", "encrypt\encrypt.vcproj", "{77065768-F682-4204-B28D-33B4C223B86A}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "stub", "stub\stub.vcproj", "{031F4A82-8932-473D-8B8E-58117559261C}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "doku", "doku\doku.vcproj", "{3C2A1D98-F824-47C0-8118-9B7B6BAD0A93}" -EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ediv", "ediv\ediv.vcproj", "{43BB24AC-97C9-42A5-996C-3C2EBE5B3FE1}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "iconchanger", "iconchanger\iconchanger.vcproj", "{510122F8-EE04-4E05-95C3-BCF6BBF7B991}" -EndProject Global GlobalSection(SolutionConfiguration) = preSolution ConfigName.0 = Debug @@ -21,14 +15,6 @@ Global GlobalSection(ProjectDependencies) = postSolution EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution - {EBA9C0C6-5748-4480-A478-8F5C213BB1CE}.Debug.ActiveCfg = Debug|Win32 - {EBA9C0C6-5748-4480-A478-8F5C213BB1CE}.Debug.Build.0 = Debug|Win32 - {EBA9C0C6-5748-4480-A478-8F5C213BB1CE}.Debug con trazador.ActiveCfg = Debug|Win32 - {EBA9C0C6-5748-4480-A478-8F5C213BB1CE}.Debug con trazador.Build.0 = Debug|Win32 - {EBA9C0C6-5748-4480-A478-8F5C213BB1CE}.Release.ActiveCfg = Release|Win32 - {EBA9C0C6-5748-4480-A478-8F5C213BB1CE}.Release.Build.0 = Release|Win32 - {EBA9C0C6-5748-4480-A478-8F5C213BB1CE}.Release con trazador.ActiveCfg = Release|Win32 - {EBA9C0C6-5748-4480-A478-8F5C213BB1CE}.Release con trazador.Build.0 = Release|Win32 {77065768-F682-4204-B28D-33B4C223B86A}.Debug.ActiveCfg = Debug|Win32 {77065768-F682-4204-B28D-33B4C223B86A}.Debug.Build.0 = Debug|Win32 {77065768-F682-4204-B28D-33B4C223B86A}.Debug con trazador.ActiveCfg = Debug|Win32 @@ -45,14 +31,6 @@ Global {031F4A82-8932-473D-8B8E-58117559261C}.Release.Build.0 = Release|Win32 {031F4A82-8932-473D-8B8E-58117559261C}.Release con trazador.ActiveCfg = Release con trazador|Win32 {031F4A82-8932-473D-8B8E-58117559261C}.Release con trazador.Build.0 = Release con trazador|Win32 - {3C2A1D98-F824-47C0-8118-9B7B6BAD0A93}.Debug.ActiveCfg = Debug|Win32 - {3C2A1D98-F824-47C0-8118-9B7B6BAD0A93}.Debug.Build.0 = Debug|Win32 - {3C2A1D98-F824-47C0-8118-9B7B6BAD0A93}.Debug con trazador.ActiveCfg = Debug|Win32 - {3C2A1D98-F824-47C0-8118-9B7B6BAD0A93}.Debug con trazador.Build.0 = Debug|Win32 - {3C2A1D98-F824-47C0-8118-9B7B6BAD0A93}.Release.ActiveCfg = Release|Win32 - {3C2A1D98-F824-47C0-8118-9B7B6BAD0A93}.Release.Build.0 = Release|Win32 - {3C2A1D98-F824-47C0-8118-9B7B6BAD0A93}.Release con trazador.ActiveCfg = Release|Win32 - {3C2A1D98-F824-47C0-8118-9B7B6BAD0A93}.Release con trazador.Build.0 = Release|Win32 {43BB24AC-97C9-42A5-996C-3C2EBE5B3FE1}.Debug.ActiveCfg = Debug|Win32 {43BB24AC-97C9-42A5-996C-3C2EBE5B3FE1}.Debug.Build.0 = Debug|Win32 {43BB24AC-97C9-42A5-996C-3C2EBE5B3FE1}.Debug con trazador.ActiveCfg = Debug|Win32 @@ -61,14 +39,6 @@ Global {43BB24AC-97C9-42A5-996C-3C2EBE5B3FE1}.Release.Build.0 = Release|Win32 {43BB24AC-97C9-42A5-996C-3C2EBE5B3FE1}.Release con trazador.ActiveCfg = Release|Win32 {43BB24AC-97C9-42A5-996C-3C2EBE5B3FE1}.Release con trazador.Build.0 = Release|Win32 - {510122F8-EE04-4E05-95C3-BCF6BBF7B991}.Debug.ActiveCfg = Debug|Win32 - {510122F8-EE04-4E05-95C3-BCF6BBF7B991}.Debug.Build.0 = Debug|Win32 - {510122F8-EE04-4E05-95C3-BCF6BBF7B991}.Debug con trazador.ActiveCfg = Debug|Win32 - {510122F8-EE04-4E05-95C3-BCF6BBF7B991}.Debug con trazador.Build.0 = Debug|Win32 - {510122F8-EE04-4E05-95C3-BCF6BBF7B991}.Release.ActiveCfg = Release|Win32 - {510122F8-EE04-4E05-95C3-BCF6BBF7B991}.Release.Build.0 = Release|Win32 - {510122F8-EE04-4E05-95C3-BCF6BBF7B991}.Release con trazador.ActiveCfg = Release|Win32 - {510122F8-EE04-4E05-95C3-BCF6BBF7B991}.Release con trazador.Build.0 = Release|Win32 EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution EndGlobalSection diff --git a/ediv/src/visual c/ediv_ws.suo b/ediv/src/visual c/ediv_ws.suo index 8c266cc..2a391a5 100644 Binary files a/ediv/src/visual c/ediv_ws.suo and b/ediv/src/visual c/ediv_ws.suo differ diff --git a/ediv/trazador/Trazador.dsp b/ediv/trazador/Trazador.dsp deleted file mode 100644 index ee33f43..0000000 --- a/ediv/trazador/Trazador.dsp +++ /dev/null @@ -1,157 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Trazador" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Application" 0x0101 - -CFG=Trazador - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "Trazador.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "Trazador.mak" CFG="Trazador - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "Trazador - Win32 Release" (based on "Win32 (x86) Application") -!MESSAGE "Trazador - Win32 Debug" (based on "Win32 (x86) Application") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -MTL=midl.exe -RSC=rc.exe - -!IF "$(CFG)" == "Trazador - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I "$(QTDIR)\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "QT_DLL" /D "QT_THREAD_SUPPORT" /YX /FD /c -# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 -# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 -# ADD BASE RSC /l 0x40a /d "NDEBUG" -# ADD RSC /l 0x40a /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 -# ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib wsock32.lib $(QTDIR)\lib\qt-mt230nc.lib $(QTDIR)\lib\qtmain.lib /nologo /subsystem:windows /machine:I386 /out:"../bin/dll/debug.dll" - -!ELSEIF "$(CFG)" == "Trazador - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "Debug" -# PROP Intermediate_Dir "Debug" -# PROP Ignore_Export_Lib 1 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /GZ /c -# ADD CPP /nologo /MD /W3 /Gm /GX /ZI /Od /I "$(QTDIR)\include" /I "..\src\dlls" /I "..\src\kwrite" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "QT_DLL" /D "QT_THREAD_SUPPORT" /D "_USRDLL" /FR /YX /FD /GZ /c -# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 -# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 -# ADD BASE RSC /l 0x40a /d "_DEBUG" -# ADD RSC /l 0x40a /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept -# ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib wsock32.lib $(QTDIR)\lib\qt-mt230nc.lib $(QTDIR)\lib\qtmain.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:"../bin/dll/debug.dll" /pdbtype:sept -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "Trazador - Win32 Release" -# Name "Trazador - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat;for;f90" -# Begin Source File - -SOURCE=.\main.cpp -# End Source File -# Begin Source File - -SOURCE=.\moc_trazadorwindow.cpp -# End Source File -# Begin Source File - -SOURCE=.\trazador.def -# End Source File -# Begin Source File - -SOURCE=.\trazadorwindow.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd" -# Begin Source File - -SOURCE=..\src\dlls\export.h -# End Source File -# Begin Source File - -SOURCE=.\trazadorwindow.h - -!IF "$(CFG)" == "Trazador - Win32 Release" - -# PROP Ignore_Default_Tool 1 -# Begin Custom Build - Moc'ing $(InputName).h ... -InputDir=. -InputPath=.\trazadorwindow.h -InputName=trazadorwindow - -"$(InputDir)\moc_$(InputName).cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - %qtdir%\bin\moc.exe $(InputDir)\$(InputName).h -o $(InputDir)\moc_$(InputName).cpp - -# End Custom Build - -!ELSEIF "$(CFG)" == "Trazador - Win32 Debug" - -# PROP Ignore_Default_Tool 1 -# Begin Custom Build - Moc'ing $(InputName).h ... -InputDir=. -InputPath=.\trazadorwindow.h -InputName=trazadorwindow - -"$(InputDir)\moc_$(InputName).cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - %qtdir%\bin\moc.exe $(InputDir)\$(InputName).h -o $(InputDir)\moc_$(InputName).cpp - -# End Custom Build - -!ENDIF - -# End Source File -# End Group -# Begin Group "Resource Files" - -# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe" -# End Group -# End Target -# End Project diff --git a/ediv/trazador/main.cpp b/ediv/trazador/main.cpp deleted file mode 100644 index fd96171..0000000 --- a/ediv/trazador/main.cpp +++ /dev/null @@ -1,77 +0,0 @@ -#include - -#include -#include -#include -#include -#include "trazadorwindow.h" - - -struct _slin { - int inicio, final; - int fila1, columna1; - int fila2, columna2; -} *slin; - -int linsize; - - -void trace(int imem, char* nombreprg, int* lin, void* dbg) -{ - return; -} - - -void debug(int imem, char* nombreprg, int* lin, void* dbg) -{ - static int dummy=1; - static char* dummy2="debug"; - int i,j,k,l,c; - - QApplication app(dummy,&dummy2); - - app.setStyle( new QPlatinumStyle ); - - TrazadorWindow window; - app.setMainWidget(&window); - - //assert(0); - - if(!window.CargaListado(nombreprg)) - app.quit(); - - linsize=lin[0]/sizeof(struct _slin); - slin=(struct _slin*)&lin[1]; - - for(i=0;i=imem) { - //window.listado->setSelection(slin[i].fila1,slin[i].columna1+1,slin[i].fila2,slin[i].columna2+1); - j=k=l=c=0; - if(slin[i].fila1>0) - for(;jtext().length();j++) { - if(window.listado->text().at(j)=='\n') { - l++; - if(l==slin[i].fila1) break; - } - } - window.listado->text().ref(j+slin[i].columna1)='#'; - - break; - } - } - window.show(); - - app.exec(); -} - -int ExportaFuncs(EXPORTAFUNCS_PARAMS) -{ - void (*traceptr)(int mem, char* nombreprg, int* lin, void* dbg); - void (*debugptr)(int mem, char* nombreprg, int* lin, void* dbg); - traceptr=trace; - debugptr=debug; - PRIORITY(-512); - EDIV_Export_Entrypoint(EDIV_trace,traceptr); - EDIV_Export_Entrypoint(EDIV_debug,debugptr); - return TRUE; -} diff --git a/ediv/trazador/moc_trazadorwindow.cpp b/ediv/trazador/moc_trazadorwindow.cpp deleted file mode 100644 index cec12d0..0000000 --- a/ediv/trazador/moc_trazadorwindow.cpp +++ /dev/null @@ -1,72 +0,0 @@ -/**************************************************************************** -** TrazadorWindow meta object code from reading C++ file 'trazadorwindow.h' -** -** Created: Sat Feb 23 19:15:50 2002 -** by: The Qt MOC ($Id$) -** -** WARNING! All changes made in this file will be lost! -*****************************************************************************/ - -#define Q_MOC_TrazadorWindow -#if !defined(Q_MOC_OUTPUT_REVISION) -#define Q_MOC_OUTPUT_REVISION 8 -#elif Q_MOC_OUTPUT_REVISION != 8 -#error "Moc format conflict - please regenerate all moc files" -#endif - -#include "trazadorwindow.h" -#include -#include - -#if defined(Q_SPARCWORKS_FUNCP_BUG) -#define Q_AMPERSAND -#else -#define Q_AMPERSAND & -#endif - - -const char *TrazadorWindow::className() const -{ - return "TrazadorWindow"; -} - -QMetaObject *TrazadorWindow::metaObj = 0; - -void TrazadorWindow::initMetaObject() -{ - if ( metaObj ) - return; - if ( strcmp(QMainWindow::className(), "QMainWindow") != 0 ) - badSuperclassWarning("TrazadorWindow","QMainWindow"); - (void) staticMetaObject(); -} - -#ifndef QT_NO_TRANSLATION -QString TrazadorWindow::tr(const char* s) -{ - return ((QNonBaseApplication*)qApp)->translate("TrazadorWindow",s); -} - -#endif // QT_NO_TRANSLATION -QMetaObject* TrazadorWindow::staticMetaObject() -{ - if ( metaObj ) - return metaObj; - (void) QMainWindow::staticMetaObject(); -#ifndef QT_NO_PROPERTIES -#endif // QT_NO_PROPERTIES - QMetaData::Access *slot_tbl_access = 0; - metaObj = QMetaObject::new_metaobject( - "TrazadorWindow", "QMainWindow", - 0, 0, - 0, 0, -#ifndef QT_NO_PROPERTIES - 0, 0, - 0, 0, -#endif // QT_NO_PROPERTIES - 0, 0 ); - metaObj->set_slot_access( slot_tbl_access ); -#ifndef QT_NO_PROPERTIES -#endif // QT_NO_PROPERTIES - return metaObj; -} diff --git a/ediv/trazador/progedit.cpp b/ediv/trazador/progedit.cpp deleted file mode 100644 index 473a0f4..0000000 diff --git a/ediv/trazador/progedit.h b/ediv/trazador/progedit.h deleted file mode 100644 index 8242023..0000000 --- a/ediv/trazador/progedit.h +++ /dev/null @@ -1,9 +0,0 @@ -/*#include - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/ediv/trazador/trazador.opt b/ediv/trazador/trazador.opt deleted file mode 100644 index ddc6d8c..0000000 Binary files a/ediv/trazador/trazador.opt and /dev/null differ diff --git a/ediv/trazador/trazador.plg b/ediv/trazador/trazador.plg deleted file mode 100644 index fe9e2fc..0000000 --- a/ediv/trazador/trazador.plg +++ /dev/null @@ -1,40 +0,0 @@ - - -
    -

    Build Log

    -

    ---------------------Configuration: Trazador - Win32 Debug-------------------- -

    -

    Command Lines

    -Creating temporary file "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSPDD.tmp" with contents -[ -/nologo /MD /W3 /Gm /GX /ZI /Od /I "d:\Qt\include" /I "..\src\dlls" /I "..\src\kwrite" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "QT_DLL" /D "QT_THREAD_SUPPORT" /D "_USRDLL" /FR"Debug/" /Fp"Debug/Trazador.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c -"D:\ediv\trazador\main.cpp" -"D:\ediv\trazador\moc_trazadorwindow.cpp" -"D:\ediv\trazador\trazadorwindow.cpp" -] -Creating command line "cl.exe @C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSPDD.tmp" -Creating temporary file "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSPDE.tmp" with contents -[ -kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib wsock32.lib d:\Qt\lib\qt-mt230nc.lib d:\Qt\lib\qtmain.lib /nologo /subsystem:windows /dll /incremental:yes /pdb:"Debug/debug.pdb" /debug /machine:I386 /def:".\trazador.def" /out:"../bin/dll/debug.dll" /implib:"Debug/debug.lib" /pdbtype:sept -.\Debug\main.obj -.\Debug\moc_trazadorwindow.obj -.\Debug\trazadorwindow.obj -] -Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSPDE.tmp" -

    Output Window

    -Compiling... -main.cpp -d:\ediv\trazador\main.cpp(51) : warning C4018: '<' : signed/unsigned mismatch -moc_trazadorwindow.cpp -trazadorwindow.cpp -Linking... - Creating library Debug/debug.lib and object Debug/debug.exp - - - -

    Results

    -debug.dll - 0 error(s), 1 warning(s) -
    - - diff --git a/ediv/trazador/trazadorwindow.cpp b/ediv/trazador/trazadorwindow.cpp deleted file mode 100644 index 1e51636..0000000 --- a/ediv/trazador/trazadorwindow.cpp +++ /dev/null @@ -1,149 +0,0 @@ -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "trazadorwindow.h" - - -TrazadorWindow::TrazadorWindow( QWidget* parent, const char* name, WFlags f ) - : QMainWindow( parent, name, f ) -{ - buffer_listado=0; - - setCaption("eDIV - Trazador de programas"); - - QBoxLayout *vlayout1 = new QVBoxLayout(this,2); - QGridLayout *glayout1 = new QGridLayout(vlayout1,0,0,10); - //vlayout1->addLayout(glayout1); - QLabel *labNumProcesos = new QLabel(this); - glayout1->addWidget(labNumProcesos,0,0); - labNumProcesos->setText("0/0 Procesos"); - QLabel *labIdProceso = new QLabel(this); - glayout1->addWidget(labIdProceso,0,1); - labIdProceso->setText("Id Proceso: 0 Normal"); - - QListView *listProcesos = new QListView(this); - listProcesos->addColumn("Proceso"); - listProcesos->addColumn("Id"); - listProcesos->addColumn("Estado"); - listProcesos->addColumn("Frame"); - glayout1->addWidget(listProcesos,1,0); - - QBoxLayout *vlayout2 = new QVBoxLayout(this,3); - glayout1->addLayout(vlayout2,1,1); - QLabel *labNombreProceso = new QLabel(this); - vlayout2->addWidget(labNombreProceso,0); - labNombreProceso->setText("NombreProceso"); - labNombreProceso->setFrameShape(QFrame::Panel); - labNombreProceso->setFrameShadow(QFrame::Sunken); - - QBoxLayout *hlayout1 = new QHBoxLayout(this,3); - vlayout2->addLayout(hlayout1,1); - QLabel *labSprite = new QLabel(this); - hlayout1->addWidget(labSprite,0); - labSprite->setBackgroundColor(Qt::black); - labSprite->setMinimumSize(128,128); - labSprite->setMaximumSize(128,128); - QLayoutItem *spacer1 = new QSpacerItem(50,128,QSizePolicy::Fixed,QSizePolicy::Fixed); - hlayout1->addItem(spacer1); - - QBoxLayout *vlayout3 = new QVBoxLayout(this,2); - hlayout1->addLayout(vlayout3,2); - QPushButton *btnVerDatos = new QPushButton("Ver datos",this); - vlayout3->addWidget(btnVerDatos,0); - btnVerDatos->setSizePolicy(QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed)); - QLabel *labInfoProceso = new QLabel(this); - vlayout3->addWidget(labInfoProceso,1); - labInfoProceso->setText("x=0\ny=0\npantalla\nnormal"); - labInfoProceso->setAlignment(Qt::AlignCenter); - - QBoxLayout *hlayout2 = new QHBoxLayout(this,3); - vlayout2->addLayout(hlayout2,2); - //QLayoutItem *spacer2 = new QSpacerItem(2,2,QSizePolicy::Maximum,QSizePolicy::Preferred); - //hlayout2->addItem(spacer2); - QPushButton *btnPerfiles = new QPushButton("Perfiles",this); - hlayout2->addWidget(btnPerfiles,0); - btnPerfiles->setSizePolicy(QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed)); - QPushButton *btnEjecProceso = new QPushButton("Ejecutar Proceso",this); - hlayout2->addWidget(btnEjecProceso,1); - btnEjecProceso->setSizePolicy(QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed)); - QPushButton *btnSigFrame = new QPushButton("Siguiente Frame",this); - hlayout2->addWidget(btnSigFrame,2); - btnSigFrame->setSizePolicy(QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed)); - - QBoxLayout *hlayout3 = new QHBoxLayout(this,2); - vlayout1->addLayout(hlayout3,1); - - QBoxLayout *vlayout4 = new QVBoxLayout(this,8); - hlayout3->addLayout(vlayout4,0); - QLabel *labIdProceso2 = new QLabel(this); - vlayout4->addWidget(labIdProceso2,0); - labIdProceso2->setText("0"); - labIdProceso2->setFrameShape(QFrame::Panel); - labIdProceso2->setFrameShadow(QFrame::Sunken); - QLayoutItem *spacer3 = new QSpacerItem(2,10,QSizePolicy::Fixed,QSizePolicy::Fixed); - vlayout4->addItem(spacer3); - QPushButton *btnIrA = new QPushButton("Ir a...",this); - vlayout4->addWidget(btnIrA); - QPushButton *btnRuptura = new QPushButton("Ruptura",this); - vlayout4->addWidget(btnRuptura); - QPushButton *btnAqui = new QPushButton("¡Aquí!",this); - vlayout4->addWidget(btnAqui); - QPushButton *btnTrazar = new QPushButton("Trazar",this); - vlayout4->addWidget(btnTrazar); - QPushButton *btnPaso = new QPushButton("Paso",this); - vlayout4->addWidget(btnPaso); - QLayoutItem *spacer4 = new QSpacerItem(2,10,QSizePolicy::Fixed,QSizePolicy::Expanding); - vlayout4->addItem(spacer4); - - listado = new QTextView(this); - hlayout3->addWidget(listado,1); - listado->setFont(QFont("courier",10)); - //listado->setReadOnly(TRUE); - -} - -TrazadorWindow::~TrazadorWindow() -{ - if(buffer_listado) free(buffer_listado); -} - -int TrazadorWindow::CargaListado(char* archivo) -{ - FILE* f; - int tam; - - if((f=fopen(archivo,"r"))==NULL) { - QString mensaje="No se encuentra "; - mensaje += archivo; - QMessageBox *mb = new QMessageBox("Error",mensaje,QMessageBox::Critical,QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton); - mb->exec(); - return 0; - } - - fseek(f,0,SEEK_END); - tam=ftell(f); - fseek(f,0,SEEK_SET); - - if((buffer_listado=(char*)malloc(tam))==NULL) { - fclose(f); - QMessageBox *mb = new QMessageBox("Error","Memoria insuficiente",QMessageBox::Critical,QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton); - mb->exec(); - return 0; - } - - fread(buffer_listado,1,tam,f); - fclose(f); - - listado->setText(buffer_listado); - - return tam; -} diff --git a/ediv/trazador/trazadorwindow.h b/ediv/trazador/trazadorwindow.h deleted file mode 100644 index e5e4e6f..0000000 --- a/ediv/trazador/trazadorwindow.h +++ /dev/null @@ -1,19 +0,0 @@ -#include -#include - - -class TrazadorWindow : public QMainWindow -{ - Q_OBJECT -public: - TrazadorWindow( QWidget* parent = 0, const char* name = 0, WFlags f = WType_TopLevel ); - ~TrazadorWindow(); - - int CargaListado(char* archivo); - QTextView *listado; - -private: - - char* buffer_listado; -}; -