aboutsummaryrefslogtreecommitdiff
path: root/c_emulator
diff options
context:
space:
mode:
authorScott Johnson <scott.johnson@arilinc.com>2019-09-17 15:02:03 -0700
committerScott Johnson <scott.johnson@arilinc.com>2019-09-17 15:02:03 -0700
commit4c1a94e2734aed9eeab14b2c9ea105f6e5a811c7 (patch)
tree2155433f3f9f71ac895cf9aaa37ae7e51e32b3fe /c_emulator
parent86ff4e00905f1202bffb7e2be3709030d2cba1c2 (diff)
downloadsail-riscv-4c1a94e2734aed9eeab14b2c9ea105f6e5a811c7.zip
sail-riscv-4c1a94e2734aed9eeab14b2c9ea105f6e5a811c7.tar.gz
sail-riscv-4c1a94e2734aed9eeab14b2c9ea105f6e5a811c7.tar.bz2
Expand getopt_long option string to multiple lines
This will make future diffs easier to read and merge, since adding and removing options will show up as entire lines that change instead of a few characters in the middle of the line.
Diffstat (limited to 'c_emulator')
-rw-r--r--c_emulator/riscv_sim.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/c_emulator/riscv_sim.c b/c_emulator/riscv_sim.c
index 6188e96..f8f0820 100644
--- a/c_emulator/riscv_sim.c
+++ b/c_emulator/riscv_sim.c
@@ -196,7 +196,25 @@ char *process_args(int argc, char **argv)
int c, idx = 1;
uint64_t ram_size = 0;
while(true) {
- c = getopt_long(argc, argv, "admCIispz:b:t:hr:T:V::v::l:", options, &idx);
+ c = getopt_long(argc, argv,
+ "a"
+ "d"
+ "m"
+ "C"
+ "I"
+ "i"
+ "s"
+ "p"
+ "z:"
+ "b:"
+ "t:"
+ "h"
+ "r:"
+ "T:"
+ "V::"
+ "v::"
+ "l:"
+ , options, &idx);
if (c == -1) break;
switch (c) {
case 'a':