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

version» Context lines:

pike.git/src/modules/SANE/sane.c:42:    *! library from pike    */      static int sane_is_inited;      struct scanner   {    SANE_Handle h;   };    - static void init_sane() + static void init_sane(void)   {    if( sane_init( NULL, NULL ) )    Pike_error( "Sane init failed.\n" );    sane_is_inited = 1;   }      static void push_device( SANE_Device *d )   {    push_text( "name" ); push_text( d->name );    push_text( "vendor" ); push_text( d->vendor );
pike.git/src/modules/SANE/sane.c:468:    if( sane_read( h, buffer, MINIMUM(8000,nbytes), &amnt_read ) )    return;    while( amnt_read-- && nbytes--)    {    data[0] = *(pp++);    data += 3;    }    }   }    - static void assert_image_program() + static void assert_image_program(void)   {    if( !image_program )    {    push_text( "Image.Image" );    APPLY_MASTER( "resolv", 1 );    image_program = program_from_svalue( sp - 1 );    sp--;/* Do not free image program.. */    }    if( !image_program )    Pike_error("No Image.Image?!\n");