Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xin Wang
codes-dev
Commits
a147317e
Commit
a147317e
authored
Jul 31, 2015
by
Jonathan Jenkins
Browse files
add default map context
parent
bad21a6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
codes/codes-mapping-context.h
View file @
a147317e
...
...
@@ -16,6 +16,10 @@
#include <stdbool.h>
#include <ross.h>
/* for convenience - an annotation-ignoring "group_modulo" context,
* matching previous mapping behavior in most interfaces (modelnet and such) */
extern
struct
codes_mctx
const
CODES_MCTX_DEFAULT
;
/* types of map contexts */
enum
codes_mctx_type
{
// instructs those using the context to map directly to an LP
...
...
src/util/codes-mapping-context.c
View file @
a147317e
...
...
@@ -7,6 +7,18 @@
#include <codes/codes-mapping-context.h>
#include <codes/codes_mapping.h>
struct
codes_mctx
const
CODES_MCTX_DEFAULT
=
{
.
type
=
CODES_MCTX_GROUP_MODULO
,
.
u
=
{
.
group_modulo
=
{
.
anno
=
{
.
annotation
=
NULL
,
.
ignore_annotations
=
true
}
}
}
};
struct
codes_mctx
codes_mctx_set_global_direct
(
tw_lpid
lpid
)
{
struct
codes_mctx
rtn
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment