* ext/curses/curses.c (window_subwin): call NUM2INT() before
GetWINDOW(). fixed: [ruby-dev:25161] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4627c5a19b
commit
562ddea6ba
@ -1,3 +1,8 @@
|
|||||||
|
Mon Dec 13 02:45:51 2004 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/curses/curses.c (window_subwin): call NUM2INT() before
|
||||||
|
GetWINDOW(). fixed: [ruby-dev:25161]
|
||||||
|
|
||||||
Mon Dec 13 00:58:02 2004 Tanaka Akira <akr@m17n.org>
|
Mon Dec 13 00:58:02 2004 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
* lib/pathname.rb (cleanpath_aggressive): make it private.
|
* lib/pathname.rb (cleanpath_aggressive): make it private.
|
||||||
|
@ -766,22 +766,26 @@ window_initialize(obj, h, w, top, left)
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* def subwin(h, w, top, left) */
|
/* def subwin(height, width, top, left) */
|
||||||
static VALUE
|
static VALUE
|
||||||
window_subwin(obj, h, w, top, left)
|
window_subwin(obj, height, width, top, left)
|
||||||
VALUE obj;
|
VALUE obj;
|
||||||
VALUE h;
|
VALUE height;
|
||||||
VALUE w;
|
VALUE width;
|
||||||
VALUE top;
|
VALUE top;
|
||||||
VALUE left;
|
VALUE left;
|
||||||
{
|
{
|
||||||
struct windata *winp;
|
struct windata *winp;
|
||||||
WINDOW *window;
|
WINDOW *window;
|
||||||
VALUE win;
|
VALUE win;
|
||||||
|
int h, w, t, l;
|
||||||
|
|
||||||
|
h = NUM2INT(height);
|
||||||
|
w = NUM2INT(width);
|
||||||
|
t = NUM2INT(top);
|
||||||
|
l = NUM2INT(left);
|
||||||
GetWINDOW(obj, winp);
|
GetWINDOW(obj, winp);
|
||||||
window = subwin(winp->window, NUM2INT(h), NUM2INT(w),
|
window = subwin(winp->window, h, w, t, l);
|
||||||
NUM2INT(top), NUM2INT(left));
|
|
||||||
win = prep_window(rb_obj_class(obj), window);
|
win = prep_window(rb_obj_class(obj), window);
|
||||||
|
|
||||||
return win;
|
return win;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user