]> git.corax.cc Git - toolbox/commit
include/opt: Remove unnecessary array __opt_long
authorMatthias Kruk <m@m10k.eu>
Thu, 11 Aug 2022 17:48:34 +0000 (02:48 +0900)
committerMatthias Kruk <m@m10k.eu>
Thu, 11 Aug 2022 17:48:34 +0000 (02:48 +0900)
commit9cd91f5ef4c0030e0138f3f496d29d6d18c21c64
tree101c69e95e4a9ca1b4739f2a0b5b16f39f48f349
parent37f4528eea77e3481c36b9c194f1f4c69879b694
include/opt: Remove unnecessary array __opt_long

The data that is stored in opt's __opt_long array is a subset of
the data stored in __opt_map. The operations that the module does
on __opt_long might just as well be performed on __opt_map without
affecting the behavior of the module.

This commit removes the __opt_long array from the module and
changes the affected functions to use __opt_map instead.
include/opt.sh