bc/bc-1.06_getopt.patch

26 lines
712 B
Diff
Raw Normal View History

--- bc/main.c
+++ bc/main.c
@@ -44,14 +44,14 @@
/* long option support */
static struct option long_options[] =
{
- {"compile", 0, &compile_only, TRUE},
- {"help", 0, 0, 'h'},
- {"interactive", 0, 0, 'i'},
- {"mathlib", 0, &use_math, TRUE},
- {"quiet", 0, &quiet, TRUE},
- {"standard", 0, &std_only, TRUE},
- {"version", 0, 0, 'v'},
- {"warn", 0, &warn_not_std, TRUE},
+ {"compile", 0, 0, 'c'},
+ {"help", 0, 0, 'h'},
+ {"interactive", 0, 0, 'i'},
+ {"mathlib", 0, 0, 'l'},
+ {"quiet", 0, 0, 'q'},
+ {"standard", 0, 0, 's'},
+ {"version", 0, 0, 'v'},
+ {"warn", 0, 0, 'w'},
{0, 0, 0, 0}
};