Commit Graph

268 Commits

Author SHA1 Message Date
Andrew Johnson f5b9db9583 libCom: Fix epicsString.h comparison functions
The string comparison functions epicsStrCaseCmp() and
epicsStrnCaseCmp() were returning incorrect results
when the strings did not match.

These functions now match their BSD equivalents, and
have working tests to confirm their operation.
2014-03-11 17:12:41 -05:00
Andrew Johnson 5bdd9ddca6 Windows: Fix static builds on MinGW
Xiaoqiang Wang proposed some fixes that allow static builds on
the MinGW targets to succeed. Some additional changes made to
blockingSockTest.cpp also clean that up.
2014-02-25 15:56:13 -06:00
Andrew Johnson 97636a45e0 libCom: Remove epicsShareAPI from epicsExit APIs
Passing epicsExitCallAtExits into atexit() was generating
a warning about passing in a __stdcall routine pointer.
2013-12-16 14:52:29 -06:00
Andrew Johnson 78a4e462d5 libCom: Recognize hex literals in epicsStrtod()
Allows Windows and VxWorks to accept hex integers as a double.
2013-12-02 11:12:19 -06:00
Andrew Johnson ef5d88d3e5 libCom: Back-ported aToIPAddr fix from 3.15 branch.
Cherry-picked 3.15 revno 12398 with some changes.
2013-06-07 17:03:55 -05:00
Andrew Johnson 5bc15b72a1 libCom: Add some missing #include guards.
There are still quite a few missing in libCom/osi/os/*
2013-04-11 12:56:56 -05:00
Andrew Johnson 2fb7df8548 libCom: __attribute__((deprecated)) not in gcc 2.x
Only apply this attribute for gcc 3 and later.
2011-06-20 13:52:32 -05:00
Andrew Johnson 6f8c946d76 libCom: Recognize -pre and -rc in version snapshot. 2010-10-08 15:17:55 -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 5d17059cb1 libCom: Changes to epicsVersion.h generation
Use DEV instead of CVS in names.
Lower-case the -rc<n> status strings.
Rename CVS_DATE to COMMIT_DATE.
No Bazaar equivalent to the CVS tag $Name$ exists.
Modernize and "use strict" in the Perl code.
2010-10-05 13:33:35 -05:00
Andrew Johnson 534ca2c86e Make ellFree() a 1-argument macro, calls ellFree2() with free as freeFunc. 2009-08-28 18:34:38 +00:00
Andrew Johnson 4868904839 Added CONTAINER macro, from Micheal Davidsaver (BNL). 2009-08-04 16:31:06 +00:00
Andrew Johnson 4e0ab97038 (M. Davidsaver): static keyword is part of C89,
remove all uses and internal definitions of LOCAL macro
2009-07-09 16:37:24 +00:00
Andrew Johnson d7d0531394 offsetof is required by C89 (M. Davidsaver) 2009-07-09 16:19:57 +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 a66a192ed5 Expand READONLY macro, deprecate. 2009-06-05 19:56:33 +00:00
Andrew Johnson f0652aa1b6 allocations MustSucceed 2009-04-23 22:19:46 +00:00
Andrew Johnson 31d149d8d9 Fixed 64 bit compiler warnings from Tom Palaia/MacOS. 2009-04-23 18:49:40 +00:00
Andrew Johnson d545a8f04f Added test code, fixed bug found in epicsStrnEscapedFromRawSize(). 2009-04-10 19:58:34 +00:00
Andrew Johnson f3d07ad12f ellLib changes: ANSIfication patch; moved test code out of ellLib.c into
its own unit test program in libCom/test; changed ellFree() to take a
function pointer for the free() routine, so it can be used on Windows;
modified epicsExit and dbBkpt to use it and pass in the free routine.
2009-04-09 16:51:05 +00:00
Andrew Johnson ca269744a6 Flush result output, allows Test::Harness to display progress. 2009-04-07 21:28:58 +00:00
Ralph Lange 7fccc59fe9 ANSIfication of stuff (mostly missing argument types in declarations) 2009-04-03 17:46:26 +00:00
Andrew Johnson 7228190dde Fix memory leak. 2009-04-03 01:57:11 +00:00
Ralph Lange 433e400c4d Fix in calculating the needed buffer length for escaped strings. 2009-04-02 13:05:42 +00:00
Ralph Lange 73470d5f4c Added new functions to escape non-printable characters. (epicsString) 2009-04-02 02:13:04 +00:00
Andrew Johnson 7eeb70a8d9 Added epicsStrHash() and epicsMemHash(), after analyzing several hash
functions found online and the two already in Base (which both perform
a memory lookup per character and are not as good as this one).
2009-03-19 17:44:22 +00:00
Jeff Hill c5f15a3e17 fixed bug introduced after R3.14.9, but before R3.14.10-RC1 and R3.14.10-RC2 2008-10-21 20:26:48 +00:00
Jeff Hill dff447028f improved fix for mantis 316 2008-09-27 01:37:01 +00:00
Jeff Hill 1ba1909bdb improved fix for mantis 316 2008-09-27 01:18:39 +00:00
Jeff Hill 32616ba5fa imprved fix for mantis 316 2008-09-26 22:12:15 +00:00
Andrew Johnson 37f4457c03 Added EPICS_DEPRECATED. 2008-09-26 17:24:32 +00:00
Andrew Johnson 3a671f712f Missing epicsExportSharedSymbols 2008-09-15 18:49:31 +00:00
Andrew Johnson 0bddd7dc8c Added Unit Test Harness to summarize results on vxWorks/RTEMS.
Added taskwdTest to tests run.
2008-09-03 16:48:03 +00:00
Janet B. Anderson ca1c83bf3a Added shared library support for cygwin and mingw builds. 2008-08-06 16:52:52 +00:00
Janet B. Anderson 519b33e4fb Changes for shared library build using MinGW compiler on win32. 2008-07-29 21:11:56 +00:00
Andrew Johnson f0811601ea Fixed warnings on MinGW. 2008-07-29 20:47:11 +00:00
Andrew Johnson ff4f3f2070 Fixed warning on Solaris. 2008-07-28 18:32:32 +00:00
W. Eric Norum 02b87df99c The ipToAsciiProxy thread calls upon vendor libraries which may use significant amounts of stack. Account for this by providing the thread with an epicsThreadStackBig stack. 2008-07-21 17:40:44 +00:00
Andrew Johnson 3be3203377 Convert Inf and NaN values properly. 2008-06-12 22:44:16 +00:00
Andrew Johnson 9d7fb60785 Added mote about deprecating epicsShareAPI. 2008-04-15 20:30:22 +00:00
Andrew Johnson e8d52af7bc Can't make epicsInt8 a 'signed char', it breaks too much stuff.
This is a problem - on some archs char is signed, on others not.
2008-04-01 15:54:01 +00:00
Andrew Johnson f21aed109c An epicsInt8 is signed, but a bare 'char' isn't necessarily. 2008-03-31 19:46:46 +00:00
Andrew Johnson 54ce8fbdbe Fixed Mantis #290. 2007-11-13 23:27:35 +00:00
Andrew Johnson 52ab7f6d6b A char with the top bit set doesn't cast properly when its signed. 2007-09-11 19:11:55 +00:00
Jeff Hill fe2b0e599d fix dll exports 2006-12-22 21:56:46 +00:00
Jeff Hill 2c9414a881 installed epics thread exit capabilities 2006-12-07 17:00:20 +00:00
Jeff Hill f16d241662 installed epics thread exit capabilities 2006-12-07 00:49:19 +00:00
Jeff Hill 94dfec0999 fixed compiler warning 2006-12-05 19:56:28 +00:00
Jeff Hill 5b6a358fab fixed gnu build issue 2006-11-29 01:07:57 +00:00
Jeff Hill bdc071f3c5 fix for mantis 276 - EDM on OS X gets access fault in ipAddrToAsciiEngine::allocate 2006-11-28 23:45:04 +00:00