mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-16 08:04:36 -04:00
change _errno_ to error_number
This commit is contained in:
parent
73a51d6813
commit
abd18ac7a1
2 changed files with 16 additions and 16 deletions
|
@ -141,7 +141,7 @@ void getRSSwidths(int val, int n, int elements, int maxWidth, int noNarrow)
|
|||
|
||||
int rss14(struct zint_symbol *symbol, unsigned char source[])
|
||||
{ /* GS1 DataBar-14 */
|
||||
int _errno_ = 0, i, j, read, mask;
|
||||
int error_number = 0, i, j, read, mask;
|
||||
short int accum[112], left_reg[112], right_reg[112], x_reg[112], y_reg[112];
|
||||
int data_character[4], data_group[4], v_odd[4], v_even[4];
|
||||
int data_widths[8][4], checksum, c_left, c_right, total_widths[46], writer;
|
||||
|
@ -154,10 +154,10 @@ int rss14(struct zint_symbol *symbol, unsigned char source[])
|
|||
strcpy(symbol->errtxt, "error: input too long");
|
||||
return ERROR_TOO_LONG;
|
||||
}
|
||||
_errno_ = is_sane(NESET, source);
|
||||
if(_errno_ == ERROR_INVALID_DATA) {
|
||||
error_number = is_sane(NESET, source);
|
||||
if(error_number == ERROR_INVALID_DATA) {
|
||||
strcpy(symbol->errtxt, "error: invalid characters in data");
|
||||
return _errno_;
|
||||
return error_number;
|
||||
}
|
||||
|
||||
/* make some room for a separator row for composite symbols */
|
||||
|
@ -632,12 +632,12 @@ int rss14(struct zint_symbol *symbol, unsigned char source[])
|
|||
}
|
||||
|
||||
|
||||
return _errno_;
|
||||
return error_number;
|
||||
}
|
||||
|
||||
int rsslimited(struct zint_symbol *symbol, unsigned char source[])
|
||||
{ /* GS1 DataBar Limited */
|
||||
int _errno_ = 0, i, mask;
|
||||
int error_number = 0, i, mask;
|
||||
short int accum[112], left_reg[112], right_reg[112], x_reg[112], y_reg[112];
|
||||
int left_group, right_group, left_odd, left_even, right_odd, right_even;
|
||||
int left_character, right_character, left_widths[14], right_widths[14];
|
||||
|
@ -651,10 +651,10 @@ int rsslimited(struct zint_symbol *symbol, unsigned char source[])
|
|||
strcpy(symbol->errtxt, "error: input too long");
|
||||
return ERROR_TOO_LONG;
|
||||
}
|
||||
_errno_ = is_sane(NESET, source);
|
||||
if(_errno_ == ERROR_INVALID_DATA) {
|
||||
error_number = is_sane(NESET, source);
|
||||
if(error_number == ERROR_INVALID_DATA) {
|
||||
strcpy(symbol->errtxt, "error: invalid characters in data");
|
||||
return _errno_;
|
||||
return error_number;
|
||||
}
|
||||
|
||||
/* make some room for a separator row for composite symbols */
|
||||
|
@ -898,7 +898,7 @@ int rsslimited(struct zint_symbol *symbol, unsigned char source[])
|
|||
|
||||
concat(symbol->text, hrt);
|
||||
|
||||
return _errno_;
|
||||
return error_number;
|
||||
}
|
||||
|
||||
int general_rules(char field[], char type[])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue