Commit Graph

104 Commits

Author SHA1 Message Date
Andrew Johnson
0a2020e2fc Merged changes from 3.14 branch
Up to 3.14.12.4 release.
2013-12-17 12:54:04 -06:00
Andrew Johnson
2d52067484 libCom: Clean up build warnings from Visual Studio. 2013-11-19 15:26:22 -06:00
Andrew Johnson
af2693241f Merged changes from 3.14 branch
Up to revno 12398, i.e. the R3.14.12.3 release.
2012-12-18 15:44:35 -06:00
Andrew Johnson
ef5688f8de libCom: Accept hex literals in CALC expressions
Code back-ported from the 3.15 branch.
2012-12-03 12:58:26 -06:00
Andrew Johnson
a942295ead libCom/calc: Support 0x literals as epicsUInt32
Also use epicsInt32 for all integer calculations.
2012-07-06 14:17:51 -05:00
Michael Davidsaver
f7fc564556 Fold antelope/flex and asHost into libCom
Build lexer and parser from libCom/Makefile.
Since libCom now includes asLib.c and asLib_lex.c we must build
antelope and flex without linking them to Com.  This works because
they only need epicsTempFile anyway.  However make doesn't like a
subdirectory with the same name as a target object, so the antelope
source directory is now called yacc.  The two main.c files were also
renamed to avoid other build problems.

Merge asHost into Com and remove mentions in CONFIG_BASE

Lots of noise since SRCS must be renamed to Com_SRCS
2011-02-25 15:39:44 -06:00
Andrew Johnson
9a831f9dc5 libCom: Simplify libCom/Makefile by splitting into parts
Each SRC_DIR gets its own Makefile fragment, and where it needs
private build rules a RULES files.

