diff options
author | Konstantin Aladyshev <aladyshev22@gmail.com> | 2021-10-24 13:36:26 +0300 |
---|---|---|
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | 2021-10-24 13:36:26 +0300 |
commit | d9be77329582a864993eb0b3ab49bec19e3972cf (patch) | |
tree | b46c6f17b96c194c3e7f051eef00da7dd5b34856 /Lessons/Lesson_48 | |
parent | 477e9e9dde8f0387a7eca9e20ffbf706929b1207 (diff) | |
download | UEFI-Lessons-d9be77329582a864993eb0b3ab49bec19e3972cf.tar.gz UEFI-Lessons-d9be77329582a864993eb0b3ab49bec19e3972cf.tar.bz2 UEFI-Lessons-d9be77329582a864993eb0b3ab49bec19e3972cf.zip |
Update lesson 48
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Diffstat (limited to 'Lessons/Lesson_48')
-rw-r--r-- | Lessons/Lesson_48/README.md | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Lessons/Lesson_48/README.md b/Lessons/Lesson_48/README.md index 96e08a1..850c218 100644 --- a/Lessons/Lesson_48/README.md +++ b/Lessons/Lesson_48/README.md @@ -369,7 +369,7 @@ unsigned char HIIStringsUNIStrings[] = { As you can see this time our strings got into the `HIIStringsUNIStrings` array. -If you execute our application under OVMF now you would get: +If you execute our application under OVMF now you would get correct output: ``` FS0:\> HIIStringsUNI.efi en-US ID=1: English @@ -379,3 +379,16 @@ fr-FR ID=1: Francais fr-FR ID=2: Bonjour! fr-FR ID=3: Au revoir! ``` + +You can see now how important to reference our strings with the `STRING_TOKEN` macro, but keep in mind that in reality this macro simply does nothing to its value (https://github.com/tianocore/edk2/blob/master/BaseTools/Source/C/Include/Common/UefiInternalFormRepresentation.h): +``` +// +// References to string tokens must use this macro to enable scanning for +// token usages. +// +// +// STRING_TOKEN is not defined in UEFI specification. But it is placed +// here for the easy access by C files and VFR source files. +// +#define STRING_TOKEN(t) t +``` |