Patch level : 2.0 464
Files correlati : gfm.dll Ricompilazione Demo : [ ] Commento : Modifiche per la compilazione Linux git-svn-id: svn://10.65.10.50/trunk@11079 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
18a0f13321
commit
0688668ef5
@ -107,6 +107,7 @@ DEC *nperd, *intr, *pv, *pmt, *fv;
|
|||||||
return(GM_NULL);
|
return(GM_NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
intper = 0;
|
||||||
ad = begend;
|
ad = begend;
|
||||||
|
|
||||||
if (opt!=GM_N) {
|
if (opt!=GM_N) {
|
||||||
|
@ -15,7 +15,7 @@ void SmartScan(s, pd)
|
|||||||
char *s;
|
char *s;
|
||||||
DEC *pd;
|
DEC *pd;
|
||||||
{
|
{
|
||||||
bool done;
|
short done;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!pd) {
|
if (!pd) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "gm.h"
|
#include "gm.h"
|
||||||
void ErrorHandler(int,int);
|
void ErrorHandler(int,int);
|
||||||
void main(void);
|
int main(void);
|
||||||
|
|
||||||
void ErrorHandler(code,ref)
|
void ErrorHandler(code,ref)
|
||||||
int code,ref;
|
int code,ref;
|
||||||
@ -12,7 +12,7 @@ int code,ref;
|
|||||||
printf("%s error in function %s\n",serr,sfun);
|
printf("%s error in function %s\n",serr,sfun);
|
||||||
}
|
}
|
||||||
|
|
||||||
void main()
|
int main()
|
||||||
{
|
{
|
||||||
DEC da, *a=&da, db, *b=&db, dc, *c=&dc, *p;
|
DEC da, *a=&da, db, *b=&db, dc, *c=&dc, *p;
|
||||||
|
|
||||||
@ -31,4 +31,5 @@ void main()
|
|||||||
dprintf("%t / %t = %t\n",a,b,c);
|
dprintf("%t / %t = %t\n",a,b,c);
|
||||||
else
|
else
|
||||||
dprintf("Division failed.\n");
|
dprintf("Division failed.\n");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -36,10 +36,7 @@
|
|||||||
#include "gm.h"
|
#include "gm.h"
|
||||||
#include "gmsystem.h"
|
#include "gmsystem.h"
|
||||||
|
|
||||||
int FilePrintDecimal(stream,fmt, ELLIPSES)
|
int FilePrintDecimal(FILE *stream, char *fmt, ELLIPSES)
|
||||||
FILE *stream;
|
|
||||||
char *fmt;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
char **outval, buffer[256];
|
char **outval, buffer[256];
|
||||||
int i;
|
int i;
|
||||||
|
@ -39,10 +39,7 @@
|
|||||||
#include "gm.h"
|
#include "gm.h"
|
||||||
#include "gmsystem.h"
|
#include "gmsystem.h"
|
||||||
|
|
||||||
int FileScanDecimal(fFile,sFmt, ELLIPSES)
|
int FileScanDecimal(FILE * fFile, char *sFmt, ELLIPSES)
|
||||||
FILE *fFile;
|
|
||||||
char *sFmt;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
char **pOutVal;
|
char **pOutVal;
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "gm.h"
|
#include "gm.h"
|
||||||
#include "gmsystem.h"
|
#include "gmsystem.h"
|
||||||
|
#include "math.h"
|
||||||
|
|
||||||
DEC *ConvDoubleToDecimal( x, f)
|
DEC *ConvDoubleToDecimal( x, f)
|
||||||
DEC *x;
|
DEC *x;
|
||||||
|
@ -30,11 +30,9 @@
|
|||||||
extern double pow(double, double);
|
extern double pow(double, double);
|
||||||
|
|
||||||
|
|
||||||
void _DivUnsArrByPwrOf10Trunc(a,n,p)
|
void _DivUnsArrByPwrOf10Trunc(unsigned SHORT a[],int n,int p)
|
||||||
unsigned SHORT a[];
|
|
||||||
int n,p;
|
|
||||||
{
|
{
|
||||||
int ppdf,i;
|
int ppdf;
|
||||||
|
|
||||||
while (p>4)
|
while (p>4)
|
||||||
{
|
{
|
||||||
|
@ -30,13 +30,11 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "gm.h"
|
#include "gm.h"
|
||||||
#include "gmsystem.h"
|
#include "gmsystem.h"
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
int PrintDecimal(fmt, ELLIPSES)
|
int PrintDecimal(char * fmt, ELLIPSES)
|
||||||
char *fmt;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
char **outval, buffer[256];
|
char **outval, buffer[256];
|
||||||
int i;
|
int i;
|
||||||
|
@ -38,9 +38,7 @@
|
|||||||
#include "gm.h"
|
#include "gm.h"
|
||||||
#include "gmsystem.h"
|
#include "gmsystem.h"
|
||||||
|
|
||||||
int ScanDecimal(sFmt, ELLIPSES)
|
int ScanDecimal(char * sFmt, ELLIPSES)
|
||||||
char *sFmt;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
char **pOutVal;
|
char **pOutVal;
|
||||||
|
@ -37,10 +37,7 @@
|
|||||||
|
|
||||||
static int _StackSize(char, char);
|
static int _StackSize(char, char);
|
||||||
|
|
||||||
int StringPrintDecimal(buffer,fmt, ELLIPSES)
|
int StringPrintDecimal(char * buffer, char * fmt, ELLIPSES)
|
||||||
char *buffer;
|
|
||||||
char *fmt;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
char newfmt[256], lastcode, thiscode;
|
char newfmt[256], lastcode, thiscode;
|
||||||
int *inval, outval[21];
|
int *inval, outval[21];
|
||||||
@ -283,6 +280,7 @@ char cPrec;
|
|||||||
#ifndef LATTICE
|
#ifndef LATTICE
|
||||||
#ifndef M_I386
|
#ifndef M_I386
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
|
#ifndef __GNUC__
|
||||||
if (cPrec=='F')
|
if (cPrec=='F')
|
||||||
w = sizeof(char far *);
|
w = sizeof(char far *);
|
||||||
else if (cPrec=='N')
|
else if (cPrec=='N')
|
||||||
@ -290,6 +288,7 @@ char cPrec;
|
|||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
w = sizeof(char *);
|
w = sizeof(char *);
|
||||||
break;
|
break;
|
||||||
|
@ -38,10 +38,7 @@
|
|||||||
#include "gm.h"
|
#include "gm.h"
|
||||||
#include "gmsystem.h"
|
#include "gmsystem.h"
|
||||||
|
|
||||||
int StringScanDecimal(sBuffer, sFmt, ELLIPSES)
|
int StringScanDecimal(char * sBuffer,char * sFmt, ELLIPSES)
|
||||||
char *sBuffer;
|
|
||||||
char *sFmt;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
char **pOutVal;
|
char **pOutVal;
|
||||||
|
@ -28,8 +28,7 @@
|
|||||||
#include "gm.h"
|
#include "gm.h"
|
||||||
#include "gmsystem.h"
|
#include "gmsystem.h"
|
||||||
|
|
||||||
DEC *ZeroDecimal(x)
|
DEC *ZeroDecimal(DEC * x)
|
||||||
DEC *x;
|
|
||||||
{
|
{
|
||||||
|
|
||||||
_MacStart(GM_DZERO);
|
_MacStart(GM_DZERO);
|
||||||
|
4
gfm/gf.h
4
gfm/gf.h
@ -27,11 +27,7 @@
|
|||||||
#define GF_CDECL /*cdecl eliminato */
|
#define GF_CDECL /*cdecl eliminato */
|
||||||
|
|
||||||
#define EOS '\0'
|
#define EOS '\0'
|
||||||
#ifdef M_I386
|
|
||||||
typedef unsigned short word;
|
typedef unsigned short word;
|
||||||
#else
|
|
||||||
typedef unsigned int word;
|
|
||||||
#endif
|
|
||||||
#ifndef GLOS2
|
#ifndef GLOS2
|
||||||
typedef char BYTE;
|
typedef char BYTE;
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,6 +1,13 @@
|
|||||||
#ifndef __GFD_H
|
#ifndef __GFD_H
|
||||||
#define __GFD_H
|
#define __GFD_H
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
#define uint64 unsigned __int64
|
||||||
|
#else
|
||||||
|
#include <sys/types.h>
|
||||||
|
#define uint64 u_int64_t
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct idec {
|
typedef struct idec {
|
||||||
SHORT attr;
|
SHORT attr;
|
||||||
SHORT id;
|
SHORT id;
|
||||||
@ -18,7 +25,7 @@ typedef struct ldec {
|
|||||||
typedef struct hdec {
|
typedef struct hdec {
|
||||||
short lattr; /* redef's for long's */
|
short lattr; /* redef's for long's */
|
||||||
short lid;
|
short lid;
|
||||||
unsigned __int64 hsl;
|
uint64 hsl;
|
||||||
short lmsd;
|
short lmsd;
|
||||||
} HDEC;
|
} HDEC;
|
||||||
|
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
* Contains definitions and prototypes used by internal routines.
|
* Contains definitions and prototypes used by internal routines.
|
||||||
* Copyright (C)1987-1990 Greenleaf Software Inc. All rights reserved.
|
* Copyright (C)1987-1990 Greenleaf Software Inc. All rights reserved.
|
||||||
*/
|
*/
|
||||||
#ifndef _MSC
|
|
||||||
#define _MSC
|
|
||||||
#endif
|
|
||||||
#ifndef GMDOTH
|
#ifndef GMDOTH
|
||||||
#include <gm.h>
|
#include <gm.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -46,11 +46,7 @@
|
|||||||
#include "import.h"
|
#include "import.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int _ScanfAux(wOpt, sBuffer, sFmt, ELLIPSES)
|
int _ScanfAux(int wOpt,char * sBuffer, char * sFmt, ELLIPSES)
|
||||||
int wOpt;
|
|
||||||
char *sBuffer;
|
|
||||||
char *sFmt;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
char sNewFmt[256], cType, *pStrArr[21], *pTemp;
|
char sNewFmt[256], cType, *pStrArr[21], *pTemp;
|
||||||
int *pInVal, pOutVal[21];
|
int *pInVal, pOutVal[21];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user