aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2006-09-13 00:21:58 +0000
committerLev Walkin <vlm@lionet.info>2006-09-13 00:21:58 +0000
commit223000ab18c071379b47780b3c6b79a9d020783a (patch)
treef74f2d6ca4a1a35f0292c1dc0dbd44fc25e85a38
parent2b694fbd5e5cfe09f93b97a15de69100364aae38 (diff)
*** empty log message ***
-rwxr-xr-xasn1c/tests/check-assembly.sh1
-rw-r--r--libasn1fix/check_fixer.c4
-rw-r--r--skeletons/GeneralizedTime.c7
-rw-r--r--skeletons/UTCTime.c7
4 files changed, 15 insertions, 4 deletions
diff --git a/asn1c/tests/check-assembly.sh b/asn1c/tests/check-assembly.sh
index d3a5251b..3abac082 100755
--- a/asn1c/tests/check-assembly.sh
+++ b/asn1c/tests/check-assembly.sh
@@ -54,6 +54,7 @@ check-executable: compiled-module *.c*
compiled-module: ${asn_module} ../../asn1c
../../asn1c -S ../../../skeletons -Wdebug-compiler \\
${AFLAGS} ${asn_module}
+ rm -f converter-sample.c
@touch compiled-module
check-succeeded: check-executable
diff --git a/libasn1fix/check_fixer.c b/libasn1fix/check_fixer.c
index c4e3f995..a35b4a31 100644
--- a/libasn1fix/check_fixer.c
+++ b/libasn1fix/check_fixer.c
@@ -189,7 +189,7 @@ check(const char *fname,
mod->_tags |= MT_STANDARD_MODULE;
TQ_ADD(&(asn->modules), mod, mod_next);
}
- asn1p_free(std_asn);
+ asn1p_delete(std_asn);
}
}
@@ -236,7 +236,7 @@ check(const char *fname,
/*
* Destroy the asn.
*/
- asn1p_free(asn);
+ asn1p_delete(asn);
return r_value;
}
diff --git a/skeletons/GeneralizedTime.c b/skeletons/GeneralizedTime.c
index 6d7855ee..0c304935 100644
--- a/skeletons/GeneralizedTime.c
+++ b/skeletons/GeneralizedTime.c
@@ -6,9 +6,14 @@
#define _REENTRANT /* for Sun */
#include <asn_internal.h>
#include <GeneralizedTime.h>
-#include <time.h>
#include <errno.h>
+#ifdef __CYGWIN__
+#include "/usr/include/time.h"
+#else
+#include <time.h>
+#endif /* __CYGWIN__ */
+
#if defined(WIN32)
#pragma message( "PLEASE STOP AND READ!")
#pragma message( " localtime_r is implemented via localtime(), which may be not thread-safe.")
diff --git a/skeletons/UTCTime.c b/skeletons/UTCTime.c
index 3793a0e6..2a27718b 100644
--- a/skeletons/UTCTime.c
+++ b/skeletons/UTCTime.c
@@ -5,9 +5,14 @@
#include <asn_internal.h>
#include <UTCTime.h>
#include <GeneralizedTime.h>
-#include <time.h>
#include <errno.h>
+#ifdef __CYGWIN__
+#include "/usr/include/time.h"
+#else
+#include <time.h>
+#endif /* __CYGWIN__ */
+
#ifndef __ASN_INTERNAL_TEST_MODE__
/*