AcademySoftwareFoundation / AcademySoftwareFoundation/OpenColorIO
Inconsistent use of sscanf macro from Platform.h
- Vorherrschende Sprache
- C++
- Sterne
- 2.1k
- Forks
- 503
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
We have a number of files where we use sscanf() sometimes we use the macro from Platform.h, other times we explicitly #ifdef _WIN32.
The macro usage is fragile, we should make the code consistent in using whatever solution we decide, at a minimum I would propose all code should use the macro, though ideally we should also replace the macro with something more suitably robust
Beitragsleitfaden
Rechercherichtung
Beginne mit Platform.h und durchsuche das Repository nach sscanf(), dem Platform.h-Makro und _WIN32-Bedingungen. Vergleiche die bestehenden Ansätze und ermittle den abgestimmten portablen Ersatz; als erledigt gilt die Aufgabe, wenn die Verwendung in den betroffenen Dateien konsistent ist und das plattformspezifische Verhalten korrekt bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp
- Bereich
- operating-systems
- Issue-Typ
- Refactoring
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100