search for: find_argument

Displaying 5 results from an estimated 5 matches for "find_argument".

2016 Jun 10
4
[PATCH] Fix recognition of keeppxe option
...not use for boolean arguments) + * (which should include the final = for non-boolean arguments) + * Returns NULL if there is no match. * Note: the resulting string is typically not null-terminated. + * For boolean arguments, the returned pointer is valid but meaningless. */ static const char *find_argument(const char *cmdline, const char *argument) { @@ -166,6 +169,7 @@ int bios_boot_linux(void *kernel_buf, si struct syslinux_memmap *amap = NULL; uint32_t memlimit = 0; uint16_t video_mode = 0; + uint8_t bootflags = 0; const char *arg; cmdline_size = strlen(cmdline) + 1;...
2017 Mar 05
0
[PATCH] Fix recognition of keeppxe option
...) > + * (which should include the final = for non-boolean arguments) > + * Returns NULL if there is no match. > * Note: the resulting string is typically not null-terminated. > + * For boolean arguments, the returned pointer is valid but meaningless. > */ > static const char *find_argument(const char *cmdline, const char *argument) > { > @@ -166,6 +169,7 @@ int bios_boot_linux(void *kernel_buf, si > struct syslinux_memmap *amap = NULL; > uint32_t memlimit = 0; > uint16_t video_mode = 0; > + uint8_t bootflags = 0; > const char *arg; > &g...
2012 Nov 14
0
Syslinux-5.00-pre10
...com32: Include .init_array section in .ctors in linker script CLI: Fix command history traversal win: Fix installing to a directory win: Print error message if we fail to install to --directory CLI: Add Ctrl + V support for printing the Syslinux version linux.c32: Add find_arguments function extlinux: Avoid dereferencing a garbage pointer Merge branch 'multi_initrd2-5.00-pre9' of git://git.zytor.com/users/sha0/syslinux into elflink Merge branch 'hexdump' of git://git.zytor.com/users/sha0/syslinux into elflink Merge branch 'strerror-...
2012 Nov 27
0
Syslinux-6.00-pre2
...com32: Include .init_array section in .ctors in linker script CLI: Fix command history traversal win: Fix installing to a directory win: Print error message if we fail to install to --directory CLI: Add Ctrl + V support for printing the Syslinux version linux.c32: Add find_arguments function extlinux: Avoid dereferencing a garbage pointer Merge branch 'multi_initrd2-5.00-pre9' of git://git.zytor.com/users/sha0/syslinux into elflink Merge branch 'hexdump' of git://git.zytor.com/users/sha0/syslinux into elflink Merge branch 'strerror-...
2010 Apr 23
1
Path simple menu integrated progress indicator
...gument)) + return (arg - argv) + 1; + } + + return 0; +} + +/* + * Find the last instance of a particular command line argument + * (which should include the final =; do not use for boolean arguments) + * Note: the resulting string is typically not null-terminated. + */ +const char *find_argument(const char *cmdline, const char *argument) +{ + const char *found = NULL; + const char *p = cmdline; + bool was_space = true; + size_t la = strlen(argument); + + while (*p) { + if (my_isspace(*p)) { + was_space = true; + } else if (was_space) { + if (!...