- Timestamp:
- Dec 31, 2021 2:25:56 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/UnattendedScript.cpp
r93085 r93108 58 58 static const char s_szPrefixInsert[] = "@@VBOX_INSERT_"; 59 59 static const char s_szPrefixCond[] = "@@VBOX_COND_"; 60 static const char s_szPrefixCondElse[] = "@@VBOX_COND_ELSE@@"; 60 61 static const char s_szPrefixCondEnd[] = "@@VBOX_COND_END@@"; 61 62 static const char s_szPrefixSplitter[] = "@@VBOX_SPLITTER"; … … 183 184 tr("%s without @@VBOX_COND_XXX@@ at offset %zu (%#zx)"), 184 185 s_szPrefixCondEnd, offPlaceholder, offPlaceholder); 186 break; 187 } 188 } 189 /* 190 * @@VBOX_COND_ELSE@@: Flip the output setting of the current condition. 191 */ 192 else if ( strncmp(pszPlaceholder, s_szPrefixCondElse, sizeof(s_szPrefixCondElse) - 1U) == 0 ) 193 { 194 if (cConds > 0) 195 fOutputting = !fOutputting; 196 else 197 { 198 hrc = mpSetError->setErrorBoth(E_FAIL, VERR_PARSE_ERROR, 199 tr("%s without @@VBOX_COND_XXX@@ at offset %zu (%#zx)"), 200 s_szPrefixCondElse, offPlaceholder, offPlaceholder); 185 201 break; 186 202 }
Note:
See TracChangeset
for help on using the changeset viewer.