Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
a147317e
Commit
a147317e
authored
Jul 31, 2015
by
Jonathan Jenkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add default map context
parent
bad21a6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
codes/codes-mapping-context.h
codes/codes-mapping-context.h
+4
-0
src/util/codes-mapping-context.c
src/util/codes-mapping-context.c
+12
-0
No files found.
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