From c1d4a1cc8e065dd23ba12ae52d47743d02198101 Mon Sep 17 00:00:00 2001 From: robocop Date: Fri, 20 Nov 2009 09:19:50 +0000 Subject: [PATCH] Comments. --- src/jrd/cmp.cpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/jrd/cmp.cpp b/src/jrd/cmp.cpp index 8749c67c78..0c6d57495c 100644 --- a/src/jrd/cmp.cpp +++ b/src/jrd/cmp.cpp @@ -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; }