チケット #45026

Make A_NONE 1

登録: 2022-07-05 21:21 最終更新: 2022-08-31 12:05

報告者:
担当者:
(未割り当て)
チケットの種類:
状況:
オープン
コンポーネント:
マイルストーン:
優先度:
5 - 中
重要度:
5 - 中
解決法:
なし
ファイル:
なし

詳細

My patch #44930 suffers from some A_NONE / A_NEVER confusion. A_NONE is 0, and A_NEVER is NULL which is also 0.

I'd change value of A_NONE to 1, so it would be different from A_NEVER, and more importantly, compiler would give an error when one tries to put that value to a pointer. Negligible con would be that one slot in the beginning of various arrays would get wasted.

The other A_xxx values need to be similarly increased by one.

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

2022-07-05 21:21 更新者: cazfi
  • 新しいチケット "Make A_NONE 1" が作成されました
2022-08-31 12:05 更新者: cazfi
コメント

Would need to fix #45530 first.

添付ファイルリスト

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

編集

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