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

Code cleaning

This commit is contained in:
brodsom 2003-09-08 01:45:09 +00:00
parent 5dd35383e8
commit 382cd1c45e
6 changed files with 7 additions and 8 deletions

View File

@ -122,8 +122,7 @@ int WINAPI WinMain(
GetVersionEx((LPOSVERSIONINFO) & OsVersionInfo);
/* service_flag is TRUE for NT false for 95 */
service_flag = ((OsVersionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT)
? true : false);
service_flag = (OsVersionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT);
if (service_flag == true)
service_flag = parse_args(lpszCmdLine, &service_flag);

View File

@ -24,7 +24,7 @@
*
*/
/*
$Id: isql.epp,v 1.40 2003-09-05 11:25:53 brodsom Exp $
$Id: isql.epp,v 1.41 2003-09-08 01:43:03 brodsom Exp $
Revision 1.5 2000/11/18 16:49:24 fsg
Increased PRINT_BUFFER_LENGTH to 2048 to show larger plans
Fixed Bug #122563 in extract.e get_procedure_args
@ -6079,7 +6079,7 @@ static void print_item_numeric(SINT64 value,
**************************************/
SSHORT from, to;
bool all_digits_used = false;
bool neg = (value < 0) ? true : false;
bool neg = (value < 0);
/* Handle special case of no negative scale, no '.' required! */
if (scale >= 0) {

View File

@ -2478,7 +2478,7 @@ static JRD_NOD looper(TDBB tdbb, JRD_REQ request, JRD_NOD in_node)
switch (request->req_operation) {
case jrd_req::req_evaluate:
impure->Open(tdbb, node->nod_arg[0], node->nod_count - 2,
node->nod_arg[1] ? false : true);
(!node->nod_arg[1]));
case jrd_req::req_return:
case jrd_req::req_sync:
if (impure->Fetch(tdbb, &node->nod_arg[2])) {

View File

@ -606,7 +606,7 @@ RSB OPT_compile(TDBB tdbb,
rsb = gen_outer(tdbb, opt_, rse, rivers_stack, &sort, &project);
}
else {
bool sort_present = (sort) ? true : false;
bool sort_present = (sort);
bool outer_rivers = false;
JRD_NOD saved_sort_node = sort;

View File

@ -225,7 +225,7 @@ void ThreadPriorityScheduler::Exit(void) {
// Check whether current thread has high priority
//
bool ThreadPriorityScheduler::Boosted(void) {
return InternalGet()->flags & THPS_BOOSTED ? true : false;
return (InternalGet()->flags & THPS_BOOSTED);
}
//____________________________________________________________

View File

@ -101,7 +101,7 @@ char *ChopFileName( char *szName, char *szShortName, ULONG dwLen)
else
pchLastRight = pchRight;
}
bLeft = bLeft ? false : true;
bLeft = !bLeft;
}
for (pchTmp = szShortName, pchLeft = szName;