¿ No tenéis ninguna duda sobre el ?.
Vamos con una. Por ejemplo estuve buscando la clase Rect y con eso...
¿ No os habéis fijado en los listados de archivos de código en "C" la gran cantidad de archivos que tienen la palabra _temp.h ?.
Ah decir que son los archivo más grandes.
Ejemplo con la clase Rect:
Vamos al directorio..
Citar:
Y allí podemos encontrar con la palabra rect:
Citar:
Aparenta un archivo con extensión .c pequeño.
#define __CRECT_C
#include "gb_common.h"
#include "cpoint.h"
#include "crect.h"
#include "crect_temp.h"
IMPLEMENT_RECT_CLASS(CRECT, Rect, GB_INTEGER, int, "i", GB.ReturnInteger, ((CRECT *)_object), CPOINT, Point)
IMPLEMENT_RECT_CLASS(CRECTF, RectF, GB_FLOAT, double, "f", GB.ReturnFloat, ((CRECTF *)_object), CPOINTF, PointF)
#include "gb_common.h"
#include "cpoint.h"
#include "crect.h"
#include "crect_temp.h"
IMPLEMENT_RECT_CLASS(CRECT, Rect, GB_INTEGER, int, "i", GB.ReturnInteger, ((CRECT *)_object), CPOINT, Point)
IMPLEMENT_RECT_CLASS(CRECTF, RectF, GB_FLOAT, double, "f", GB.ReturnFloat, ((CRECTF *)_object), CPOINTF, PointF)
Un archivo: crect.h tampoco muy grande.
#ifndef __CRECT_H
#define __CRECT_H
#include "gambas.h"
#include "main.h"
#ifndef __CRECT_C
extern GB_DESC RectDesc[];
extern GB_DESC RectFDesc[];
#endif
typedef
struct {
GB_BASE ob;
int x;
int y;
int w;
int h;
}
PACKED
CRECT;
typedef
struct {
GB_BASE ob;
double x;
double y;
double w;
double h;
}
PACKED
CRECTF;
CRECT *CRECT_create(void);
CRECTF *CRECTF_create(void);
#endif
#define __CRECT_H
#include "gambas.h"
#include "main.h"
#ifndef __CRECT_C
extern GB_DESC RectDesc[];
extern GB_DESC RectFDesc[];
#endif
typedef
struct {
GB_BASE ob;
int x;
int y;
int w;
int h;
}
PACKED
CRECT;
typedef
struct {
GB_BASE ob;
double x;
double y;
double w;
double h;
}
PACKED
CRECTF;
CRECT *CRECT_create(void);
CRECTF *CRECTF_create(void);
#endif
Y el _temp.h no lo muestro que es muy grande.
Saludos!