Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asn1c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
asn1c
Commits
b85507a1
Commit
b85507a1
authored
13 years ago
by
Lev Walkin
Browse files
Options
Downloads
Patches
Plain Diff
more compact indentation spec
parent
e2c05bf2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
skeletons/asn_internal.h
+7
-2
7 additions, 2 deletions
skeletons/asn_internal.h
skeletons/per_opentype.c
+0
-10
0 additions, 10 deletions
skeletons/per_opentype.c
with
7 additions
and
12 deletions
skeletons/asn_internal.h
+
7
−
2
View file @
b85507a1
...
...
@@ -28,6 +28,9 @@ int get_asn1c_environment_version(void); /* Run-time version */
#define REALLOC(oldptr, size) realloc(oldptr, size)
#define FREEMEM(ptr) free(ptr)
#define asn_debug_indent 0
#define ASN_DEBUG_INDENT_ADD(i) do{}while(0)
/*
* A macro for debugging the ASN.1 internals.
* You may enable or override it.
...
...
@@ -36,9 +39,11 @@ int get_asn1c_environment_version(void); /* Run-time version */
#if EMIT_ASN_DEBUG == 1
/* And it was asked to emit this code... */
#ifdef __GNUC__
#ifdef ASN_THREAD_SAFE
#define asn_debug_indent 0
#define
ASN_DEBUG_INDENT_ADD
(i) do{}while(0)
/* Thread safety requires sacrifice in output indentation:
* Retain empty definition of
ASN_DEBUG_INDENT_ADD
. */
#else
/* !ASN_THREAD_SAFE */
#undef ASN_DEBUG_INDENT_ADD
#undef asn_debug_indent
int
asn_debug_indent
;
#define ASN_DEBUG_INDENT_ADD(i) do { asn_debug_indent += i; } while(0)
#endif
/* ASN_THREAD_SAFE */
...
...
This diff is collapsed.
Click to expand it.
skeletons/per_opentype.c
+
0
−
10
View file @
b85507a1
...
...
@@ -7,16 +7,6 @@
#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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment