1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
/*
libdmtx - Data Matrix Encoding/Decoding Library
Copyright (C) 2008, 2009 Mike Laughton
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Contact: mike@dragonflylogic.com
*/
#ifndef __DMTXUTIL_H__
#define __DMTXUTIL_H__
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#ifdef HAVE_SYSEXITS_H
#include <sysexits.h>
#else
#define EX_OK 0
#define EX_USAGE 64
#define EX_DATAERR 65
#define EX_SOFTWARE 70
#define EX_OSERR 71
#define EX_CANTCREAT 73
#define EX_IOERR 74
#endif
extern DmtxPassFail StringToInt(int *numberInt, char *numberString, char **terminate);
extern void FatalError(int errorCode, char *fmt, ...);
extern char *Basename(char *path);
static char *symbolSizes[] = {
"10x10", "12x12", "14x14", "16x16", "18x18", "20x20",
"22x22", "24x24", "26x26", "32x32", "36x36", "40x40",
"44x44", "48x48", "52x52", "64x64", "72x72", "80x80",
"88x88", "96x96", "104x104", "120x120", "132x132", "144x144",
"8x18", "8x32", "12x26", "12x36", "16x36", "16x48"
};
#endif
|