From 795b9645c90fde9b1321372b84423f690ec364a2 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Thu, 25 Jan 1996 21:07:08 +0000 Subject: [PATCH] moved include from base/include; .ascii => .db --- src/bpt/Makefile.Unix | 1 + src/bpt/Makefile.Vx | 8 ++-- src/bpt/cvtTable.h | 45 +++++++++++++++++++ src/bpt/makeBpt.c | 2 +- src/bpt/{menuConvert.ascii => menuConvert.db} | 0 5 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 src/bpt/cvtTable.h rename src/bpt/{menuConvert.ascii => menuConvert.db} (100%) diff --git a/src/bpt/Makefile.Unix b/src/bpt/Makefile.Unix index ef523606d..3bfe38dad 100644 --- a/src/bpt/Makefile.Unix +++ b/src/bpt/Makefile.Unix @@ -3,6 +3,7 @@ include Target.include include $(EPICS)/config/CONFIG_BASE +INC += cvtTable.h SRCS.c = ../makeBpt OBJS = makeBpt diff --git a/src/bpt/Makefile.Vx b/src/bpt/Makefile.Vx index 5a6078498..fc29d0dd2 100644 --- a/src/bpt/Makefile.Vx +++ b/src/bpt/Makefile.Vx @@ -7,10 +7,10 @@ VX_WARN_YES = -Wall -pedantic MENUS += menuConvert.h -BPTS += bptTypeJdegC.ascii -BPTS += bptTypeJdegF.ascii -BPTS += bptTypeKdegC.ascii -BPTS += bptTypeKdegF.ascii +BPTS += bptTypeJdegC.db +BPTS += bptTypeJdegF.db +BPTS += bptTypeKdegC.db +BPTS += bptTypeKdegF.db SRCS.c = \ diff --git a/src/bpt/cvtTable.h b/src/bpt/cvtTable.h new file mode 100644 index 000000000..26bfb8d37 --- /dev/null +++ b/src/bpt/cvtTable.h @@ -0,0 +1,45 @@ +/* $Id$ + * Breakpoint Tables + * + * Author: Marty Kraimer + * Date: 11-7-90 + * + * Experimental Physics and Industrial Control System (EPICS) + * + * Copyright 1991, the Regents of the University of California, + * and the University of Chicago Board of Governors. + * + * This software was produced under U.S. Government contracts: + * (W-7405-ENG-36) at the Los Alamos National Laboratory, + * and (W-31-109-ENG-38) at Argonne National Laboratory. + * + * Initial development by: + * The Controls and Automation Group (AT-8) + * Ground Test Accelerator + * Accelerator Technology Division + * Los Alamos National Laboratory + * + * Co-developed with + * The Controls and Computing Group + * Accelerator Systems Division + * Advanced Photon Source + * Argonne National Laboratory + * + * Modification Log: + * ----------------- + * .01 05-18-92 rcz removed extern + * .02 05-18-92 rcz new database access + * .03 08-19-92 jba add prototypes for cvtRawToEngBpt,cvtEngToRawBpt + */ + +#ifndef INCcvtTableh +#define INCcvtTableh 1 + +/* Global Routines*/ +long cvtEngToRawBpt(double *pval,short linr,short init, + void **ppbrk,short *plbrk); + +long cvtRawToEngBpt(double *pval,short linr,short init, + void **ppbrk, short *plbrk); + +#endif diff --git a/src/bpt/makeBpt.c b/src/bpt/makeBpt.c index d50a40a64..9c4e6b765 100644 --- a/src/bpt/makeBpt.c +++ b/src/bpt/makeBpt.c @@ -118,7 +118,7 @@ int main(argc, argv) fprintf(stderr,"Input file MUST have .data extension\n"); exit(-1); } - strcpy(pext,".ascii"); + strcpy(pext,".db"); inFile = fopen(argv[1],"r"); if(!inFile) { fprintf(stderr,"Error opening %s\n",argv[1]); diff --git a/src/bpt/menuConvert.ascii b/src/bpt/menuConvert.db similarity index 100% rename from src/bpt/menuConvert.ascii rename to src/bpt/menuConvert.db