Ignore:
Timestamp:
Jul 27, 2009, 1:26:15 AM (11 years ago)
Author:
Sam Hocevar
Message:

Rename caca_get_cursor_x() and caca_get_cursor_y() to caca_wherex() and
caca_wherey(), in order to match the old <conio.h> naming scheme.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-php/php_caca.c

    r3582 r3587  
    3232    PHP_FE(caca_get_version, NULL)
    3333    PHP_FE(caca_gotoxy, NULL)
    34     PHP_FE(caca_get_cursor_x, NULL)
    35     PHP_FE(caca_get_cursor_y, NULL)
     34    PHP_FE(caca_wherex, NULL)
     35    PHP_FE(caca_wherey, NULL)
    3636    PHP_FE(caca_put_char, NULL)
    3737    PHP_FE(caca_get_char, NULL)
     
    493493}
    494494
    495 PHP_FUNCTION(caca_get_cursor_x) {
     495PHP_FUNCTION(caca_wherex) {
    496496    caca_canvas_t *canvas;
    497497    FETCH_CANVAS(canvas);
    498     RETURN_LONG(caca_get_cursor_x(canvas));
    499 }
    500 
    501 PHP_FUNCTION(caca_get_cursor_y) {
     498    RETURN_LONG(caca_wherex(canvas));
     499}
     500
     501PHP_FUNCTION(caca_wherey) {
    502502    caca_canvas_t *canvas;
    503503    FETCH_CANVAS(canvas);
    504     RETURN_LONG(caca_get_cursor_y(canvas));
     504    RETURN_LONG(caca_wherey(canvas));
    505505}
    506506
Note: See TracChangeset for help on using the changeset viewer.