incubator-lucy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marvin Humphrey (JIRA)" <>
Subject [jira] Updated: (LUCY-16) Boilerplater::Type::Arbitrary
Date Mon, 17 Aug 2009 01:46:14 GMT


Marvin Humphrey updated LUCY-16:

    Attachment: 107-arbitrary_type.t

The "arbitrary" type class is a hack that spares us from having to support C
types with complex declaration syntaxes -- such as unions, structs, enums, or
function pointers -- from within Boilerplater itself.

The only constraint is that the specifier must end in "_t".  This allows us
to create complex types in a C header file...

    typedef union { float f; int i; } floatint_t;

... pound-include the C header, then use the resulting typedef in a .bp file
and have it parse as an "arbitrary" type.

    floatint_t floatint;

> Boilerplater::Type::Arbitrary
> -----------------------------
>                 Key: LUCY-16
>                 URL:
>             Project: Lucy
>          Issue Type: Sub-task
>          Components: Boilerplater
>            Reporter: Marvin Humphrey
>            Assignee: Marvin Humphrey
>         Attachments: 107-arbitrary_type.t,, parser_add_arbitrary_type_support.diff
> Support arbitrary types, typically defined via a typedef in a C header file, so long
> as the type name ends with "_t".

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message