diff options
author | 2016-09-03 16:11:58 -0400 | |
---|---|---|
committer | 2016-09-03 16:11:58 -0400 | |
commit | 4251194fe5b9f4d7551c362326e7ca20bc7da99b (patch) | |
tree | b82bba2120de1fbfd16631b91ba8b479e2ccf9fe /src/tools/imgtool/modules/cybiko.cpp | |
parent | be3c18302e117049c0f4c75f719afc3d3d69aa08 (diff) |
Worked around the OPTION_GUIDE_EXTERN issue by using a crazy trick involving namespaces
Caveats:
1. Because of how this trick works, it is no longer possible to declare an option guide as static, so I had to make a bunch of changes
2. I'm going to want the hardcore C++ guys (i.e. - Vas) to review this with a fine toothed comb
Diffstat (limited to 'src/tools/imgtool/modules/cybiko.cpp')
-rw-r--r-- | src/tools/imgtool/modules/cybiko.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/imgtool/modules/cybiko.cpp b/src/tools/imgtool/modules/cybiko.cpp index a822c904cde..a90f9daa745 100644 --- a/src/tools/imgtool/modules/cybiko.cpp +++ b/src/tools/imgtool/modules/cybiko.cpp @@ -531,7 +531,7 @@ static imgtoolerr_t cybiko_image_delete_file( imgtool_partition *partition, cons return IMGTOOLERR_SUCCESS; } -static OPTION_GUIDE_START( cybiko_image_createimage_optguide ) +OPTION_GUIDE_START( cybiko_image_createimage_optguide ) OPTION_ENUM_START( 'F', "flash", "Flash Type" ) OPTION_ENUM( 0, "AT45DB041", "AT45DB041 (528 KByte)" ) OPTION_ENUM( 1, "AT45DB081", "AT45DB081 (1056 KByte)" ) |