FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/g23m-aci/aci/aci_util.c @ 783:79ccc6a27a95
gsm-fw/g23m-aci/aci: aci_*.c modules compile
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 08 Mar 2015 23:42:01 +0000 |
parents | eedbf248bac0 |
children |
comparison
equal
deleted
inserted
replaced
782:3eb43280161d | 783:79ccc6a27a95 |
---|---|
22 | 22 |
23 | 23 |
24 #ifndef ACI_UTIL_C | 24 #ifndef ACI_UTIL_C |
25 #define ACI_UTIL_C | 25 #define ACI_UTIL_C |
26 #endif | 26 #endif |
27 | |
28 #include "config.h" | |
29 #include "fixedconf.h" | |
30 #include "condat-features.h" | |
31 #include "aci_conf.h" | |
27 | 32 |
28 #include "aci_all.h" | 33 #include "aci_all.h" |
29 | 34 |
30 #include "aci_cmh.h" | 35 #include "aci_cmh.h" |
31 #include "ati_cmd.h" | 36 #include "ati_cmd.h" |
584 { | 589 { |
585 val = (UBYTE)j; | 590 val = (UBYTE)j; |
586 flag = TRUE; | 591 flag = TRUE; |
587 break; | 592 break; |
588 } | 593 } |
589 #ifdef REL99 | 594 #ifdef REL99 |
590 else | 595 else |
591 { | 596 { |
592 /* There is a chance that this is in the mapping table */ | 597 /* There is a chance that this is in the mapping table */ |
593 UBYTE ext_tbl_idx = 0; | 598 UBYTE ext_tbl_idx = 0; |
594 while( ext_tbl_idx < NUM_EXT_TABLE_CHARS AND | 599 while( ext_tbl_idx < NUM_EXT_TABLE_CHARS AND |
733 if (in[(i*2)+1] EQ gsmToAsciiTable[j]) | 738 if (in[(i*2)+1] EQ gsmToAsciiTable[j]) |
734 { | 739 { |
735 out[outIdx++] = (UBYTE)j; | 740 out[outIdx++] = (UBYTE)j; |
736 break; | 741 break; |
737 } | 742 } |
738 #ifdef REL99 | 743 #ifdef REL99 |
739 else | 744 else |
740 { | 745 { |
741 /* There is a chance that this is in the mapping table */ | 746 /* There is a chance that this is in the mapping table */ |
742 UBYTE ext_tbl_idx = 0; | 747 UBYTE ext_tbl_idx = 0; |
743 while( ext_tbl_idx < NUM_EXT_TABLE_CHARS AND | 748 while( ext_tbl_idx < NUM_EXT_TABLE_CHARS AND |
878 if (in[(i*2)+1] EQ gsmToAsciiTable[j]) | 883 if (in[(i*2)+1] EQ gsmToAsciiTable[j]) |
879 { | 884 { |
880 out[outIdx++] = (UBYTE)j; | 885 out[outIdx++] = (UBYTE)j; |
881 break; | 886 break; |
882 } | 887 } |
883 #ifdef REL99 | 888 #ifdef REL99 |
884 else | 889 else |
885 { | 890 { |
886 /* There is a chance that this is in the mapping table */ | 891 /* There is a chance that this is in the mapping table */ |
887 UBYTE ext_tbl_idx = 0; | 892 UBYTE ext_tbl_idx = 0; |
888 while( ext_tbl_idx < NUM_EXT_TABLE_CHARS AND | 893 while( ext_tbl_idx < NUM_EXT_TABLE_CHARS AND |
1111 } | 1116 } |
1112 else if((*in | corr) NEQ 0x9B) | 1117 else if((*in | corr) NEQ 0x9B) |
1113 { | 1118 { |
1114 tmp = 0x0000 + gsmToAsciiTable[*in]; | 1119 tmp = 0x0000 + gsmToAsciiTable[*in]; |
1115 } | 1120 } |
1116 #ifdef REL99 | 1121 #ifdef REL99 |
1117 else | 1122 else |
1118 { | 1123 { |
1119 UBYTE ext_tbl_idx = 0; | 1124 UBYTE ext_tbl_idx = 0; |
1120 BOOL mapping_char_found = FALSE; | 1125 BOOL mapping_char_found = FALSE; |
1121 in++; | 1126 in++; |
1569 if (tmpOut EQ gsmToAsciiTable[j]) | 1574 if (tmpOut EQ gsmToAsciiTable[j]) |
1570 { | 1575 { |
1571 val = (UBYTE)j; | 1576 val = (UBYTE)j; |
1572 break; | 1577 break; |
1573 } | 1578 } |
1574 #ifdef REL99 | 1579 #ifdef REL99 |
1575 else | 1580 else |
1576 { | 1581 { |
1577 /* There is a chance that this is in the mapping table */ | 1582 /* There is a chance that this is in the mapping table */ |
1578 UBYTE ext_tbl_idx = 0; | 1583 UBYTE ext_tbl_idx = 0; |
1579 while( ext_tbl_idx < NUM_EXT_TABLE_CHARS AND | 1584 while( ext_tbl_idx < NUM_EXT_TABLE_CHARS AND |
2058 while ( inIdx < inLen ) | 2063 while ( inIdx < inLen ) |
2059 { | 2064 { |
2060 tblIdx = 0; | 2065 tblIdx = 0; |
2061 | 2066 |
2062 while ( tblIdx <= 0xFF AND | 2067 while ( tblIdx <= 0xFF AND |
2063 chset[CSCS_CHSET_Ira][tblIdx] NEQ (( UBYTE )in[inIdx] | 0x80 )) | 2068 chset[CSCS_CHSET_Ira][tblIdx] NEQ (( UBYTE )in[inIdx] | 0x80 )) |
2064 tblIdx++; | 2069 tblIdx++; |
2065 | 2070 |
2066 if ( tblIdx <= 0xFF ) | 2071 if ( tblIdx <= 0xFF ) |
2067 { | 2072 { |
2068 out[outIdx] = ( UBYTE )tblIdx; | 2073 out[outIdx] = ( UBYTE )tblIdx; |