commit | 9d737929e663c8c0232b7e0d44f2f5917fc6e860 | [log] [tgz] |
---|---|---|
author | Yurii Zubrytskyi <zyy@google.com> | Wed Dec 07 13:33:47 2016 -0800 |
committer | Greg Hartman <ghartman@google.com> | Thu Aug 23 17:24:53 2018 -0700 |
tree | 349e4130214d5e55875d3c90785e9c2e427c586c | |
parent | e1de1dc9d39428a9ffd03e93e1309c72c2c335a4 [diff] |
[getopt] Fixed our own implementation of getopt() We have own code for getopt() that's not used now. But if we try compiling emugen on platform without native getopt(), e.g. Windows, we need to use ours. It had a bug where we were not advancing the |optind| variable if option's value was in the next |argv| item. This CL fixed it Change-Id: I4d1f4cf226f22817fdbba28a4fbc6f34ee78ea83