チケット #39944

For2.2.2-Refactoring: enum grid_bold_type conflicts with floor() from math.h

登録: 2020-01-22 02:11 最終更新: 2021-01-02 09:53

報告者:
担当者:
チケットの種類:
状況:
完了
コンポーネント:
(未割り当て)
優先度:
3
重要度:
3
解決法:
修正済み
ファイル:
なし

詳細

The use of "floor" as one of the elements in the grid_bold_type enum defined in grid.h means that floor() from math.h can not be used in source code that includes angband.h or grid.h. That doesn't affect any of the current source code, but main-cocoa.m for the Mac OS X interface does happen to use floor(). There are workarounds, but would it be possible to change the definition of grid_bold_type enum to avoid the conflict? Prefixing all the current elements with "g_" for "grid" would avoid the conflict.

チケットの履歴 (6 件中 3 件表示)

2020-01-22 02:11 更新者: backwardseric
  • 新しいチケット "For2.2.2-Refactoring: enum grid_bold_type conflicts with floor() from math.h" が作成されました
2020-01-22 21:35 更新者: hourier
コメント

It's my lack of understanding, thanks a lot for reporting this issue! I've already pushed the feature branch and you'll be able to merge from For2.2.2-Refactoring into your branch soon.

2020-01-23 01:00 更新者: deskull
2020-01-23 22:46 更新者: hourier
コメント

英語につき伝わりきらずすみません。昨日の時点で既に本件For2.2.2-Refactoring へマージされていますので、差分を確認し問題なければクローズ願います

2020-01-25 18:00 更新者: deskull
  • 担当者deskull から hourier に更新されました
  • 状況オープン から 完了 に更新されました
コメント

こちらこそ見逃していて申し訳ない。閉じます。

2021-01-02 09:53 更新者: deskull

添付ファイルリスト

添付ファイルはありません

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする