Skip to content

Commit

Permalink
fixed indentation in per
Browse files Browse the repository at this point in the history
  • Loading branch information
vlm committed Feb 27, 2012
1 parent 69c73dc commit e2c05bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion skeletons/asn_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down
10 changes: 10 additions & 0 deletions skeletons/per_opentype.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e2c05bf

Please sign in to comment.