If this pattern gets used elsewhere we could automate the include
lines (search $(SRC_DIRS) for Makefiles and RULES files?).
2010-12-10 15:23:42 -06:00
Andrew Johnson
881d13ac07 Merged the expand-calc-size branch.
This allows calc and calcout record expressions to be up to
79 characters long, and shortens the postfix buffer needed by
introducing integer literals.  Also removes the length limit
for access security CALC expressions.
2010-10-07 14:16:24 -05:00
Andrew Johnson
fbda9f3280 RCS keyword updates for Bazaar
Replaced $Id$ and $Header$ keywords with $Revision-Id$
Deleted $Log$ keywords and any log messages
2010-10-05 14:27:37 -05:00
Andrew Johnson
bb7d8d6435 libCom/calc: Added integer literals, which use less space in Postfix.
Renamed LITERAL to LITERAL_DOUBLE and added LITERAL_INT.
postfix() only uses LITERAL_INT if the results are identical.
Adjusted INFIX_TO_POSTFIX_SIZE() macro to match.
Cleaned up some other internal issues.
2010-10-04 13:32:34 -05:00
Andrew Johnson
f17ac39f29 Disable divide by zero warnings on MSVC when generating NAN and INF.
Use those values rather than calculating them independently.
2009-08-25 18:19:49 +00:00
Andrew Johnson
d6fcbe14ab Cleaned up dbDefs.h and errMdef.h
Added various #include lines needed in other sources.
2009-07-09 15:27:43 +00:00
Andrew Johnson
31d149d8d9 Fixed 64 bit compiler warnings from Tom Palaia/MacOS. 2009-04-23 18:49:40 +00:00
Ralph Lange
7fccc59fe9 ANSIfication of stuff (mostly missing argument types in declarations) 2009-04-03 17:46:26 +00:00
Andrew Johnson
105448f3f8 Fix access to uninitialized memory. 2009-01-16 16:49:19 +00:00
Andrew Johnson
2a34e2e464 Don't use fmod(), broken on vxWorks.
Use long rather than int for integer calculations.
2008-05-08 16:15:50 +00:00
Andrew Johnson
b281b453bb Added variable argument functions, mostly by Benjamin Fransken.
MIN, MAX, FINITE and ISINF can now take any number of arguments.
2008-04-10 18:06:47 +00:00
Andrew Johnson
7cf188ff61 Fix issues when char is signed. 2008-01-04 16:52:15 +00:00
Andrew Johnson
ad8302f4b1 Added VAL keyword to CALC parser and evaluator; evaluates to previous result. 2007-05-03 20:03:38 +00:00
Jeff Hill
049e054c31 fixed win32 dll exports 2006-11-30 22:29:26 +00:00
Andrew Johnson
e98b305246 Fix up calc and calcout record and associated code to use the new features
of postfix() and calcPerform().
2006-10-03 20:22:23 +00:00
Andrew Johnson
97a5aa16a0 Major update, code reorganization and enhancement. 2006-03-30 20:07:06 +00:00
Andrew Johnson
df07bfc9e9 Lower-case operands a thru l are never used, the infix buffer was already
converted to upper-case.
2006-03-01 19:55:13 +00:00
Andrew Johnson
b2681f5eb8 Fixed gcc warnings (NULL is a pointer, '\0' is a zero character). 2005-10-28 23:14:06 +00:00
Jeff Hill
12a08561be fixed DLL symbol export for windows 2005-02-18 18:39:56 +00:00
W. Eric Norum
0dc034962c Use epicsScanFloat/epicsScanDouble rather than sscanf.
This allows proper handling of Nan/Inf on all architectures.
2004-10-12 17:45:31 +00:00
W. Eric Norum
4a95bacb24 Pick up OS-specific declarations. 2004-09-14 23:08:29 +00:00
Jeff Hill
2d613ba5d0 fixed DLL export 2004-08-11 00:46:12 +00:00
Andrew Johnson
35bd1a76d1 Removed string calculation engine, only needed by Tim Mooney's recordtypes. 2003-09-12 19:13:54 +00:00
Ralph Lange
881ba6bb9d Fixed compiler warnings connected to missing char->int casts 2003-04-03 12:05:09 +00:00
Janet B. Anderson
93b0bf478d Updated license comments. 2002-07-12 21:35:43 +00:00
Marty Kraimer
adc6677275 add extern for C callable routines 2002-05-06 19:01:15 +00:00
Marty Kraimer
4428be70c3 support isinf; epicsIsNAN=>isnan; add test for epicsMath 2002-04-11 15:44:34 +00:00
Marty Kraimer
d78307e798 return -1 if result is nan 2002-03-27 13:38:59 +00:00
Jeff Hill
ba6a096e86 a fix for use of posix isnan() function 2001-07-31 21:35:26 +00:00
Marty Kraimer
9ebaf81de3 use isnan from standard library support
For vxWorks provide implementation
2001-07-26 15:47:12 +00:00
Ralph Lange
a67444ea1e Fixed HPUX 11 problem: isnan() is a macro. 2001-07-20 17:36:41 +00:00
Ralph Lange
48aac3bc86 Fixed Tornado warnings 2001-07-20 17:33:50 +00:00
Marty Kraimer
e80ea9a289 add const in may places 2001-02-06 15:19:53 +00:00
Jeff Hill
df78e9c4e0 fixed type of inclusion used 2000-10-12 18:37:06 +00:00
Ralph Lange
d3fce00c03 MODULO bug (range was limited to short int) fixed. 2000-08-09 13:51:08 +00:00
Jeff Hill
d15b7f24c1 use ANSI function prototype 2000-02-07 21:06:34 +00:00
Janet B. Anderson
b40f003fb0 Fixed test stmnt errors in previous commit. 2000-02-02 23:08:18 +00:00
Janet B. Anderson
137ac31a23 Fixed test stmnt errors in previous commit. 2000-02-02 22:25:27 +00:00
Janet B. Anderson
af081e0786 Changed test order in while stmnts to prevent UMR problem. - Evans 2000-02-02 22:20:11 +00:00
Janet B. Anderson
1a11a13f28 Changed test order in while stmnts to prevent UMR problem. - Evans 2000-02-02 22:09:20 +00:00
Marty Kraimer
c786f54b63 changes for 3.14 1999-09-13 19:18:48 +00:00
Janet B. Anderson
42492ea5f2 Added == binary operator. 1999-09-01 22:36:16 +00:00
Jeff Hill
9a1f1a216b fixed DLL export 1999-07-17 00:54:21 +00:00
Marty Kraimer
933a6daed2 change INCpostfixh to INCsCalcPostfixH 1999-07-08 14:52:36 +00:00