pike.git / src / post_modules / GTK2 / source / gdkevent.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gdkevent.pre:1:   /* -*- C -*- */   class GDK2.Event;      //! Gdk events.      %{   #define GTK_GDKEVENT(X) ((GdkEvent *)X)    - #define RETURN_NIL() do{ my_pop_n_elems( args );push_int( 0 );Pike_sp[-1].subtype=1;return; } while(0) - #define RETURN_INT(X) do { my_pop_n_elems( args );push_int( X ); return; } while(0) - #define RETURN_FLOAT(X) do { my_pop_n_elems( args );push_float( X ); return; } while(0) - #define RETURN_STRING(X) do { my_pop_n_elems( args );push_string( X ); return; } while(0) - #define RETURN_ATOM(X) do { my_pop_n_elems( args );push_atom( X ); return; } while(0) + #define RETURN_NIL() do{ pgtk2_pop_n_elems( args );push_int( 0 );Pike_sp[-1].subtype=1;return; } while(0) + #define RETURN_INT(X) do { pgtk2_pop_n_elems( args );push_int( X ); return; } while(0) + #define RETURN_FLOAT(X) do { pgtk2_pop_n_elems( args );push_float( X ); return; } while(0) + #define RETURN_STRING(X) do { pgtk2_pop_n_elems( args );push_string( X ); return; } while(0) + #define RETURN_ATOM(X) do { pgtk2_pop_n_elems( args );push_atom( X ); return; } while(0)      static int last_event_time; - int pgtk_last_event_time() + int pgtk2_last_event_time()   {    return last_event_time;   }   %}      void destroy()   //! Destructor.   {    if( THIS->obj )    g_free( THIS->obj );    THIS->obj = 0; -  my_pop_n_elems(args); +  pgtk2_pop_n_elems(args);    push_int(0);   }      mixed _index(string ind)   //! Return an index.   {    struct pike_string *index;    GdkEvent *e = (GdkEvent *)THIS->obj;    if(!e) Pike_error("No event\n");    get_all_args( "`[]", args, "%S", &index );
pike.git/src/post_modules/GTK2/source/gdkevent.pre:225:   {    int mode = 0;    if(args>0 && Pike_sp[-args].type == PIKE_T_INT)    mode = Pike_sp[-args].u.integer;    pop_n_elems( args );    if(mode != 'O') {    push_undefined();    return;    }    ref_push_string( _STR("GDK2.Event(") ); -  ref_push_string( _STR("type") ); pgdk_event__index( 1 ); +  ref_push_string( _STR("type") ); pgdk2_event__index( 1 );    ref_push_string( _STR(")") );    f_add( 3 );   }      mixed cast(string to)   //! Cast to different types.   {    struct svalue *osp = Pike_sp-args;    char *a;    GdkEvent *e = (GdkEvent *)THIS->obj;