Replace TRUE/FALSE with boolean values true/false.

Finishing the remaining renames from #93.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit d4ef912051)
r14.1.x
Slávek Banko 2 months ago
parent 1fda6a2983
commit cdc02d49b0
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -335,7 +335,7 @@ static int desaturateSampler(WORD In[], WORD Out[], LPVOID /*Cargo*/)
// Back to encoded
cmsFloat2LabEncoded(Out, &LabOut);
return TRUE;
return 1;
}
KisColorAdjustment *KisAbstractColorSpace::createDesaturateAdjustment()

@ -119,7 +119,7 @@ xcf_load_image (XcfInfo * info)
info->cp += xcf_read_int32 (info->fp, (TQ_INT32 *) & height, 1);
info->cp += xcf_read_int32 (info->fp, (TQ_INT32 *) & image_type, 1);
gimage = gimp_create_image (gimp, width, height, image_type, FALSE);
gimage = gimp_create_image (gimp, width, height, image_type, 0);
gimp_image_undo_disable (gimage);

@ -270,7 +270,7 @@ xcf_save_image (XcfInfo *info,
floating_layer = gimp_image_floating_sel (gimage);
if (floating_layer)
floating_sel_relax (floating_layer, FALSE);
floating_sel_relax (floating_layer, 0);
/* write out the tag information for the image */
if (info->file_version > 0)
@ -403,7 +403,7 @@ xcf_save_image (XcfInfo *info,
saved_pos = info->cp;
if (floating_layer)
floating_sel_rigor (floating_layer, FALSE);
floating_sel_rigor (floating_layer, 0);
return !ferror(info->fp);
}
@ -518,11 +518,11 @@ xcf_save_layer_props (XcfInfo *info,
else
{
xcf_check_error (xcf_save_prop (info, gimage, PROP_APPLY_MASK,
error, FALSE));
error, 0));
xcf_check_error (xcf_save_prop (info, gimage, PROP_EDIT_MASK,
error, FALSE));
error, 0));
xcf_check_error (xcf_save_prop (info, gimage, PROP_SHOW_MASK,
error, FALSE));
error, 0));
}
xcf_check_error (xcf_save_prop (info, gimage, PROP_OFFSETS, error,

@ -1930,7 +1930,7 @@ KoFilter::ConversionStatus GNUMERICFilter::convert( const TQCString & from, cons
// This is a mapping of exprID to expressions.
TQDict<char> exprID_dict( 17, FALSE );
TQDict<char> exprID_dict( 17, 0 );
int num = 1;
while (!sheet.isNull())

@ -134,7 +134,7 @@ externaldef(xpdftreeclassrec) XPDFTreeClassRec xpdfTreeClassRec = {
sizeof(XPDFTreeRec), // widget_size
NULL, // class_initialize
&classPartInitialize, // class_part_initialize
FALSE, // class_inited
False, // class_inited
&initialize, // initialize
NULL, // initialize_hook
XtInheritRealize, // realize
@ -143,10 +143,10 @@ externaldef(xpdftreeclassrec) XPDFTreeClassRec xpdfTreeClassRec = {
resources, // resources
XtNumber(resources), // num_resources
NULLQUARK, // xrm_class
TRUE, // compress_motion
True, // compress_motion
XtExposeCompressMaximal, // compress_exposure
TRUE, // compress_enterleave
FALSE, // visible_interest
True, // compress_enterleave
False, // visible_interest
&destroy, // destroy
&resize, // resize
&redisplay, // expose

@ -122,9 +122,9 @@ static RTFProperty propertyTable[] =
PROP( "Text", "cell", insertTableCell, 0L, 0 ),
PROP( 0L, "cellx", insertCellDef, 0L, 0 ),
MEMBER( 0L, "cf", setNumericProperty, state.format.color, 0 ),
PROP( 0L, "chdate", insertDateTime, 0L, TRUE ),
PROP( 0L, "chdate", insertDateTime, 0L, 1 ),
PROP( 0L, "chpgn", insertPageNumber, 0L, 0 ),
PROP( 0L, "chtime", insertDateTime, 0L, FALSE ),
PROP( 0L, "chtime", insertDateTime, 0L, 0 ),
PROP( 0L, "clbrdrb", selectLayoutBorderFromCell, 0L, 3 ),
PROP( 0L, "clbrdrl", selectLayoutBorderFromCell, 0L, 0 ),
PROP( 0L, "clbrdrr", selectLayoutBorderFromCell, 0L, 1 ),

@ -71,7 +71,7 @@ stack_ptr top_type_stack[2] = { NULL, NULL };
int stack_next, stack_last;
stack_item process_stack[STACK_SIZE];
int inverse = FALSE;
bool inverse = false;
int precedence_base = 0;
num_base current_base = NB_DECIMAL;
int input_limit = 0;
@ -229,7 +229,7 @@ void TQtCalculator::RefreshCalculator(void)
InitStack();
display_error = 0;
DISPLAY_AMOUNT = 0L;
inverse = FALSE;
inverse = false;
UpdateDisplay();
last_input = DIGIT; // must set last to DIGIT after Update Display in order
// not to get a display holding e.g. 0.000
@ -445,7 +445,7 @@ void TQtCalculator::Or()
eestate = false;
if (inverse){
EnterStackFunction(2); // XOR
inverse = FALSE;
inverse = false;
}
else {
EnterStackFunction(1); // OR
@ -467,7 +467,7 @@ void TQtCalculator::Shift()
last_input = OPERATION;
if (inverse){
EnterStackFunction(5); // Rsh
inverse = FALSE;
inverse = false;
}
else {
EnterStackFunction(4); // Lsh
@ -510,7 +510,7 @@ void TQtCalculator::Mod()
last_input = OPERATION;
if (inverse){
EnterStackFunction(13); // InvMod
inverse = FALSE;
inverse = false;
}
else {
EnterStackFunction(10); // Mod
@ -523,7 +523,7 @@ void TQtCalculator::Power()
last_input = OPERATION;
if (inverse){
EnterStackFunction(12); // InvPower
inverse = FALSE;
inverse = false;
}
else {
EnterStackFunction(11); // Power
@ -544,7 +544,7 @@ void TQtCalculator::EnterStackFunction(int data)
/*
if (inverse ) {
dummy = 3;
inverse = FALSE;
inverse = false;
}
else {
dummy = 1;
@ -645,7 +645,7 @@ void TQtCalculator::EnterInt()
}
else {
DISPLAY_AMOUNT = work_amount1;
inverse = FALSE;
inverse = false;
}
refresh_display = 1;
@ -693,7 +693,7 @@ void TQtCalculator::EnterSquare()
else
DISPLAY_AMOUNT = SQRT(DISPLAY_AMOUNT);
refresh_display = 1;
inverse = FALSE;
inverse = false;
last_input = OPERATION;
UpdateDisplay();
@ -885,7 +885,7 @@ void TQtCalculator::ComputeSin()
DISPLAY_AMOUNT = ASINH( work_amount);
if (errno == EDOM || errno == ERANGE)
display_error = 1;
inverse = FALSE; // reset the inverse flag
inverse = false; // reset the inverse flag
}
}
else {
@ -922,7 +922,7 @@ void TQtCalculator::ComputeSin()
DISPLAY_AMOUNT = work_amount;
if (errno == EDOM || errno == ERANGE)
display_error = 1;
inverse = FALSE; // reset the inverse flag
inverse = false; // reset the inverse flag
}
}
@ -1015,7 +1015,7 @@ void TQtCalculator::ComputeCos()
DISPLAY_AMOUNT = ACOSH( work_amount);
if (errno == EDOM || errno == ERANGE)
display_error = 1;
inverse = FALSE; // reset the inverse flag
inverse = false; // reset the inverse flag
}
}
else {
@ -1054,7 +1054,7 @@ void TQtCalculator::ComputeCos()
if (errno == EDOM || errno == ERANGE)
display_error = 1;
inverse = FALSE; // reset the inverse flag
inverse = false; // reset the inverse flag
}
}
@ -1140,7 +1140,7 @@ void TQtCalculator::ComputeTan()
DISPLAY_AMOUNT = ATANH( work_amount);
if (errno == EDOM || errno == ERANGE)
display_error = 1;
inverse = FALSE; // reset the inverse flag
inverse = false; // reset the inverse flag
}
}
else {
@ -1181,7 +1181,7 @@ void TQtCalculator::ComputeTan()
if (errno == EDOM || errno == ERANGE)
display_error = 1;
inverse = FALSE; // reset the inverse flag
inverse = false; // reset the inverse flag
}
}
@ -1259,7 +1259,7 @@ void TQtCalculator::EnterLogr()
} else if (inverse) {
DISPLAY_AMOUNT = POW(10, DISPLAY_AMOUNT);
refresh_display = 1;
inverse = FALSE;
inverse = false;
UpdateDisplay();
}
break;
@ -1311,7 +1311,7 @@ void TQtCalculator::EnterLogn()
} else if (inverse) {
DISPLAY_AMOUNT = EXP(DISPLAY_AMOUNT);
refresh_display = 1;
inverse =FALSE;
inverse =false;
UpdateDisplay();
}
break;
@ -1442,7 +1442,7 @@ void TQtCalculator::EE()
{
if(inverse){
DISPLAY_AMOUNT = pi;
inverse = FALSE;
inverse = false;
UpdateDisplay();
}
else{
@ -1477,7 +1477,7 @@ void TQtCalculator::Mplusminus()
memory_num += DISPLAY_AMOUNT;
else {
memory_num -= DISPLAY_AMOUNT;
inverse = FALSE;
inverse = false;
}
}

@ -190,7 +190,7 @@ namespace Kross {
struct RubyType<bool>
{
inline static VALUE toVALUE(bool b) {
return b ? TRUE : FALSE;
return b ? 1 : 0;
}
inline static bool toVariant(VALUE value) {
switch( TYPE(value) ) {

Loading…
Cancel
Save