8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 20:03:03 +01:00

Comments.

This commit is contained in:
robocop 2009-11-20 09:19:50 +00:00
parent 8ebc6f3c3e
commit c1d4a1cc8e

View File

@ -85,7 +85,7 @@
#include "../jrd/DataTypeUtil.h"
#include "../jrd/SysFunction.h"
/* Pick up relation ids */
// Pick up relation ids
#include "../jrd/ini.h"
#include "../common/classes/auto.h"
@ -96,31 +96,27 @@
using Firebird::AutoSetRestore;
/* Firebird provides transparent conversion from string to date in
* contexts where it makes sense. This macro checks a descriptor to
* see if it is something that *could* represent a date value
*/
// Firebird provides transparent conversion from string to date in
// contexts where it makes sense. This macro checks a descriptor to
// see if it is something that *could* represent a date value
inline bool COULD_BE_DATE(const dsc desc)
{
return ((DTYPE_IS_DATE(desc.dsc_dtype)) || (desc.dsc_dtype <= dtype_any_text));
}
//#define COULD_BE_DATE(d) ((DTYPE_IS_DATE((d).dsc_dtype)) || ((d).dsc_dtype <= dtype_any_text))
/* One of d1,d2 is time, the other is date */
// One of d1,d2 is time, the other is date
inline bool IS_DATE_AND_TIME(const dsc d1, const dsc d2)
{
return (((d1.dsc_dtype == dtype_sql_time) && (d2.dsc_dtype == dtype_sql_date)) ||
((d2.dsc_dtype == dtype_sql_time) && (d1.dsc_dtype == dtype_sql_date)));
}
//#define IS_DATE_AND_TIME(d1, d2)
// ((((d1).dsc_dtype==dtype_sql_time)&&((d2).dsc_dtype==dtype_sql_date)) ||
// (((d2).dsc_dtype==dtype_sql_time)&&((d1).dsc_dtype==dtype_sql_date)))
// size of req_rpb[0]
const size_t REQ_TAIL = sizeof(Jrd::jrd_req::blk_repeat_type);
const int MAP_LENGTH = 256;
/* RITTER - changed HP10 to HPUX */
// RITTER - changed HP10 to HPUX
#if defined (HPUX) && defined (SUPERSERVER)
const int MAX_RECURSION = 96;
#else
@ -2402,7 +2398,7 @@ void CMP_post_resource( ResourceList* rsc_ptr, void* obj, Resource::rsc_s type,
resource.rsc_coll = (Collation*) obj;
break;
default:
BUGCHECK(220); /* msg 220 unknown resource */
BUGCHECK(220); // msg 220 unknown resource
break;
}