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

version» Context lines:

pike.git/src/modules/SANE/sane.c:21:   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "threads.h"   #include "array.h"   #include "pike_error.h"   #include "mapping.h"   #include "multiset.h"   #include "backend.h"   #include "operators.h" + #include "pike_types.h"   #include "module_support.h"   #include "builtin_functions.h"      #include "../Image/image.h"         #define sp Pike_sp      /*! @module SANE    *!
pike.git/src/modules/SANE/sane.c:643:    {    case SANE_FRAME_GRAY:    for( i=0; i<c->p.bytes_per_line; i++ )    {    c->r[i].r = c->buffer[i];    c->r[i].g = c->buffer[i];    c->r[i].b = c->buffer[i];    }    break;    case SANE_FRAME_RGB: -  MEMCPY( (char *)c->r, c->buffer, c->p.bytes_per_line ); +  memcpy( c->r, c->buffer, c->p.bytes_per_line );    break;    default:break;    }    c->bufferpos=0;    }    }    THREADS_DISALLOW();       if( !nbytes || c->bufferpos )    return; /* await more data */