mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/curses/curses.c: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7f36764938
commit
b2e82f2dfb
1 changed files with 31 additions and 31 deletions
|
@ -1326,7 +1326,7 @@ window_attron(VALUE obj, VALUE attrs)
|
|||
|
||||
GetWINDOW(obj,winp);
|
||||
val = INT2FIX(wattron(winp->window,NUM2INT(attrs)));
|
||||
if( rb_block_given_p() ){
|
||||
if (rb_block_given_p()) {
|
||||
rb_yield(val);
|
||||
wattroff(winp->window,NUM2INT(attrs));
|
||||
return val;
|
||||
|
@ -1775,7 +1775,7 @@ Init_curses(void)
|
|||
{
|
||||
int i;
|
||||
char c[8];
|
||||
for( i=0; i<64; i++ ){
|
||||
for (i=0; i<64; i++) {
|
||||
sprintf(c, "KEY_F%d", i);
|
||||
rb_define_const(mCurses, c, INT2NUM(KEY_F(i)));
|
||||
sprintf(c, "F%d", i);
|
||||
|
@ -2118,8 +2118,8 @@ Init_curses(void)
|
|||
{
|
||||
int c;
|
||||
char name[] = "KEY_CTRL_x";
|
||||
for( c = 'A'; c <= 'Z'; c++ ){
|
||||
sprintf(name, "KEY_CTRL_%c", c);
|
||||
for (c = 'A'; c <= 'Z'; c++) {
|
||||
name[sizeof(name) - 2] = c;
|
||||
rb_define_const(mCurses, name, INT2FIX(c - 'A' + 1));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue