attribute

attribute

part of shnell – a source to source compiler enhancement tool

© Jens Gustedt, 2019

Implement C2x’ new attribute syntax

This relies on legacy methods provided by common compilers such as gcc’s __attribute__.

You should provide your idea of the legacy compiler to use through the environment variable ATTRIBUTES. This should provide the implementation specific prefix and is used to guess the implementation-specific syntax that implement attributes.

We currently support the following values:

Coding and configuration

The following code is needed to enable the sh-module framework.

SRC="$_" . "${0%%/${0##*/}}/import.sh"

Imports

The following sh-modules are imported:

Details