Quellcode durchsuchen

From: David Decotigny <decot@googlers.com>
Date: Thu, 31 Jul 2014 13:41:52 -0700
Subject: [PATCH 3/4] document format of LoadedImage::LoadOptions data

Signed-off-by: David Decotigny <decot@googlers.com>
Signed-off-by: Nigel Croxon <nigel.croxon@hp.com>

Nigel Croxon vor 10 Jahren
Ursprung
Commit
a61fa058e9
1 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen
  1. 12 0
      gnu-efi-3.0/lib/cmdline.c

+ 12 - 0
gnu-efi-3.0/lib/cmdline.c

@@ -7,6 +7,18 @@
 # define MAX_CMDLINE_ARGC 32
 #endif
 
+/*
+  Parse LoadedImage options area, called only in case the regular
+  shell protos are not available.
+
+  Format of LoadedImage->LoadOptions appears to be a
+  single-space-separated list of args (looks like the shell already
+  pre-parses the input, it apparently folds several consecutive spaces
+  into one):
+    argv[0] space argv[1] (etc.) argv[N] space \0 cwd \0 other data
+  For safety, we support the trailing \0 without a space before, as
+  well as several consecutive spaces (-> several args).
+*/
 INTN
 GetShellArgcArgv(
     EFI_HANDLE ImageHandle,