Displaying 3 results from an estimated 3 matches for "cmdline2".
Did you mean:
cmdline
2009 Sep 05
2
[LLVMdev] tblgen bug in handling case , switch_on
Hi Mikhail,
What is mentioned in the reference manual is this:
// Evaluates to "cmdline1" if the option "-A" is provided on the
// command line; to "cmdline2" if "-B" is provided;
// otherwise to "cmdline3".
(case
(switch_on "A"), "cmdline1",
(switch_on "B"), "cmdline2",
(default), "cmdline3")
What is generated is this:
if (A) {
....
2010 Apr 23
1
Path simple menu integrated progress indicator
...iet = false;
+
+ kernel_name = refdup_word(&cmdline);
+ loadfile(kernel_name, &kernel_data, &kernel_size);
+ if(!kernel_data) {
+ fprintf(stdout, "%s: read error\n", kernel_name);
+ return; /* Error! */
+ }
+
+ char *cmdline2 = malloc(strlen(cmdline) + strlen(kernel_name) + 12);
+ memset(cmdline2, 0, (strlen(cmdline) + strlen(kernel_name) + 12));
+ strcat(cmdline2, kernel_name);
+ strcat(cmdline2, " ");
+ strcat(cmdline2, cmdline);
+
+ /* Initialize the initramfs chain */
+...
2009 Sep 05
0
[LLVMdev] tblgen bug in handling case , switch_on
Sanjiv Gupta wrote:
> Hi Mikhail,
>
> What is mentioned in the reference manual is this:
>
> // Evaluates to "cmdline1" if the option "-A" is provided on the
> // command line; to "cmdline2" if "-B" is provided;
> // otherwise to "cmdline3".
>
> (case
> (switch_on "A"), "cmdline1",
> (switch_on "B"), "cmdline2",
> (default), "cmdline3")
>
>
> What i...