rename

rename

part of shnell – a source to source compiler enhancement tool

© Jens Gustedt, 2019

Rename a module prefix

This is intended to be used with the module directive. The module shnl file uses this with the name alias.

Usage:

#pragma MODULE alias LONGNAME ABREV

Where LONGNAME can be any longer module name and ABREV should be a simple name without ::.

Example:

#pragma MODULE  alias   ho::ho      hui
typedef hui::type type;

This will be replaced by

typedef ho::ho::type type;

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