1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-27 05:45:58 +00:00

Add Channel Code

This commit is contained in:
hooper114
2009-05-16 14:19:43 +00:00
parent cd614f42f7
commit 0e560805b4
8 changed files with 232 additions and 17 deletions

View File

@@ -194,7 +194,7 @@ float dmroundup(float input)
float fraction, output;
fraction = input - (int)input;
if(fraction > 0.01) { output = (input - fraction) + 1.0; }
if(fraction > 0.01) { output = (input - fraction) + 1.0; } else { output = input; }
return output;
}
@@ -538,7 +538,7 @@ int dm200encode(struct zint_symbol *symbol, unsigned char source[], unsigned cha
/* step (e) X12 encodation */
if(current_mode == DM_X12) {
int value;
int value = 0;
next_mode = DM_X12;
if(text_p == 0) {
@@ -579,7 +579,7 @@ int dm200encode(struct zint_symbol *symbol, unsigned char source[], unsigned cha
/* step (f) EDIFACT encodation */
if(current_mode == DM_EDIFACT) {
int value;
int value = 0;
next_mode = DM_EDIFACT;
if(edifact_p == 3) {