Added bacint.c to all the project make files that needed it. We really need to make the code into a library and use the library in the demos since adding a file to all the make files and IDE projects is tedious at best.

This commit is contained in:
skarg
2007-07-26 00:24:25 +00:00
parent 07148e107a
commit 7e2d6ee881
51 changed files with 259 additions and 152 deletions
+1
View File
@@ -7,6 +7,7 @@ BASEDIR = .
CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_ABORT -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
abort.c \
+1
View File
@@ -7,6 +7,7 @@ INCLUDES = -I. -Idemo/object -Itest
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
arf.c \
+1
View File
@@ -7,6 +7,7 @@ INCLUDES = -I. -Idemo/object -Itest
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
awf.c \
+1
View File
@@ -7,6 +7,7 @@ BASEDIR = .
CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_BACNET_APPLICATION_DATA -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bacapp.c \
datetime.c \
+145
View File
@@ -887,6 +887,58 @@ int decode_character_string(uint8_t * apdu, uint32_t len_value,
return len;
}
/* from clause 20.2.4 Encoding of an Unsigned Integer Value */
/* and 20.2.1 General Rules for Encoding BACnet Tags */
/* returns the number of apdu bytes consumed */
int decode_unsigned(uint8_t * apdu, uint32_t len_value, uint32_t * value)
{
uint16_t unsigned16_value = 0;
if (value) {
switch (len_value) {
case 1:
*value = apdu[0];
break;
case 2:
decode_unsigned16(&apdu[0], &unsigned16_value);
*value = unsigned16_value;
break;
case 3:
decode_unsigned24(&apdu[0], value);
break;
case 4:
decode_unsigned32(&apdu[0], value);
break;
default:
*value = 0;
break;
}
}
return len_value;
}
/* from clause 20.2.4 Encoding of an Unsigned Integer Value */
/* and 20.2.1 General Rules for Encoding BACnet Tags */
/* returns the number of apdu bytes consumed */
int encode_bacnet_unsigned(uint8_t * apdu, uint32_t value)
{
int len = 0; /* return value */
if (value < 0x100) {
apdu[0] = (uint8_t) value;
len = 1;
} else if (value < 0x10000) {
len = encode_unsigned16(&apdu[0], (uint16_t) value);
} else if (value < 0x1000000) {
len = encode_unsigned24(&apdu[0], value);
} else {
len = encode_unsigned32(&apdu[0], value);
}
return len;
}
/* from clause 20.2.4 Encoding of an Unsigned Integer Value */
/* and 20.2.1 General Rules for Encoding BACnet Tags */
/* returns the number of apdu bytes consumed */
@@ -974,6 +1026,59 @@ int encode_context_enumerated(uint8_t * apdu, int tag_number, int value)
return len;
}
/* from clause 20.2.5 Encoding of a Signed Integer Value */
/* and 20.2.1 General Rules for Encoding BACnet Tags */
/* returns the number of apdu bytes consumed */
int decode_signed(uint8_t * apdu, uint32_t len_value, int32_t * value)
{
if (value) {
switch (len_value) {
case 1:
decode_signed8(&apdu[0], value);
break;
case 2:
decode_signed16(&apdu[0], value);
break;
case 3:
decode_signed24(&apdu[0], value);
break;
case 4:
decode_signed32(&apdu[0], value);
break;
default:
*value = 0;
break;
}
}
return len_value;
}
/* from clause 20.2.5 Encoding of a Signed Integer Value */
/* and 20.2.1 General Rules for Encoding BACnet Tags */
/* returns the number of apdu bytes consumed */
int encode_bacnet_signed(uint8_t * apdu, int32_t value)
{
int len = 0; /* return value */
/* don't encode the leading X'FF' or X'00' of the two's compliment.
That is, the first octet of any multi-octet encoded value shall
not be X'00' if the most significant bit (bit 7) of the second
octet is 0, and the first octet shall not be X'FF' if the most
significant bit of the second octet is 1. */
if ((value >= -128) && (value < 128)) {
len = encode_signed8(&apdu[0], (int8_t) value);
} else if ((value >= -32768) && (value < 32768)) {
len = encode_signed16(&apdu[0], (int16_t) value);
} else if ((value > -8388608) && (value < 8388608)) {
len = encode_signed24(&apdu[0], value);
} else {
len = encode_signed32(&apdu[0], value);
}
return len;
}
/* from clause 20.2.5 Encoding of a Signed Integer Value */
/* and 20.2.1 General Rules for Encoding BACnet Tags */
/* returns the number of apdu bytes consumed */
@@ -1394,6 +1499,22 @@ void testBACDCodeUnsigned(Test * pTest)
return;
}
void testBACnetUnsigned(Test * pTest)
{
uint8_t apdu[32] = { 0 };
uint32_t value = 0, test_value = 0;
int len = 0, test_len = 0;
for (value = 0; ;value+=0xFF) {
len = encode_bacnet_unsigned(&apdu[0], value);
test_len = decode_unsigned(&apdu[0], len, &test_value);
ct_test(pTest, len == test_len);
ct_test(pTest, value == test_value);
if (value == 0xFFFFFFFF)
break;
}
}
void testBACDCodeSignedValue(Test * pTest, int32_t value)
{
uint8_t array[5] = { 0 };
@@ -1456,6 +1577,26 @@ void testBACDCodeSigned(Test * pTest)
return;
}
void testBACnetSigned(Test * pTest)
{
uint8_t apdu[32] = { 0 };
int32_t value = 0, test_value = 0;
int len = 0, test_len = 0;
for (value = -2147483647; value < 0; value+=127) {
len = encode_bacnet_signed(&apdu[0], value);
test_len = decode_signed(&apdu[0], len, &test_value);
ct_test(pTest, len == test_len);
ct_test(pTest, value == test_value);
}
for (value = 2147483647; value > 0; value-=127) {
len = encode_bacnet_signed(&apdu[0], value);
test_len = decode_signed(&apdu[0], len, &test_value);
ct_test(pTest, len == test_len);
ct_test(pTest, value == test_value);
}
}
void testBACDCodeOctetString(Test * pTest)
{
uint8_t array[MAX_APDU] = { 0 };
@@ -1691,8 +1832,12 @@ int main(void)
assert(rc);
rc = ct_addTestFunction(pTest, testBACDCodeUnsigned);
assert(rc);
rc = ct_addTestFunction(pTest, testBACnetUnsigned);
assert(rc);
rc = ct_addTestFunction(pTest, testBACDCodeSigned);
assert(rc);
rc = ct_addTestFunction(pTest, testBACnetSigned);
assert(rc);
rc = ct_addTestFunction(pTest, testBACDCodeEnumerated);
assert(rc);
rc = ct_addTestFunction(pTest, testBACDCodeOctetString);
-7
View File
@@ -189,13 +189,6 @@ extern "C" {
BACNET_DATE * bdate);
int decode_date(uint8_t * apdu, BACNET_DATE * bdate);
/* two octet unsigned16 */
int encode_unsigned16(uint8_t * apdu, uint16_t value);
int decode_unsigned16(uint8_t * apdu, uint16_t * value);
/* four octet unsigned32 */
int encode_unsigned32(uint8_t * apdu, uint32_t value);
int decode_unsigned32(uint8_t * apdu, uint32_t * value);
/* from clause 20.1.2.4 max-segments-accepted */
/* and clause 20.1.2.5 max-APDU-length-accepted */
/* returns the encoded octet */
+1
View File
@@ -6,6 +6,7 @@ CFLAGS = -Wall -I. -Itest -g -DBIG_ENDIAN=0 -DTEST -DTEST_DECODE
TARGET = bacdcode
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
test/ctest.c
+1
View File
@@ -7,6 +7,7 @@ BASEDIR = .
CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_BACERROR -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
bacerror.c \
-145
View File
@@ -279,111 +279,6 @@ int decode_signed32(uint8_t * apdu, int32_t * value)
return 4;
}
/* from clause 20.2.5 Encoding of a Signed Integer Value */
/* and 20.2.1 General Rules for Encoding BACnet Tags */
/* returns the number of apdu bytes consumed */
int decode_signed(uint8_t * apdu, uint32_t len_value, int32_t * value)
{
if (value) {
switch (len_value) {
case 1:
decode_signed8(&apdu[0], value);
break;
case 2:
decode_signed16(&apdu[0], value);
break;
case 3:
decode_signed24(&apdu[0], value);
break;
case 4:
decode_signed32(&apdu[0], value);
break;
default:
*value = 0;
break;
}
}
return len_value;
}
/* from clause 20.2.5 Encoding of a Signed Integer Value */
/* and 20.2.1 General Rules for Encoding BACnet Tags */
/* returns the number of apdu bytes consumed */
int encode_bacnet_signed(uint8_t * apdu, int32_t value)
{
int len = 0; /* return value */
/* don't encode the leading X'FF' or X'00' of the two's compliment.
That is, the first octet of any multi-octet encoded value shall
not be X'00' if the most significant bit (bit 7) of the second
octet is 0, and the first octet shall not be X'FF' if the most
significant bit of the second octet is 1. */
if ((value >= -128) && (value < 128)) {
len = encode_signed8(&apdu[0], (int8_t) value);
} else if ((value >= -32768) && (value < 32768)) {
len = encode_signed16(&apdu[0], (int16_t) value);
} else if ((value > -8388608) && (value < 8388608)) {
len = encode_signed24(&apdu[0], value);
} else {
len = encode_signed32(&apdu[0], value);
}
return len;
}
/* from clause 20.2.4 Encoding of an Unsigned Integer Value */
/* and 20.2.1 General Rules for Encoding BACnet Tags */
/* returns the number of apdu bytes consumed */
int encode_bacnet_unsigned(uint8_t * apdu, uint32_t value)
{
int len = 0; /* return value */
if (value < 0x100) {
apdu[0] = (uint8_t) value;
len = 1;
} else if (value < 0x10000) {
len = encode_unsigned16(&apdu[0], (uint16_t) value);
} else if (value < 0x1000000) {
len = encode_unsigned24(&apdu[0], value);
} else {
len = encode_unsigned32(&apdu[0], value);
}
return len;
}
/* from clause 20.2.4 Encoding of an Unsigned Integer Value */
/* and 20.2.1 General Rules for Encoding BACnet Tags */
/* returns the number of apdu bytes consumed */
int decode_unsigned(uint8_t * apdu, uint32_t len_value, uint32_t * value)
{
uint16_t unsigned16_value = 0;
if (value) {
switch (len_value) {
case 1:
*value = apdu[0];
break;
case 2:
decode_unsigned16(&apdu[0], &unsigned16_value);
*value = unsigned16_value;
break;
case 3:
decode_unsigned24(&apdu[0], value);
break;
case 4:
decode_unsigned32(&apdu[0], value);
break;
default:
*value = 0;
break;
}
}
return len_value;
}
/* end of decoding_encoding.c */
#ifdef TEST
#include <assert.h>
@@ -505,42 +400,6 @@ void testBACnetSigned32(Test * pTest)
}
}
void testBACnetSigned(Test * pTest)
{
uint8_t apdu[32] = { 0 };
int32_t value = 0, test_value = 0;
int len = 0, test_len = 0;
for (value = -2147483647; value < 0; value+=127) {
len = encode_bacnet_signed(&apdu[0], value);
test_len = decode_signed(&apdu[0], len, &test_value);
ct_test(pTest, len == test_len);
ct_test(pTest, value == test_value);
}
for (value = 2147483647; value > 0; value-=127) {
len = encode_bacnet_signed(&apdu[0], value);
test_len = decode_signed(&apdu[0], len, &test_value);
ct_test(pTest, len == test_len);
ct_test(pTest, value == test_value);
}
}
void testBACnetUnsigned(Test * pTest)
{
uint8_t apdu[32] = { 0 };
uint32_t value = 0, test_value = 0;
int len = 0, test_len = 0;
for (value = 0; ;value+=0xFF) {
len = encode_bacnet_unsigned(&apdu[0], value);
test_len = decode_unsigned(&apdu[0], len, &test_value);
ct_test(pTest, len == test_len);
ct_test(pTest, value == test_value);
if (value == 0xFFFFFFFF)
break;
}
}
#ifdef TEST_BACINT
int main(void)
{
@@ -563,10 +422,6 @@ int main(void)
assert(rc);
rc = ct_addTestFunction(pTest, testBACnetSigned32);
assert(rc);
rc = ct_addTestFunction(pTest, testBACnetSigned);
assert(rc);
rc = ct_addTestFunction(pTest, testBACnetUnsigned);
assert(rc);
/* configure output */
ct_setStream(pTest, stdout);
ct_run(pTest);
+67
View File
@@ -0,0 +1,67 @@
/*####COPYRIGHTBEGIN####
-------------------------------------------
Copyright (C) 2004 Steve Karg
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to:
The Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA.
As a special exception, if other files instantiate templates or
use macros or inline functions from this file, or you compile
this file and link it with other works to produce a work based
on this file, this file does not by itself cause the resulting
work to be covered by the GNU General Public License. However
the source code for this file must still be made available in
accordance with section (3) of the GNU General Public License.
This exception does not invalidate any other reasons why a work
based on this file might be covered by the GNU General Public
License.
-------------------------------------------
####COPYRIGHTEND####*/
#ifndef BACINT_H
#define BACINT_H
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* unsigned value encoding and decoding */
int encode_unsigned16(uint8_t * apdu, uint16_t value);
int decode_unsigned16(uint8_t * apdu, uint16_t * value);
int encode_unsigned24(uint8_t * apdu, uint32_t value);
int decode_unsigned24(uint8_t * apdu, uint32_t * value);
int encode_unsigned32(uint8_t * apdu, uint32_t value);
int decode_unsigned32(uint8_t * apdu, uint32_t * value);
/* signed value encoding and decoding */
int encode_signed8(uint8_t * apdu, int8_t value);
int decode_signed8(uint8_t * apdu, int32_t * value);
int encode_signed16(uint8_t * apdu, int16_t value);
int decode_signed16(uint8_t * apdu, int32_t * value);
int encode_signed24(uint8_t * apdu, int32_t value);
int decode_signed24(uint8_t * apdu, int32_t * value);
int encode_signed32(uint8_t * apdu, int32_t value);
int decode_signed32(uint8_t * apdu, int32_t * value);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif
+1
View File
@@ -35,6 +35,7 @@
#include <stdint.h> /* for standard integer types uint8_t etc. */
#include <stdbool.h> /* for the standard bool type. */
#include "bacdcode.h"
#include "bacint.h"
#include "bip.h"
#include "net.h" /* custom per port */
+1
View File
@@ -36,6 +36,7 @@
#include <stdbool.h> /* for the standard bool type. */
#include <time.h> /* for the standard bool type. */
#include "bacdcode.h"
#include "bacint.h"
#include "bip.h"
#include "net.h" /* custom per port */
+1
View File
@@ -9,6 +9,7 @@ INCLUDES = -Iports/linux -Itest -I.
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
bvlc.c \
+1
View File
@@ -7,6 +7,7 @@ BASEDIR = .
CFLAGS = -Wall -I. -Itest -Idemo/object -DTEST -DTEST_COV -DBACDL_TEST=1 -DBIG_ENDIAN=0 -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
datetime.c \
bacapp.c \
+1
View File
@@ -7,6 +7,7 @@ BASEDIR = .
CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_DEVICE_COMMUNICATION_CONTROL -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
dcc.c \
+1
View File
@@ -30,6 +30,7 @@ SRCS = main.c \
..\..\demo\handler\s_whois.c \
..\..\demo\handler\s_dcc.c \
..\..\bacdcode.c \
..\..\bacint.c \
..\..\bacapp.c \
..\..\bacstr.c \
..\..\bactext.c \
+1
View File
@@ -30,6 +30,7 @@ SRCS = main.c \
..\..\demo\handler\h_rp.c \
..\..\demo\handler\s_rp.c \
..\..\demo\handler\s_whois.c \
..\..\bacint.c \
..\..\bacdcode.c \
..\..\bacapp.c \
..\..\bacstr.c \
+1
View File
@@ -8,6 +8,7 @@ CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_ANALOG_INPUT -g
# NOTE: this file is normally called by the unittest.sh from up directory
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
demo/object/ai.c \
+1
View File
@@ -8,6 +8,7 @@ CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_ANALOG_OUTPUT -g
# NOTE: this file is normally called by the unittest.sh from up directory
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
datetime.c \
bacapp.c \
+1
View File
@@ -8,6 +8,7 @@ CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_ANALOG_VALUE -g
# NOTE: this file is normally called by the unittest.sh from up directory
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
datetime.c \
bacapp.c \
+1
View File
@@ -8,6 +8,7 @@ CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_BINARY_INPUT -g
# NOTE: this file is normally called by the unittest.sh from up directory
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
demo/object/bi.c \
+1
View File
@@ -8,6 +8,7 @@ CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_BINARY_OUTPUT -g
# NOTE: this file is normally called by the unittest.sh from up directory
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
datetime.c \
bacapp.c \
+1
View File
@@ -8,6 +8,7 @@ CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_BINARY_VALUE -g
# NOTE: this file is normally called by the unittest.sh from up directory
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
datetime.c \
bacapp.c \
+1
View File
@@ -9,6 +9,7 @@ CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_DEVICE -g
# NOTE: this file is normally called by the unittest.sh from up directory
SRCS = bacdcode.c \
datetime.c \
bacint.c \
bacstr.c \
bacapp.c \
bactext.c \
+1
View File
@@ -8,6 +8,7 @@ CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_LOAD_CONTROL -g
# NOTE: this file is normally called by the unittest.sh from up directory
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bacapp.c \
bactext.c \
+1
View File
@@ -8,6 +8,7 @@ CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_LIGHTING_OUTPUT -g
# NOTE: this file is normally called by the unittest.sh from up directory
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
datetime.c \
bacapp.c \
+1
View File
@@ -8,6 +8,7 @@ CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_LIFE_SAFETY_POINT -g
# NOTE: this file is normally called by the unittest.sh from up directory
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
datetime.c \
bacapp.c \
+1
View File
@@ -8,6 +8,7 @@ CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_MULTISTATE_OUTPUT -g
# NOTE: this file is normally called by the unittest.sh from up directory
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
datetime.c \
bacapp.c \
+1
View File
@@ -27,6 +27,7 @@ SRCS = main.c \
..\..\demo\handler\s_arfs.c \
..\..\demo\handler\h_rp.c \
..\..\bacdcode.c \
..\..\bacint.c \
..\..\bacapp.c \
..\..\bacstr.c \
..\..\bactext.c \
+1
View File
@@ -30,6 +30,7 @@ SRCS = main.c \
..\..\demo\handler\s_rp.c \
..\..\demo\handler\s_whois.c \
..\..\bacdcode.c \
..\..\bacint.c \
..\..\bacapp.c \
..\..\bacstr.c \
..\..\datetime.c \
+1
View File
@@ -30,6 +30,7 @@ SRCS = main.c \
..\..\demo\handler\s_whois.c \
..\..\demo\handler\s_rd.c \
..\..\bacdcode.c \
..\..\bacint.c \
..\..\bacapp.c \
..\..\bacstr.c \
..\..\bactext.c \
+1
View File
@@ -42,6 +42,7 @@ SRCS = main.c \
..\..\demo\handler\h_whohas.c \
..\..\demo\handler\s_ihave.c \
..\..\bacdcode.c \
..\..\bacint.c \
..\..\bacapp.c \
..\..\bacstr.c \
..\..\bactext.c \
+1
View File
@@ -46,6 +46,7 @@ SRCS = main.c \
$(BACNET_ROOT)\address.c \
$(BACNET_ROOT)\filename.c \
$(BACNET_ROOT)\bacdcode.c \
$(BACNET_ROOT)\bacint.c \
$(BACNET_ROOT)\bacapp.c \
$(BACNET_ROOT)\bacstr.c \
$(BACNET_ROOT)\bactext.c \
+1
View File
@@ -27,6 +27,7 @@ SRCS = main.c \
..\..\demo\handler\h_iam.c \
..\..\demo\handler\h_rp.c \
..\..\bacdcode.c \
..\..\bacint.c \
..\..\bacapp.c \
..\..\bacstr.c \
..\..\bactext.c \
+1
View File
@@ -30,6 +30,7 @@ SRCS = main.c \
..\..\demo\handler\s_ihave.c \
..\..\demo\handler\s_whohas.c \
..\..\bacdcode.c \
..\..\bacint.c \
..\..\bacapp.c \
..\..\bacstr.c \
..\..\bactext.c \
+1
View File
@@ -45,6 +45,7 @@ SRCS = main.c \
$(BACNET_ROOT)\address.c \
$(BACNET_ROOT)\filename.c \
$(BACNET_ROOT)\bacdcode.c \
$(BACNET_ROOT)\bacint.c \
$(BACNET_ROOT)\bacapp.c \
$(BACNET_ROOT)\bacstr.c \
$(BACNET_ROOT)\bactext.c \
+1
View File
@@ -27,6 +27,7 @@ SRCS = main.c \
..\..\demo\handler\s_whois.c \
..\..\demo\handler\s_awfs.c \
..\..\bacdcode.c \
..\..\bacint.c \
..\..\bacapp.c \
..\..\bacstr.c \
..\..\bactext.c \
+1
View File
@@ -29,6 +29,7 @@ SRCS = main.c \
..\..\demo\handler\s_wp.c \
..\..\demo\handler\s_whois.c \
..\..\bacdcode.c \
..\..\bacint.c \
..\..\bacapp.c \
..\..\bacstr.c \
..\..\bactext.c \
+1
View File
@@ -7,6 +7,7 @@ INCLUDES = -I. -Idemo/object -Itest
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
npdu.c \
+1
View File
@@ -7,6 +7,7 @@ BASEDIR = .
CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_I_HAVE -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
ihave.c \
+1
View File
@@ -35,6 +35,7 @@
#include <stdint.h>
#include "bacdef.h"
#include "bacdcode.h"
#include "bacint.h"
#include "bacenum.h"
#include "bits.h"
#include "npdu.h"
+1
View File
@@ -7,6 +7,7 @@ BASEDIR = .
CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_NPDU -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
npdu.c \
+1
View File
@@ -7,6 +7,7 @@ BASEDIR = .
CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_REINITIALIZE_DEVICE -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
rd.c \
+1
View File
@@ -7,6 +7,7 @@ BASEDIR = .
CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_REJECT -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
reject.c \
+1
View File
@@ -7,6 +7,7 @@ BASEDIR = .
CFLAGS = -Wall -I. -Itest -DTEST -DTEST_READ_PROPERTY -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
rp.c \
+1
View File
@@ -11,6 +11,7 @@ SRCS = bacdcode.c \
bacapp.c \
bactext.c \
indtext.c \
bacint.c \
bacstr.c \
datetime.c \
rpm.c \
+1
View File
@@ -8,6 +8,7 @@ CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_TIMESYNC -g
SRCS = bacapp.c \
bacdcode.c \
bacint.c \
bacstr.c \
bactext.c \
bigend.c \
+1
View File
@@ -7,6 +7,7 @@ CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
SRCS = address.c \
bacdcode.c \
bacint.c \
bacstr.c \
datetime.c \
bacapp.c \
+1
View File
@@ -7,6 +7,7 @@ BASEDIR = .
CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_WHOHAS -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
whohas.c \
+1
View File
@@ -7,6 +7,7 @@ BASEDIR = .
CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_WHOIS -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
whois.c \
+1
View File
@@ -7,6 +7,7 @@ INCLUDES = -I. -Idemo/object -Itest
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
datetime.c \
bacapp.c \