xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbert...@apache.org
Subject cvs commit: xml-xalan/c/src/xalanc/XalanEXSLT XalanEXSLTDateTime.cpp
Date Tue, 30 Dec 2003 00:48:52 GMT
dbertoni    2003/12/29 16:48:52

  Modified:    c/src/xalanc/XalanEXSLT XalanEXSLTDateTime.cpp
  Log:
  Fixes for picky platforms.
  
  Revision  Changes    Path
  1.2       +14 -4     xml-xalan/c/src/xalanc/XalanEXSLT/XalanEXSLTDateTime.cpp
  
  Index: XalanEXSLTDateTime.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/xalanc/XalanEXSLT/XalanEXSLTDateTime.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XalanEXSLTDateTime.cpp	29 Dec 2003 21:14:01 -0000	1.1
  +++ XalanEXSLTDateTime.cpp	30 Dec 2003 00:48:52 -0000	1.2
  @@ -75,13 +75,11 @@
   XALAN_CPP_NAMESPACE_BEGIN
   
   
  -#define MAX_DATE_TIME_LEN  100
  -
  -
   
   static const XalanEXSLTFunctionDateTime			s_dateTimeFunction;
   
   
  +
   static const XalanDOMChar	s_dateTimeFunctionName[] =
   {
   	XalanUnicode::charLetter_d,
  @@ -156,16 +154,28 @@
   
   	XalanDOMString&		theResult = theGuard.get();
   
  +#if defined(XALAN_STRICT_ANSI_HEADERS)
  +	using std::localtime;
  +	using std::tm;
  +	using std::time_t;
  +	using std::time;
  +	using std::size_t;
  +	using std::strftime;
  +	using std::gmtime;
  +#endif
  +
   	time_t long_time;
   
   	time( &long_time );
  -	
  +
   	const struct tm*	strctTime = localtime(&long_time);
   
   	assert (strctTime != 0 );
   
   	//save hours - the struct going to be overrided
   	const int	iHours = strctTime->tm_hour;
  +
  +	const size_t	MAX_DATE_TIME_LEN = 1000;
   
   	char stringTime[MAX_DATE_TIME_LEN + 1];
   	
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message