globalized assert()

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@846 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2005-03-29 17:21:14 +00:00
parent 75fddccc5e
commit 5ec2fe174a
22 changed files with 15 additions and 27 deletions

View File

@ -4,7 +4,6 @@
*/ */
#include <asn_internal.h> #include <asn_internal.h>
#include <ANY.h> #include <ANY.h>
#include <assert.h>
#include <errno.h> #include <errno.h>
static asn_OCTET_STRING_specifics_t asn_DEF_ANY_specs = { static asn_OCTET_STRING_specifics_t asn_DEF_ANY_specs = {

View File

@ -5,7 +5,6 @@
#include <asn_internal.h> #include <asn_internal.h>
#include <BMPString.h> #include <BMPString.h>
#include <UTF8String.h> #include <UTF8String.h>
#include <assert.h>
/* /*
* BMPString basic type description. * BMPString basic type description.

View File

@ -8,9 +8,6 @@
#include <GeneralizedTime.h> #include <GeneralizedTime.h>
#include <time.h> #include <time.h>
#include <errno.h> #include <errno.h>
#ifndef __NO_ASSERT_H__
#include <assert.h>
#endif /* __NO_ASSERT_H__ */
#if defined(WIN32) #if defined(WIN32)
#warning PLEASE STOP AND READ! #warning PLEASE STOP AND READ!

View File

@ -47,4 +47,9 @@ xer_type_encoder_f INTEGER_encode_xer;
int asn_INTEGER2long(const INTEGER_t *i, long *l); int asn_INTEGER2long(const INTEGER_t *i, long *l);
int asn_long2INTEGER(INTEGER_t *i, long l); int asn_long2INTEGER(INTEGER_t *i, long l);
/*
* Convert the integer value into the corresponding enumeration map entry.
*/
const asn_INTEGER_enum_map_t *INTEGER_map_value2enum(asn_INTEGER_specifics_t *specs, long value);
#endif /* _INTEGER_H_ */ #endif /* _INTEGER_H_ */

View File

@ -1,5 +1,5 @@
/*- /*-
* Copyright (c) 2004 Lev Walkin <vlm@lionet.info>. All rights reserved. * Copyright (c) 2004, 2005 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license. * Redistribution and modifications are permitted subject to BSD license.
*/ */
/* /*
@ -11,7 +11,6 @@
*/ */
#include <asn_internal.h> #include <asn_internal.h>
#include <NativeInteger.h> #include <NativeInteger.h>
#include <assert.h>
/* /*
* NativeInteger basic type description. * NativeInteger basic type description.

View File

@ -12,7 +12,6 @@
#include <asn_internal.h> #include <asn_internal.h>
#include <NativeReal.h> #include <NativeReal.h>
#include <REAL.h> #include <REAL.h>
#include <assert.h>
/* /*
* NativeReal basic type description. * NativeReal basic type description.

View File

@ -5,7 +5,6 @@
#include <asn_internal.h> #include <asn_internal.h>
#include <OBJECT_IDENTIFIER.h> #include <OBJECT_IDENTIFIER.h>
#include <limits.h> /* for CHAR_BIT */ #include <limits.h> /* for CHAR_BIT */
#include <assert.h>
#include <errno.h> #include <errno.h>
/* /*

View File

@ -5,7 +5,6 @@
#include <asn_internal.h> #include <asn_internal.h>
#include <OCTET_STRING.h> #include <OCTET_STRING.h>
#include <BIT_STRING.h> /* for .bits_unused member */ #include <BIT_STRING.h> /* for .bits_unused member */
#include <assert.h>
#include <errno.h> #include <errno.h>
/* /*

View File

@ -11,7 +11,6 @@
#include <stdlib.h> /* for strtod(3) */ #include <stdlib.h> /* for strtod(3) */
#include <math.h> #include <math.h>
#include <errno.h> #include <errno.h>
#include <assert.h>
#include <REAL.h> #include <REAL.h>
#undef INT_MAX #undef INT_MAX

View File

@ -7,7 +7,6 @@
#include <RELATIVE-OID.h> #include <RELATIVE-OID.h>
#include <asn_codecs_prim.h> /* Encoder and decoder of a primitive type */ #include <asn_codecs_prim.h> /* Encoder and decoder of a primitive type */
#include <limits.h> /* for CHAR_BIT */ #include <limits.h> /* for CHAR_BIT */
#include <assert.h>
#include <errno.h> #include <errno.h>
/* /*

View File

@ -7,7 +7,6 @@
#include <GeneralizedTime.h> #include <GeneralizedTime.h>
#include <time.h> #include <time.h>
#include <errno.h> #include <errno.h>
#include <assert.h>
#ifndef __NO_ASN_TABLE__ #ifndef __NO_ASN_TABLE__

View File

@ -5,7 +5,6 @@
#include <asn_internal.h> #include <asn_internal.h>
#include <UniversalString.h> #include <UniversalString.h>
#include <UTF8String.h> #include <UTF8String.h>
#include <assert.h>
/* /*
* UniversalString basic type description. * UniversalString basic type description.

View File

@ -12,9 +12,9 @@
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> /* for getopt */ #include <unistd.h> /* for getopt */
#include <string.h> /* for strerror(3) */ #include <string.h> /* for strerror(3) */
#include <errno.h> /* for errno */
#include <assert.h> /* for assert(3) */
#include <sysexits.h> /* for EX_* exit codes */ #include <sysexits.h> /* for EX_* exit codes */
#include <assert.h> /* for assert(3) */
#include <errno.h> /* for errno */
#include <asn_application.h> #include <asn_application.h>

View File

@ -4,7 +4,6 @@
*/ */
#include <asn_internal.h> #include <asn_internal.h>
#include <asn_codecs_prim.h> #include <asn_codecs_prim.h>
#include <assert.h>
#include <errno.h> #include <errno.h>
/* /*

View File

@ -18,6 +18,9 @@
#include <sys/types.h> /* For size_t */ #include <sys/types.h> /* For size_t */
#include <stdarg.h> /* For va_start */ #include <stdarg.h> /* For va_start */
#include <stddef.h> /* for offsetof and ptrdiff_t */ #include <stddef.h> /* for offsetof and ptrdiff_t */
#ifndef __NO_ASSERT_H__
#include <assert.h> /* for assert() macro */
#endif
#ifdef WIN32 #ifdef WIN32

View File

@ -3,7 +3,6 @@
* Redistribution and modifications are permitted subject to BSD license. * Redistribution and modifications are permitted subject to BSD license.
*/ */
#include <asn_internal.h> #include <asn_internal.h>
#include <assert.h>
#undef ADVANCE #undef ADVANCE
#define ADVANCE(num_bytes) do { \ #define ADVANCE(num_bytes) do { \

View File

@ -5,7 +5,6 @@
*/ */
#include <asn_internal.h> #include <asn_internal.h>
#include <constr_CHOICE.h> #include <constr_CHOICE.h>
#include <assert.h>
/* /*
* Number of bytes left for this structure. * Number of bytes left for this structure.

View File

@ -5,7 +5,6 @@
*/ */
#include <asn_internal.h> #include <asn_internal.h>
#include <constr_SEQUENCE.h> #include <constr_SEQUENCE.h>
#include <assert.h>
/* /*
* Number of bytes left for this structure. * Number of bytes left for this structure.

View File

@ -4,7 +4,6 @@
*/ */
#include <asn_internal.h> #include <asn_internal.h>
#include <constr_SET.h> #include <constr_SET.h>
#include <assert.h> /* for assert() */
#ifndef WIN32 #ifndef WIN32
#include <netinet/in.h> /* for ntohl() */ #include <netinet/in.h> /* for ntohl() */

View File

@ -5,7 +5,6 @@
#include <asn_internal.h> #include <asn_internal.h>
#include <constr_SET_OF.h> #include <constr_SET_OF.h>
#include <asn_SET_OF.h> #include <asn_SET_OF.h>
#include <assert.h>
/* /*
* Number of bytes left for this structure. * Number of bytes left for this structure.

View File

@ -3,7 +3,6 @@
* Redistribution and modifications are permitted subject to BSD license. * Redistribution and modifications are permitted subject to BSD license.
*/ */
#include <asn_internal.h> #include <asn_internal.h>
#include <assert.h>
#include <errno.h> #include <errno.h>
static ssize_t der_write_TL(ber_tlv_tag_t tag, ber_tlv_len_t len, static ssize_t der_write_TL(ber_tlv_tag_t tag, ber_tlv_len_t len,

View File

@ -1,8 +1,10 @@
/*
* Copyright (c) 2004, 2005 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#include <asn_application.h> #include <asn_application.h>
#include <asn_internal.h> #include <asn_internal.h>
#include <xer_support.h> /* XER/XML parsing support */ #include <xer_support.h> /* XER/XML parsing support */
#include <assert.h>
/* /*
@ -346,5 +348,3 @@ xer_skip_unknown(xer_check_tag_e tcv, ber_tlv_len_t *depth) {
return -1; return -1;
} }
} }