made ANSI C compatible

This commit is contained in:
Marty Kraimer
1993-01-29 12:49:14 +00:00
parent 518391eb50
commit d7d3c0b42a
5 changed files with 23 additions and 16 deletions
+2 -1
View File
@@ -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
+3 -1
View File
@@ -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>
+2 -1
View File
@@ -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
View File
@@ -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;
+3 -1
View File
@@ -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>