• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Experimental package creation tool for MinGW.org


コミットメタ情報

リビジョン1c5206f7fce5b491d85aefbb658e70d73c4ec7a4 (tree)
日時2018-07-05 01:32:41
作者Keith Marshall <keith@user...>
コミッターKeith Marshall

ログメッセージ

Another optstring decomposition optimization.

* src/modules/optdefn.sh (optchk): Prefer to use...
(optstring_get_optchk, optstring_get_remnant): ...these, to extract
the next available option character, and the remainder of the current
option string, when parsing short form options, rather than forking
the "cut" command explicitly.

変更サマリ

差分

--- a/src/modules/optdefn.sh
+++ b/src/modules/optdefn.sh
@@ -237,7 +237,8 @@
237237 # or the external "getopt" program, neither of which can be relied
238238 # upon to support optional option-argument processing).
239239 #
240- do opt=`echo "$arg" | cut -c1` arg=`echo "$arg" | cut -c2-`
240+ do opt=`optstring_get_optchr "$arg"`
241+ arg=`optstring_get_remnant "$arg"`
241242 have_optmatch=false argshift=0
242243 for optchr in $shortopts '??'
243244 do $have_optmatch || {