libCom: Deleted the 3.13 tsDefs API.

This commit is contained in:
Andrew Johnson
2012-03-01 11:31:32 -06:00
parent bf965cc59c
commit 1d0dcf0171
6 changed files with 8 additions and 106 deletions
+8
View File
@@ -15,6 +15,14 @@ EPICS Base 3.15.0.x releases are not intended for use in production systems.</p>
<h2 align="center">Changes between 3.14.x and 3.15.0.x</h2>
<!-- Insert new items immediately below here ... -->
<h3>
Removed tsDefs.h</h3>
<p>
The deprecated tsDefs API was provided for 3.13 compatibility only, and has now
been removed. Convert any remaining code that used it to call the epicsTime API
instead.</p>
<h3>
Changes to epicsVersion.h</h3>
-1
View File
@@ -34,7 +34,6 @@ include $(LIBCOM)/osi/Makefile
include $(LIBCOM)/ring/Makefile
include $(LIBCOM)/taskwd/Makefile
include $(LIBCOM)/timer/Makefile
include $(LIBCOM)/tsDefs/Makefile
include $(LIBCOM)/yacc/Makefile
# Library to build:
-13
View File
@@ -1,13 +0,0 @@
#*************************************************************************
# Copyright (c) 2010 UChicago Argonne LLC, as Operator of Argonne
# National Laboratory.
# EPICS BASE is distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
#*************************************************************************
# This is a Makefile fragment, see src/libCom/Makefile.
#tsDefs contains R3.13 compatibility tsStamp code
SRC_DIRS += $(LIBCOM)/tsDefs
INC += tsDefs.h
Com_SRCS += tsDefs.c
-6
View File
@@ -1,6 +0,0 @@
This directory contains the old R3.13
time stamp definitions and routines
needed by epics extensions. They exist
for compatibility purposes only and
should not be used by new code.
-36
View File
@@ -1,36 +0,0 @@
/*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.7
* and higher are distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
/*
* $Revision-Id$
*/
#define epicsExportSharedSymbols
#include "tsDefs.h"
epicsShareFunc char * epicsShareAPI tsStampToText(const TS_STAMP *pTS,enum tsTextType textType,char *textBuffer)
{
switch (textType) {
case TS_TEXT_MMDDYY:
epicsTimeToStrftime(textBuffer,28,"%m/%d/%y %H:%M:%S.%09f",pTS);
break;
case TS_TEXT_MONDDYYYY:
epicsTimeToStrftime(textBuffer,32,"%b %d, %Y %H:%M:%S.%09f",pTS);
break;
default:
return NULL;
}
return textBuffer;
}
epicsShareFunc long epicsShareAPI tsLocalTime(TS_STAMP *pStamp)
{
return epicsTimeGetCurrent(pStamp);
}
-50
View File
@@ -1,50 +0,0 @@
/*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.7
* and higher are distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
/*
* $Revision-Id$
* This file contains the old R3.13
* time stamp definitions and routines
* needed by epics extensions. They exist
* for compatibility purposes only and
* should not be used by new code.
*
*/
#ifndef tsDefsh
#define tsDefsh
#include "epicsTime.h"
#include "shareLib.h"
#ifdef __cplusplus
extern "C" {
#endif
/*----------------------------------------------------------------------------
* TS_TEXT_xxx text type codes for converting between text and time stamp
*
* TS_TEXT_MONDDYYYY Mon dd, yyyy hh:mm:ss.nano-secs
* TS_TEXT_MMDDYY mm/dd/yy hh:mm:ss.nano-secs
* 123456789012345678901234567890123456789
* 0 1 2 3
*----------------------------------------------------------------------------*/
enum tsTextType{
TS_TEXT_MONDDYYYY,
TS_TEXT_MMDDYY
};
epicsShareFunc char * epicsShareAPI tsStampToText(const TS_STAMP *pTS,enum tsTextType textType,char *textBuffer);
epicsShareFunc long epicsShareAPI tsLocalTime(TS_STAMP *pStamp);
#ifdef __cplusplus
}
#endif
#endif /* tsDefsh */