spelling fixes for p5 backend

merge-requests/540/head
Peter Marschall 2020-08-28 18:43:42 +02:00
rodzic 0b2e89db18
commit 192262a277
4 zmienionych plików z 23 dodań i 23 usunięć

Wyświetl plik

@ -203,7 +203,7 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
* undesirable to call this function first.
* @param device_list pointer where to store the device list
* @param local_only SANE_TRUE if only local devices are required.
* @return SANE_STATUS_GOOD when successfull
* @return SANE_STATUS_GOOD when successful
*/
SANE_Status
sane_get_devices (const SANE_Device *** device_list, SANE_Bool local_only)
@ -358,7 +358,7 @@ sane_open (SANE_String_Const name, SANE_Handle * handle)
}
}
/* check wether we have found a match or reach the end of the device list */
/* check whether we have found a match or reach the end of the device list */
if (!device)
{
DBG (DBG_info, "sane_open: no device found\n");
@ -408,7 +408,7 @@ sane_open (SANE_String_Const name, SANE_Handle * handle)
return SANE_STATUS_NO_MEM;
}
/* initalize session */
/* initialize session */
session->dev = device;
session->scanning = SANE_FALSE;
session->non_blocking = SANE_FALSE;
@ -430,8 +430,8 @@ sane_open (SANE_String_Const name, SANE_Handle * handle)
/**
* Set non blocking mode. In this mode, read return immediatly when
* no data is available whithin sane_read(), instead of polling the scanner.
* Set non blocking mode. In this mode, read return immediately when
* no data is available within sane_read(), instead of polling the scanner.
*/
SANE_Status
sane_set_io_mode (SANE_Handle handle, SANE_Bool non_blocking)
@ -769,7 +769,7 @@ sane_control_option (SANE_Handle handle, SANE_Int option,
return status;
}
/* return immediatly if no change */
/* return immediately if no change */
if (s->options[option].descriptor.type == SANE_TYPE_INT
&& *(SANE_Word *) val == s->options[option].value.w)
{
@ -1340,7 +1340,7 @@ sane_read (SANE_Handle handle, SANE_Byte * buf,
* handle h is a valid handle) but usually affects long-running
* operations only (such as image is acquisition). It is safe to call
* this function asynchronously (e.g., from within a signal handler).
* It is important to note that completion of this operaton does not
* It is important to note that completion of this operation does not
* imply that the currently pending operation has been cancelled. It
* only guarantees that cancellation has been initiated. Cancellation
* completes only when the cancelled call returns (typically with a
@ -1601,7 +1601,7 @@ config_attach (SANEI_Config __sane_unused__ * config, const char *devname,
/* the devname has been processed and is ready to be used
* directly. The config struct contains all the configuration data for
* the corresponding device. Since there is no ressources common to each
* the corresponding device. Since there is no resources common to each
* backends regarding parallel port, we can directly call the attach
* function. */
attach_p5 (devname, config);
@ -1686,7 +1686,7 @@ attach_p5 (const char *devicename, SANEI_Config * config)
device->next = devices;
devices = device;
/* intialization is done at sane_open */
/* initialization is done at sane_open */
device->initialized = SANE_FALSE;
device->calibrated = SANE_FALSE;
@ -1696,7 +1696,7 @@ attach_p5 (const char *devicename, SANEI_Config * config)
/** @brief set initial value for the scanning options
* for each sessions, control options are initalized based on the capability
* for each sessions, control options are initialized based on the capability
* of the model of the physical device.
* @param session scanner session to initialize options
* @return SANE_STATUS_GOOD on success
@ -1765,7 +1765,7 @@ init_options (struct P5_Session *session)
/** @brief build resolution list
* We merge xdpi and ydpi list to provide only one resolution option control.
* This is the most common case for backends and fronteds and give 'square'
* pixels. The SANE API allow to control x and y dpi independantly, but this is
* pixels. The SANE API allow to control x and y dpi independently, but this is
* rarely done and may confuse both frontends and users. In case a dpi value exists
* for one but not for the other, the backend will have to crop data so that the
* frontend is unaffected. A common case is that motor resolution (ydpi) is higher
@ -2025,7 +2025,7 @@ probe (const char *devicename)
/* check for document presence 0xC6: present, 0xC3 no document */
test_document (fd);
/* release device nd parport for next uses */
/* release device and parport for next uses */
disconnect (fd);
close_pp (fd);

Wyświetl plik

@ -140,8 +140,8 @@ typedef struct P5_Option
} P5_Option;
/**
* Frontend session. This struct holds informations usefull for
* the functions defined in SANE's standard. Informations closer
* Frontend session. This struct holds information useful for
* the functions defined in SANE's standard. Information closer
* to the hardware are in the P5_Device structure. There is
* as many session structure than frontends using the backend.
*/
@ -169,7 +169,7 @@ typedef struct P5_Session
SANE_Bool scanning;
/** @brief non blocking flag
* SANE_TRUE if sane_read are non-blocking, ie returns immediatly if there
* SANE_TRUE if sane_read are non-blocking, ie returns immediately if there
* is no data available from the scanning device. Modified by sane_set_io_mode()
*/
SANE_Bool non_blocking;

Wyświetl plik

@ -280,7 +280,7 @@ write_reg2 (int fd, uint8_t index, uint16_t value)
* to check the scanner is correctly working.
* @param fd file descriptor used to access hardware
* @param addr address where to write and read
* @return SANE_TRUE on succes, SANE_FALSE otherwise
* @return SANE_TRUE on success, SANE_FALSE otherwise
*/
static int
memtest (int fd, uint16_t addr)
@ -615,7 +615,7 @@ test_document (int fd)
/**
* return the amount of scanned data available
* @param fd file descriptor to access scanner
* @return avaible byte number
* @return available byte number
*/
static int
available_bytes (int fd)
@ -1122,7 +1122,7 @@ cleanup_calibration (P5_Device * dev)
}
/** detect a black scan line
* parses the given buffer and retrun SANE_TRUE if the line is an
* parses the given buffer and return SANE_TRUE if the line is an
* acceptable black line for calibration
* @param buffer data line to parse
* @param pixels number of pixels
@ -1171,7 +1171,7 @@ is_black_line (uint8_t * buffer, unsigned int pixels, int mode)
}
/** detect a white scan line
* parses the given buffer and retrun SANE_TRUE if the line is an
* parses the given buffer and return SANE_TRUE if the line is an
* acceptable white line for calibration
* @param buffer data line to parse
* @param pixels number of pixels

Wyświetl plik

@ -85,7 +85,7 @@ typedef struct P5_Calibration_Data
/**
* This structure describes a particular model which is handled by the backend.
* Contained data is immutable and is used to initalize the P5_Device
* Contained data is immutable and is used to initialize the P5_Device
* structure.
*/
typedef struct P5_Model
@ -178,7 +178,7 @@ typedef struct P5_Device
struct P5_Device *next;
/**
* Points to a structure that decribes model capabilities, geometry
* Points to a structure that describes model capabilities, geometry
* and default settings.
*/
P5_Model *model;
@ -197,7 +197,7 @@ typedef struct P5_Device
SANE_Bool local;
/**
* True if device has been intialized.
* True if device has been initialized.
*/
SANE_Bool initialized;
@ -211,7 +211,7 @@ typedef struct P5_Device
/** @brief scan parameters
* The scan done by the hardware can be different from the one at the SANE
* frontend session. For instance:
* - xdpy and ydpi may be different to accomodate hardware capabilites.
* - xdpy and ydpi may be different to accommodate hardware capabilities.
* - many CCD scanners need to scan more lines to correct the 'line
* distance shift' effect.
* - emulated modes (lineart from gray scan, or gray scan for color one)