pike.git / src / modules / SANE / sane.c

version» Context lines:

pike.git/src/modules/SANE/sane.c:343:    sp++;get_all_args( "set_option", args, "%s", &name );sp--;    sane_control_option( THIS->h, no, SANE_ACTION_SET_VALUE,    &name, &tmp );    case SANE_TYPE_GROUP:    break;    }    } else {    int_value = 1;    sane_control_option( THIS->h, no, SANE_ACTION_SET_AUTO, &int_value, &tmp );    } -  pop_n_elems( args ); -  push_int( 0 ); +    }         /*! @decl mixed get_option( string name )    */   static void f_scanner_get_option( INT32 args )   {    char *name;    int no;    SANE_Int int_value;
pike.git/src/modules/SANE/sane.c:594:    break;    }    THREADS_DISALLOW();    ref_push_object( o );    push_int( i );    ref_push_object( Pike_fp->current_object );    apply_svalue( sp-args-3, 3 );    pop_stack();    }    free_object( o ); -  pop_n_elems( args ); -  push_int( 0 ); +    }      struct row_scan_struct   {    SANE_Handle h;    SANE_Parameters p;    rgb_group *r;    struct object *o;    struct object *t;    int current_row;
pike.git/src/modules/SANE/sane.c:733:    if( sane_get_select_fd( THIS->h, &fd ) )    {    free_object( rsp->o );    free_object( rsp->t );    free( rsp->buffer );    free( rsp );    Pike_error("Failed to get select fd for scanning device!\n");    }    set_read_callback( fd, (file_callback)nonblocking_row_scan_callback,    (void*)rsp ); -  push_int( 0 ); +    }      /*! @decl void cancel_scan()    */   static void f_scanner_cancel_scan( INT32 UNUSED(args) )   {    sane_cancel( THIS->h );   }      /*! @endclass