aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc/include-stack.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-04 16:54:16 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-04 16:54:16 +0100
commitf96b61334ceb6e2cb04d117f403dc269de2c49b8 (patch)
treec9f444c03e09652c7ffe87b03972c712ce52e68f /src/mds-kbdc/include-stack.c
parentmds-kbdc: more compilation (diff)
downloadmds-f96b61334ceb6e2cb04d117f403dc269de2c49b8.tar.gz
mds-f96b61334ceb6e2cb04d117f403dc269de2c49b8.tar.bz2
mds-f96b61334ceb6e2cb04d117f403dc269de2c49b8.tar.xz
mds-kbdc: more progress on the compilation
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-kbdc/include-stack.c')
-rw-r--r--src/mds-kbdc/include-stack.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mds-kbdc/include-stack.c b/src/mds-kbdc/include-stack.c
index e3aff48..401bde5 100644
--- a/src/mds-kbdc/include-stack.c
+++ b/src/mds-kbdc/include-stack.c
@@ -31,7 +31,7 @@ static mds_kbdc_parse_error_t* error;
/**
* The `result` parameter of root procedure that requires the include stack
*/
-static mds_kbdc_parsed_t* restrict result;
+static mds_kbdc_parsed_t* result;
/**
* The original value of `result->pathname`
@@ -46,7 +46,7 @@ static mds_kbdc_source_code_t* original_source_code;
/**
* Stack of visited include-statements
*/
-static mds_kbdc_tree_include_t** restrict includes = NULL;
+static const mds_kbdc_tree_include_t** restrict includes = NULL;
/**
* The number elements allocated for `includes`
@@ -125,9 +125,9 @@ void mds_kbdc_include_stack_end(void)
* is undefined on error
* @return Zero on success, -1 on error
*/
-int mds_kbdc_include_stack_push(mds_kbdc_tree_include_t* restrict tree, void** data)
+int mds_kbdc_include_stack_push(const mds_kbdc_tree_include_t* restrict tree, void** data)
{
- mds_kbdc_tree_include_t** old = NULL;
+ const mds_kbdc_tree_include_t** old = NULL;
int saved_errno;
if (includes_ptr == includes_size)