made ANSI C compatible
This commit is contained in:
@@ -65,6 +65,7 @@
|
||||
* .29 04-01-92 jba allowed floating pt constants in expression
|
||||
* .30 05-01-92 jba flt pt constant string replaced with double in postfix
|
||||
* .31 08-21-92 jba ANSI c changes
|
||||
* .32 12-11-92 mrk Removed include for stdioLib.h
|
||||
>
|
||||
*/
|
||||
|
||||
@@ -94,8 +95,8 @@
|
||||
|
||||
#ifdef vxWorks
|
||||
# include <vxWorks.h>
|
||||
# include <varargs.h>
|
||||
# include <fioLib.h>
|
||||
# include <stdioLib.h>
|
||||
#else
|
||||
# include <stdio.h>
|
||||
#endif
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
* .11 05-01-92 jba flt pt constant string replaced with double in postfix
|
||||
* .12 08-21-92 jba ANSI c changes
|
||||
* .13 08-21-92 jba initialized *ppostfix: needed when calc expr not defined
|
||||
* .14 12-11-92 mrk Removed include for stdioLib.h
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -86,7 +87,8 @@
|
||||
*/
|
||||
|
||||
#ifdef vxWorks
|
||||
#include <stdioLib.h>
|
||||
#include <vxWorks.h>
|
||||
#include <varargs.h>
|
||||
#include <fioLib.h>
|
||||
#else
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
* .29 04-01-92 jba allowed floating pt constants in expression
|
||||
* .30 05-01-92 jba flt pt constant string replaced with double in postfix
|
||||
* .31 08-21-92 jba ANSI c changes
|
||||
* .32 12-11-92 mrk Removed include for stdioLib.h
|
||||
>
|
||||
*/
|
||||
|
||||
@@ -94,8 +95,8 @@
|
||||
|
||||
#ifdef vxWorks
|
||||
# include <vxWorks.h>
|
||||
# include <varargs.h>
|
||||
# include <fioLib.h>
|
||||
# include <stdioLib.h>
|
||||
#else
|
||||
# include <stdio.h>
|
||||
#endif
|
||||
|
||||
+13
-12
@@ -32,6 +32,7 @@
|
||||
* -----------------
|
||||
* nnn mm-dd-yy nnn Comment
|
||||
* .02 05-18-92 rcz New database access
|
||||
* .03 12-11-92 mrk ANSI prototypes
|
||||
*/
|
||||
#include <vxWorks.h>
|
||||
#include <types.h>
|
||||
@@ -46,12 +47,12 @@ extern struct dbBase *pdbBase;
|
||||
|
||||
|
||||
|
||||
long cvtRawToEngBpt(pval,linr,init,ppbrk,plbrk)
|
||||
double *pval;
|
||||
short linr;
|
||||
short init;
|
||||
caddr_t *ppbrk;
|
||||
short *plbrk;
|
||||
long cvtRawToEngBpt(
|
||||
double *pval,
|
||||
short linr,
|
||||
short init,
|
||||
caddr_t *ppbrk,
|
||||
short *plbrk)
|
||||
{
|
||||
double val=*pval;
|
||||
long status=0;
|
||||
@@ -104,12 +105,12 @@ long cvtRawToEngBpt(pval,linr,init,ppbrk,plbrk)
|
||||
return(status);
|
||||
}
|
||||
|
||||
long cvtEngToRawBpt(pval,linr,init,ppbrk,plbrk)
|
||||
double *pval;
|
||||
short linr;
|
||||
short init;
|
||||
caddr_t *ppbrk;
|
||||
short *plbrk;
|
||||
long cvtEngToRawBpt(
|
||||
double *pval,
|
||||
short linr,
|
||||
short init,
|
||||
caddr_t *ppbrk,
|
||||
short *plbrk)
|
||||
{
|
||||
double val=*pval;
|
||||
long status=0;
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
* .11 05-01-92 jba flt pt constant string replaced with double in postfix
|
||||
* .12 08-21-92 jba ANSI c changes
|
||||
* .13 08-21-92 jba initialized *ppostfix: needed when calc expr not defined
|
||||
* .14 12-11-92 mrk Removed include for stdioLib.h
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -86,7 +87,8 @@
|
||||
*/
|
||||
|
||||
#ifdef vxWorks
|
||||
#include <stdioLib.h>
|
||||
#include <vxWorks.h>
|
||||
#include <varargs.h>
|
||||
#include <fioLib.h>
|
||||
#else
|
||||
#include <stdio.h>
|
||||
|
||||
Reference in New Issue
Block a user