mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
backend: define z_alloca() and use for both Unix and Windows;
replace double-slash comments with old-skool slash asterisk ones; define uint16_t etc for Windows ourselves and remove ms_stdint.h & stdint_msvc.h as no longer used; (backend (excepting test suite) now C89 compatible) LICENSE: move from backend to root and move COPYING to frontend, with copies in frontend_qt & backend_qt, so in where it applies; add LICENSE section from manual to root README
This commit is contained in:
@ -34,9 +34,6 @@
|
||||
#ifdef ZINT_TEST
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
#ifdef _MSC_VER
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include "common.h"
|
||||
|
||||
/* Converts a character 0-9, A-F to its equivalent integer value */
|
||||
@ -548,10 +545,10 @@ INTERNAL int colour_to_red(const int colour) {
|
||||
int return_val = 0;
|
||||
|
||||
switch (colour) {
|
||||
case 8: // White
|
||||
case 3: // Magenta
|
||||
case 4: // Red
|
||||
case 5: // Yellow
|
||||
case 8: /* White */
|
||||
case 3: /* Magenta */
|
||||
case 4: /* Red */
|
||||
case 5: /* Yellow */
|
||||
return_val = 255;
|
||||
break;
|
||||
}
|
||||
@ -564,10 +561,10 @@ INTERNAL int colour_to_green(const int colour) {
|
||||
int return_val = 0;
|
||||
|
||||
switch (colour) {
|
||||
case 8: // White
|
||||
case 1: // Cyan
|
||||
case 5: // Yellow
|
||||
case 6: // Green
|
||||
case 8: /* White */
|
||||
case 1: /* Cyan */
|
||||
case 5: /* Yellow */
|
||||
case 6: /* Green */
|
||||
return_val = 255;
|
||||
break;
|
||||
}
|
||||
@ -580,10 +577,10 @@ INTERNAL int colour_to_blue(const int colour) {
|
||||
int return_val = 0;
|
||||
|
||||
switch (colour) {
|
||||
case 8: // White
|
||||
case 1: // Cyan
|
||||
case 2: // Blue
|
||||
case 3: // Magenta
|
||||
case 8: /* White */
|
||||
case 1: /* Cyan */
|
||||
case 2: /* Blue */
|
||||
case 3: /* Magenta */
|
||||
return_val = 255;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user