diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-01-15 10:07:38 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-02-02 10:03:30 +1000 |
commit | db687f718f760ba254ab51994769db101dc9ca3a (patch) | |
tree | 485e4327b1d0759389d9de8d7cdb8f931073cc19 /xkb/xkbtext.c | |
parent | 0ea2b0bd02f8683998e8b9ebc2b96d606ce45f45 (diff) |
xkb: sed True -> TRUE and False -> FALSE
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'xkb/xkbtext.c')
-rw-r--r-- | xkb/xkbtext.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/xkb/xkbtext.c b/xkb/xkbtext.c index 324254dd3..9f49d59ff 100644 --- a/xkb/xkbtext.c +++ b/xkb/xkbtext.c @@ -527,9 +527,9 @@ Bool ok; } else if (format==XkbXKMFile) return str; - for (ok= True,len=0,in=str;*in!='\0';in++,len++) { + for (ok= TRUE,len=0,in=str;*in!='\0';in++,len++) { if (!isprint(*in)) { - ok= False; + ok= FALSE; switch (*in) { case '\n': case '\t': case '\v': case '\b': case '\r': case '\f': @@ -661,18 +661,18 @@ register int len; if (len<((*pLeft)-3)) { strcat(to,from); *pLeft-= len; - return True; + return TRUE; } } *pLeft= -1; - return False; + return FALSE; } /*ARGSUSED*/ static Bool CopyNoActionArgs(XkbDescPtr xkb,XkbAction *action,char *buf,int*sz) { - return True; + return TRUE; } static Bool @@ -694,12 +694,12 @@ unsigned tmp; } else TryCopyStr(buf,"none",sz); if (act->type==XkbSA_LockMods) - return True; + return TRUE; if (act->flags&XkbSA_ClearLocks) TryCopyStr(buf,",clearLocks",sz); if (act->flags&XkbSA_LatchToLock) TryCopyStr(buf,",latchToLock",sz); - return True; + return TRUE; } /*ARGSUSED*/ @@ -719,12 +719,12 @@ char tbuf[32]; else sprintf(tbuf,"+%d",XkbSAGroup(act)); TryCopyStr(buf,tbuf,sz); if (act->type==XkbSA_LockGroup) - return True; + return TRUE; if (act->flags&XkbSA_ClearLocks) TryCopyStr(buf,",clearLocks",sz); if (act->flags&XkbSA_LatchToLock) TryCopyStr(buf,",latchToLock",sz); - return True; + return TRUE; } /*ARGSUSED*/ @@ -749,7 +749,7 @@ char tbuf[32]; TryCopyStr(buf,tbuf,sz); if (act->flags&XkbSA_NoAcceleration) TryCopyStr(buf,",!accel",sz); - return True; + return TRUE; } /*ARGSUSED*/ @@ -783,7 +783,7 @@ char tbuf[32]; } TryCopyStr(buf,tbuf,sz); } - return True; + return TRUE; } /*ARGSUSED*/ @@ -802,7 +802,7 @@ char tbuf[32]; else sprintf(tbuf,"+%d",XkbSAPtrDfltValue(act)); TryCopyStr(buf,tbuf,sz); } - return True; + return TRUE; } static Bool @@ -863,7 +863,7 @@ char tbuf[64]; nOut++; } } - return True; + return TRUE; } /*ARGSUSED*/ @@ -882,7 +882,7 @@ char tbuf[32]; if (act->flags&XkbSA_SwitchApplication) TryCopyStr(buf,",!same",sz); else TryCopyStr(buf,",same",sz); - return True; + return TRUE; } /*ARGSUSED*/ @@ -969,7 +969,7 @@ char tbuf[32]; nOut++; } } - return True; + return TRUE; } /*ARGSUSED*/ @@ -997,7 +997,7 @@ char tbuf[32]; sprintf(tbuf,",data[3]=0x%02x",act->message[3]); TryCopyStr(buf,tbuf,sz); sprintf(tbuf,",data[4]=0x%02x",act->message[4]); TryCopyStr(buf,tbuf,sz); sprintf(tbuf,",data[5]=0x%02x",act->message[5]); TryCopyStr(buf,tbuf,sz); - return True; + return TRUE; } static Bool @@ -1022,7 +1022,7 @@ unsigned vmods,vmods_mask; else sprintf(tbuf,"key=%d",kc); TryCopyStr(buf,tbuf,sz); if ((act->mods_mask==0)&&(vmods_mask==0)) - return True; + return TRUE; if ((act->mods_mask==XkbAllModifiersMask)&& (vmods_mask==XkbAllVirtualModsMask)) { tmp= XkbVModMaskText(xkb,act->mods,vmods,XkbXKBFile); @@ -1043,7 +1043,7 @@ unsigned vmods,vmods_mask; TryCopyStr(buf,tmp,sz); } } - return True; + return TRUE; } /*ARGSUSED*/ @@ -1076,7 +1076,7 @@ char tbuf[32]; } TryCopyStr(buf,tbuf,sz); } - return True; + return TRUE; } /*ARGSUSED*/ @@ -1095,7 +1095,7 @@ char tbuf[32]; sprintf(tbuf,",data[4]=0x%02x",act->data[4]); TryCopyStr(buf,tbuf,sz); sprintf(tbuf,",data[5]=0x%02x",act->data[5]); TryCopyStr(buf,tbuf,sz); sprintf(tbuf,",data[6]=0x%02x",act->data[6]); TryCopyStr(buf,tbuf,sz); - return True; + return TRUE; } typedef Bool (*actionCopy)( @@ -1173,7 +1173,7 @@ char buf[256],*tmp; permanent=((behavior->type&XkbKB_Permanent)!=0); if (type==XkbKB_Lock) { - sprintf(buf,"lock= %s",(permanent?"Permanent":"True")); + sprintf(buf,"lock= %s",(permanent?"Permanent":"TRUE")); } else if (type==XkbKB_RadioGroup) { int g; |