Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed indentation in per

  • Loading branch information...
commit e2c05bf2f5ad3222dede6abca2add32ec06adab3 1 parent 69c73dc
Lev Walkin authored
Showing with 11 additions and 1 deletion.
  1. +1 −1  skeletons/asn_internal.h
  2. +10 −0 skeletons/per_opentype.c
2  skeletons/asn_internal.h
View
@@ -40,7 +40,7 @@ int get_asn1c_environment_version(void); /* Run-time version */
#define ASN_DEBUG_INDENT_ADD(i) do{}while(0)
#else /* !ASN_THREAD_SAFE */
int asn_debug_indent;
-#define ASN_DEBUG_INDENT_ADD(i) do { asn_debug_indent += increment; } while(0)
+#define ASN_DEBUG_INDENT_ADD(i) do { asn_debug_indent += i; } while(0)
#endif /* ASN_THREAD_SAFE */
#define ASN_DEBUG(fmt, args...) do { \
int adi = asn_debug_indent; \
10 skeletons/per_opentype.c
View
@@ -7,6 +7,16 @@
#include <constr_TYPE.h>
#include <per_opentype.h>
+/* Thread safety requires sacrifice in output indentation. */
+#ifndef ASN_DEBUG_INDENT_ADD
+#ifdef ASN_THREAD_SAFE
+#define ASN_DEBUG_INDENT_ADD(i) do{}while(0)
+#else /* !ASN_THREAD_SAFE */
+int asn_debug_indent;
+#define ASN_DEBUG_INDENT_ADD(i) do { asn_debug_indent += i; } while(0)
+#endif /* ASN_THREAD_SAFE */
+#endif /* ASN_DEBUG_INDENT_ADD */
+
typedef struct uper_ugot_key {
asn_per_data_t oldpd; /* Old per data source */
size_t unclaimed;
Please sign in to comment.
Something went wrong with that request. Please try again.