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

version» Context lines:

pike.git/src/modules/SANE/sane.c:25:   #include "backend.h"   #include "operators.h"   #include "module_support.h"   #include "builtin_functions.h"      #include "../Image/image.h"      /* must be included last */   #include "module_magic.h"    - RCSID("$Id: sane.c,v 1.6 2000/07/28 07:14:53 hubbe Exp $"); + RCSID("$Id: sane.c,v 1.7 2000/08/10 09:51:54 per Exp $");      /*   **! module SANE   **!   **! This module enables access to the SANE (Scanner Access Now Easy)   **! library from pike   **!   **! note - **! $Id: sane.c,v 1.6 2000/07/28 07:14:53 hubbe Exp $ + **! $Id: sane.c,v 1.7 2000/08/10 09:51:54 per Exp $   */      static int sane_is_inited;      struct scanner   {    SANE_Handle h;   };      static void init_sane()
pike.git/src/modules/SANE/sane.c:250:      /*   **! function void set_option( string name, mixed new_value )   **! function void set_option( string name )   **! If no value is specified, the option is set to it's default value   */   static void f_scanner_set_option( INT32 args )   {    char *name;    int no; -  SANE_Int int_value; -  float float_value; +  INT_TYPE int_value; +  FLOAT_TYPE float_value;    SANE_Int tmp;    const SANE_Option_Descriptor *d;    get_all_args( "set_option", args, "%s", &name );       no = find_option( name, &d );    if( args > 1 )    {    switch( d->type )    {    case SANE_TYPE_BOOL: