backend: standard lib includes before local (fixes [[e1522e]])

This commit is contained in:
gitlost 2022-09-13 22:08:08 +01:00
parent e1522e0808
commit a6cc4f5203
11 changed files with 17 additions and 18 deletions

View File

@ -32,12 +32,12 @@
#include <errno.h>
#include <stdio.h>
#include "common.h"
#include "bmp.h" /* Bitmap header structure */
#ifdef _MSC_VER
#include <io.h>
#include <fcntl.h>
#endif
#include "common.h"
#include "bmp.h" /* Bitmap header structure */
INTERNAL int bmp_pixel_plot(struct zint_symbol *symbol, unsigned char *pixelbuf) {
int i, row, column;

View File

@ -30,11 +30,11 @@
*/
/* SPDX-License-Identifier: BSD-3-Clause */
#include "common.h"
#include "code128.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include "common.h"
#include "code128.h"
#define uchar unsigned char

View File

@ -34,10 +34,10 @@
/* Code 16k can hold up to 77 characters or 154 numbers */
#include "common.h"
#include "code128.h"
#include <assert.h>
#include <stdio.h>
#include "common.h"
#include "code128.h"
/* Note using C128Table with extra entry at 106 (Triple Shift) for C16KTable */

View File

@ -32,11 +32,11 @@
#include <errno.h>
#include <stdio.h>
#include "common.h"
#ifdef _MSC_VER
#include <io.h>
#include <fcntl.h>
#endif
#include "common.h"
/* Limit initial LZW buffer size to this in expectation that compressed data will fit for typical scalings */
#define GIF_LZW_PAGE_SIZE 0x100000 /* Megabyte */

View File

@ -33,12 +33,12 @@
/* This code attempts to implement Han Xin Code according to ISO/IEC 20830:2021
* (previously ISO/IEC 20830 (draft 2019-10-10) and AIMD-015:2010 (Rev 0.8)) */
#include <assert.h>
#include <stdio.h>
#include "common.h"
#include "reedsol.h"
#include "hanxin.h"
#include "eci.h"
#include <assert.h>
/* Find which submode to use for a text character */
static int hx_getsubmode(const unsigned int input) {

View File

@ -33,9 +33,9 @@
/* The function "USPS_MSB_Math_CRC11GenerateFrameCheckSequence"
is Copyright (C) 2006 United States Postal Service */
#include <stdio.h>
#include "common.h"
#include "large.h"
#include <stdio.h>
#define SODIUM_MNS_F (IS_NUM_F | IS_MNS_F) /* SODIUM "0123456789-" */

View File

@ -30,8 +30,8 @@
*/
/* SPDX-License-Identifier: BSD-3-Clause */
#include "common.h"
#include <stdio.h>
#include "common.h"
INTERNAL int code39(struct zint_symbol *symbol, unsigned char source[], int length);

View File

@ -32,12 +32,12 @@
#include <errno.h>
#include <stdio.h>
#include "common.h"
#include "pcx.h" /* PCX header structure */
#ifdef _MSC_VER
#include <io.h>
#include <fcntl.h>
#endif
#include "common.h"
#include "pcx.h" /* PCX header structure */
/* ZSoft PCX File Format Technical Reference Manual http://bespin.org/~qz/pc-gpe/pcx.txt */
INTERNAL int pcx_pixel_plot(struct zint_symbol *symbol, unsigned char *pixelbuf) {

View File

@ -38,11 +38,10 @@
#include <fcntl.h>
#include <io.h>
#endif
#include "common.h"
#include <png.h>
#include <zlib.h>
#include <setjmp.h>
#include "common.h"
/* Note if change this need to change "backend/tests/test_png.c" definition also */
struct wpng_error_type {

View File

@ -35,8 +35,8 @@
#define SODIUM_X_F (IS_NUM_F | IS_UX__F | IS_LX__F) /* SODIUM "0123456789Xx" */
#include "common.h"
#include <stdio.h>
#include "common.h"
static const char TeleTable[128][16] = {
{ "31313131" }, { "1131313111" }, { "33313111" }, { "1111313131" },

View File

@ -33,13 +33,13 @@
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include "common.h"
#include "tif.h"
#include "tif_lzw.h"
#ifdef _MSC_VER
#include <io.h>
#include <fcntl.h>
#endif
#include "common.h"
#include "tif.h"
#include "tif_lzw.h"
/* PhotometricInterpretation */
#define TIF_PMI_WHITEISZERO 0