Ticket #45026

Make A_NONE 1

Eröffnet am: 2022-07-05 21:21 Letztes Update: 2022-08-31 12:05

Auswertung:
Verantwortlicher:
(Keine)
Typ:
Status:
Offen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Keine
Datei:
Keine

Details

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.

Ticket-Verlauf (2/2 Historien)

2022-07-05 21:21 Aktualisiert von: cazfi
  • New Ticket "Make A_NONE 1" created
2022-08-31 12:05 Aktualisiert von: cazfi
Kommentar

Would need to fix #45530 first.

Dateianhangliste

Keine Anhänge

Bearbeiten

Please login to add comment to this ticket » Anmelden