Commit 75b1867a authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Improve Hdr2H to alow skipping of regions

Detail:
  Build/Hdr2H,102 - If a line starts with ";NoHdr2H{" then skip all following lines until a ";NoHdr2H}" line is found. This allows blocks which are too tricky for Hdr2H to understand, or simply irrelevant to C code, to be ignored by the tool and not added to the C header.
Admin:
  Tested with iMX6 ROM build
parent 191c43c1
......@@ -93,6 +93,14 @@ sub processfile {
END
while(<IN>) {
if(/^;NoHdr2H\{/) { # Skip blocks that we're told to skip
while (<IN>) {
if (/^;NoHdr2H\}/) {
last;
}
}
next;
}
s/\;.*//;
next unless /\S/;
s/\s+$//;
......
/* (1.82)
/* (1.83)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 1.82
#define Module_MajorVersion_CMHG 1.83
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 04 Nov 2015
#define Module_Date_CMHG 29 Nov 2015
#define Module_MajorVersion "1.82"
#define Module_Version 182
#define Module_MajorVersion "1.83"
#define Module_Version 183
#define Module_MinorVersion ""
#define Module_Date "04 Nov 2015"
#define Module_Date "29 Nov 2015"
#define Module_ApplicationDate "04-Nov-15"
#define Module_ApplicationDate "29-Nov-15"
#define Module_ComponentName "Library"
#define Module_ComponentPath "mixed/RiscOS/Library"
#define Module_FullVersion "1.82"
#define Module_HelpVersion "1.82 (04 Nov 2015)"
#define Module_LibraryVersionInfo "1:82"
#define Module_FullVersion "1.83"
#define Module_HelpVersion "1.83 (29 Nov 2015)"
#define Module_LibraryVersionInfo "1:83"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment