Commit Graph

57 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
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
31d149d8d9 Fixed 64 bit compiler warnings from Tom Palaia/MacOS. 2009-04-23 18:49:40 +00:00
Andrew Johnson
105448f3f8 Fix access to uninitialized memory. 2009-01-16 16:49:19 +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
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
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
e80ea9a289 add const in may places 2001-02-06 15:19:53 +00:00
Janet B. Anderson
137ac31a23 Fixed test stmnt errors in previous commit. 2000-02-02 22:25:27 +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
Marty Kraimer
97191cfb50 get rid of some warning messages 1998-03-19 20:43:47 +00:00
Marty Kraimer
c6304512eb Move private definitions to postfixPvt.h 1998-03-16 16:23:42 +00:00
Jeff Hill
27c4d0574f cleaned up the DLL symbol export 1998-02-27 01:34:15 +00:00
Ken Evans
88d36c7db3 Made a large number of changes to epicsShareThings in libCom routines
to get imports and exports straight on WIN32.  Not everything is fixed
at this time.
1998-02-20 21:45:20 +00:00
Janet B. Anderson
f55d861f40 Added aten2 function pre Nick Rees. 1997-07-23 15:06:43 +00:00
Marty Kraimer
ed3cefacef Change so that 0 is INVALID_ 1997-07-11 12:20:35 +00:00
Jeff Hill
7946e9b921 DLL keyword adjustments 1997-05-01 23:51:07 +00:00
Jeff Hill
5bf13da02c fixed conflict >>>>> 1997-05-01 20:30:15 +00:00
Jeff Hill
6b6e5e7515 updated dll keywords 1997-05-01 19:57:53 +00:00
Marty Kraimer
437142b5bb Fix compiler warning messages 1997-04-30 19:12:25 +00:00
Jeff Hill
d3c6310bb1 API changes and include with not <> 1997-04-10 19:45:43 +00:00
Janet B. Anderson
fb82d0de0a Removed unused END_ELEMENTS definition. 1996-06-19 14:38:38 +00:00
Janet B. Anderson
e4c383cfb5 Added LN and SQRT as synonyms for LOGE and SQR, respectively.
Added NINT, nearest integer function.
Modified handling of "-"  so operator can be either unary or binary.
1995-02-13 16:38:27 +00:00
Marty Kraimer
f063feb3cb Cast of memcpy arg to suppress warning message. 1994-09-02 13:40:55 +00:00
Mike Bordua
d278bf8277 Channel Access changes from Jeff Hill. 1994-07-13 02:29:43 +00:00
Janet B. Anderson
64243909a8 Added support for CONST_PI, CONST_R2D, and CONST_D2R and conversion of infix exp to upper 1994-05-11 11:36:20 +00:00
Janet B. Anderson
9e64980b6c Changed seperator test to catch invalid commas 1994-02-03 09:19:23 +00:00
Janet B. Anderson
e84d8b7167 Added test for extra close paren at end of expression 1993-11-04 15:42:00 +00:00
Janet B. Anderson
8b2d8fb640 removed varargs.h 1993-07-26 15:17:22 +00:00
Marty Kraimer
d7d3c0b42a made ANSI C compatible 1993-01-29 12:49:14 +00:00
Janet B. Anderson
8b63624672 bug fix 1992-08-29 20:34:55 +00:00
Janet B. Anderson
6c7827d1b2 initialized *ppostfix: needed when calc expr not defined 1992-08-26 13:37:06 +00:00
Janet B. Anderson
2af60b3d4e flt pt constant string replaced with double in postfix expression 1992-05-11 14:53:13 +00:00
Janet B. Anderson
6c3d8208ac allowed floating pt constants in expression 1992-04-06 14:53:24 +00:00