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

version» Context lines:

pike.git/src/modules/SANE/sane.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: sane.c,v 1.17 2003/03/14 15:57:49 grubba Exp $ + || $Id: sane.c,v 1.18 2003/10/13 17:42:08 grubba Exp $   */      #include "config.h"      #if defined(HAVE_SANE_SANE_H) || defined(HAVE_SANE_H)   #ifdef HAVE_SANE_SANE_H   #include <sane/sane.h>   #else   #ifdef HAVE_SANE_H   #include <sane.h>
pike.git/src/modules/SANE/sane.c:32:   #include "backend.h"   #include "operators.h"   #include "module_support.h"   #include "builtin_functions.h"      #include "../Image/image.h"         #define sp Pike_sp    - RCSID("$Id: sane.c,v 1.17 2003/03/14 15:57:49 grubba Exp $"); + RCSID("$Id: sane.c,v 1.18 2003/10/13 17:42:08 grubba Exp $");      /*! @module SANE    *!    *! This module enables access to the SANE (Scanner Access Now Easy)    *! library from pike    */      static int sane_is_inited;      struct scanner
pike.git/src/modules/SANE/sane.c:327:    get_all_args( "set_option", args, "%s", &name );       no = find_option( name, &d );    if( args > 1 )    {    switch( d->type )    {    case SANE_TYPE_BOOL:    case SANE_TYPE_INT:    case SANE_TYPE_BUTTON: -  sp++;get_all_args( "set_option", args, "%D", &int_value );sp--; +  sp++;get_all_args( "set_option", args, "%I", &int_value );sp--;    sane_control_option( THIS->h, no, SANE_ACTION_SET_VALUE,    &int_value, &tmp );    break;    case SANE_TYPE_FIXED:    sp++;get_all_args( "set_option", args, "%F", &float_value );sp--;    int_value = SANE_FIX(((double)float_value));    sane_control_option( THIS->h, no, SANE_ACTION_SET_VALUE,    &int_value, &tmp );    break;    case SANE_TYPE_STRING: