Commit Graph

56 Commits

Author SHA1 Message Date
Andrew Johnson 09ff608ca9 libCom: Fix use-after-free bug in macCore.c 2014-10-30 17:55:12 -05:00
Andrew Johnson 0a9c5d456b Merged iocshCmd-with-macros branch 2014-10-06 23:39:23 -05:00
Keenan Lang 6d4e284ab1 Added note to fixme comment to state that a function is relying on its current setup. 2014-09-02 17:21:42 -05:00
Keenan Lang ee197893e7 removing some extra whitespace to cleanup the diff 2014-09-02 16:44:47 -05:00
Keenan Lang 64a98452e3 epicsEnvSet clears macros before setting environment variable to ensure intuitive use of the function in nested iocsh calls. While adding this functionality, fixed a latent bug in macPutValue where if you tried to NULL a macro with the same name as an environment variable, you would go into an infinite loop. 2014-09-02 16:35:32 -05:00
Keenan Lang 4497e8d5f4 Updated macLibREADME 2014-08-27 11:41:27 -05:00
Keenan Lang 2d3db2036b Updated iocshBody to keep track of macro context to allow scoping of macro variables from iocshRun/Load 2014-08-27 11:33:14 -05:00
Keenan Lang 4f1f7dd83b Updated macLib documentation 2014-08-21 17:13:00 -05:00
Keenan Lang dfe6515809 offset by a space 2014-08-21 16:12:11 -05:00
Keenan Lang 6d3b70251c Returned macEnvExpand to original parameters, added macDefExpand 2014-08-21 16:05:55 -05:00
Keenan Lang 6ebbf0dd8c Whitespace changes snuck in due to editor 2014-08-20 16:58:50 -05:00
Keenan Lang 69c7f0b065 Changing macEnvExpand to accomodate macro definitions 2014-08-19 16:40:51 -05:00
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 66209118f6 libCom/macLib: Don't use unsigned chars in macParseDefns()
These pointers are really pointing to standard chars.
2013-11-13 12:39:23 -06:00
Andrew Johnson 64c9d7a32a Many tweaks to build on Windows.
There might be some more to come since I'm not committing
this from my Win32 system.
2012-07-17 14:33:31 -05:00
Michael Davidsaver 9a1b6b995e macEnv avoid cantProceed 2011-08-26 16:33:59 -07: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 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
unknown 8337b5063d Fix NULL handle issue 2010-05-27 05:47:07 -05:00
Andrew Johnson 831f48e719 Fix the macLib buffer overflow issue, Bug 551909.
This is mostly Eric's patches, without the valend name change.
2010-05-04 15:43:20 -05:00
Andrew Johnson 31d149d8d9 Fixed 64 bit compiler warnings from Tom Palaia/MacOS. 2009-04-23 18:49:40 +00:00
Andrew Johnson 37b371e956 macLib cleanup, added support for scoped macros.
New test program for regular macros as well as the environment variable tests.
2008-03-31 19:30:17 +00:00
Andrew Johnson b0c0ab77ac Reduce initial size of expanded string. 2008-01-04 17:07:30 +00:00
Andrew Johnson 71e01ae55d Warning suppression bug fix from Benjamin Franksen. 2007-02-28 16:05:18 +00:00
Andrew Johnson bffda92e45 Updated to cover recent changes such as default values, and remove things that
were never implemented.
2005-10-28 15:50:21 +00:00
Jeff Hill 2d613ba5d0 fixed DLL export 2004-08-11 00:46:12 +00:00
W. Eric Norum 6fe68a0cb3 Fix printf args/formats. 2004-06-17 01:10:59 +00:00
Andrew Johnson b9fa2e7515 More string termination bugs, this time missing terminators. 2004-06-16 19:10:11 +00:00
Andrew Johnson f291862044 Fixed dbLoadTemplates oops! Environment variables tests don't exercise the
non-dirty path as much...
2004-06-15 19:07:51 +00:00
Andrew Johnson 7035e0f475 Replaced macErrMessage macros with errlogPrintf
Fixed 2 possible buffer overflow bugs
Added an entry type string for error/warning messages
Implemented default values in macro expansions $(name=default)
Improved usefulness of error reporting
2004-06-11 15:40:14 +00:00
W. Eric Norum 7c5e384d08 Cosmetic typo. 2004-06-04 19:51:23 +00:00
Andrew Johnson e5f47d5807 Made various input arguments and internal variables const char*. 2003-07-29 19:50:31 +00:00
W. Eric Norum 098d421a56 Update README file to reflect some recent changes. 2003-07-29 18:02:42 +00:00
W. Eric Norum 6661789143 Efficiency improvements. Cut down on copy operations. 2003-07-18 12:33:44 +00:00
W. Eric Norum e70dba5bf9 Macro expansion using environment variables as macro definitions. 2003-07-15 19:04:29 +00:00
cvs2svn 1fef904a9e This commit was manufactured by cvs2svn to create branch 'B3.14'. 2003-07-15 15:56:33 +00:00
W. Eric Norum 7f56802052 Add epicsStrDup(). 2003-07-08 19:35:28 +00:00
Marty Kraimer 47363400cb bugs rported by Mark Rivers 2003-05-21 13:27:52 +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 3422c51a57 Removed log history comments. 2002-07-15 20:34:24 +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
Ralph Lange 3712987800 Fixed HPUX warnings. 2001-07-26 07:59:07 +00:00
W. Eric Norum c303ad0550 Remove call to max(). 2000-05-30 19:52:00 +00:00
Jeff Hill f03ef5eb5d fixed pool corruption problems 2000-05-30 17:08:57 +00:00
Andrew Johnson 4785daecc0 Cleaned up warnings - the RCS Log: keyword was on the comment line
that starts with a '/' which RCS replicates for these notes...
1999-05-13 16:06:23 +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