83 lines
4.4 KiB
C
83 lines
4.4 KiB
C
///////////////////////////////////////////
|
|
/**/ /**///
|
|
/**/// Referencias [enlace global] /**///
|
|
/**/ /**///
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
/**/ /**/// //
|
|
/**/ extern void Abre_Ficha_Referencias(void);
|
|
/**/
|
|
/**/ int Existe_Referencia(int Referencia);
|
|
/**/ void BuscaReferencia(int Referencia);
|
|
/**/ void Carga_Referencias(void); /**/// //
|
|
/**/ /**/// //
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
/**/ /**/// //
|
|
/**/ /*extern*/ struct Ref_inx { /**/// //
|
|
/**/ unsigned int Fin; /**/// //
|
|
/**/ }; /**/// //
|
|
/**/ /**/// //
|
|
/**/ /*extern*/ struct Referencias { /**/// //
|
|
/**/ int Ref; char Concepto[20+1]; /**/// //
|
|
/**/ long P_und; int P1; long PVP; /**/// Estructuras de Datos. //
|
|
/**/ int P2; /**/// //
|
|
/**/ }; /**/// //
|
|
/**/ /**/// //
|
|
/**/ extern struct Ref_inx Ref1_inx; /**/// //
|
|
/**/ extern struct Referencias Ref1; /**/// //
|
|
/**/ /**/// //
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
/**/ /**/// //
|
|
/**/ /*extern*/ struct direccion { /**/// <- Para Memoria = 1 //
|
|
/**/ int Ref_inx_Ref; /**/// //
|
|
/**/ int Ref_inx_Addr; /**/// //
|
|
/**/ }; /**/// //
|
|
/**/ extern /**///
|
|
/**/ struct direccion far *Addr; /**///
|
|
/**/ /**/// //
|
|
/**/ extern int *Ref_inx_addr; /**/// <- Para Memoria = 0 //
|
|
/**/ /**/// //
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
/**/ /**/// //
|
|
/**/ extern int Ref_no_valid; /**/// Si nos quedamos sin memoria, //
|
|
/**/ extern char Memory_ok; /**/// usaremos un segundo enlaze que //
|
|
/**/ extern char Uso_de_la_Memoria; /**/// consume menos memoria a grandes //
|
|
/**/ /**/// cantidades de registros, que no //
|
|
/**/ /**/// es recomendable usar por debajo //
|
|
/**/ /**/// de los 5000 registros de 4 bytes//
|
|
/**/ /**/// //
|
|
/**/ extern FILE *Ref; /**/// Fichero Referencias //
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
///////////////////////////////////////////
|
|
/**/ /**///
|
|
/**/// Cabecera /**///
|
|
/**/ /**///
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
/**/ /**/// //
|
|
/**/ /*extern*/ struct JD { /**/// Estructura para la cabecera //
|
|
/**/ char esc; char color[8]; /**/// de todos los ficheros definida //
|
|
/**/ char prog[40]; char nl; /**/// en alguna parte. //
|
|
/**/ char rt; char autor[36]; /**/// //
|
|
/**/ char pt; char ef; /**/// //
|
|
/**/ }; /**/// //
|
|
/**/ /**/// //
|
|
/**/ extern struct JD cabecera; /**/// //
|
|
/**/ /**/// //
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
#ifndef SV_REF_X
|
|
|
|
|
|
/*extern*/ struct Stock_inx { unsigned int Fin; };
|
|
|
|
/*extern*/ struct Stock_actual { int Ref; long Und_0; long Und_1; };
|
|
|
|
extern struct Stock_actual Stock1;
|
|
extern struct Stock_inx Stock1_inx;
|
|
|
|
extern void Actualizar_Stock(int Referencia, int Unidades, int Codigo);
|
|
|
|
#endif
|