MPS issue job003636

TitleCan't pass debugging options by keyword argument
Statusclosed
Priorityessential
Assigned userGareth Rees
OrganizationRavenbrook
DescriptionIf I try

    MPS_ARGS_BEGIN(args) {
        MPS_ARGS_ADD(args, MPS_KEY_CHAIN, chain);
        MPS_ARGS_ADD(args, MPS_KEY_FORMAT, fmt);
        MPS_ARGS_ADD(args, MPS_KEY_POOL_DEBUG_OPTIONS, &debug_options);
        MPS_ARGS_DONE(args);
        res = mps_pool_create_k(&pool, arena, mps_class_ams_debug(), args);
    } MPS_ARGS_END(args);

I get the compilation error

    gc.c:252:28: error: no member named 'MPS_KEY_POOL_DEBUG_OPTIONS_FIELD' in 'union mps_arg_s::<anonymous at mps.h:118:3>'
            MPS_ARGS_ADD(args, MPS_KEY_POOL_DEBUG_OPTIONS, &debug_options);
AnalysisThis line in mps.h:

    #define MPS_KEY_VAL_POOL_DEBUG_OPTIONS pool_debug_options

should say:

    #define MPS_KEY_POOL_DEBUG_OPTIONS_FIELD pool_debug_options
How foundmanual_test
EvidenceNone.
Created byGareth Rees
Created on2013-10-04 10:53:34
Last modified byGareth Rees
Last modified on2013-10-04 11:06:34
History2013-10-04 GDR Created.

Fixes

Change Effect Date User Description
183524 closed 2013-10-04 11:05:56 Gareth Rees Fix broken MPS_KEY_POOL_DEBUG_OPTIONS keyword argument.