Project

General

Profile

Actions

Feature #2474

closed

SDL3_rotozoom.c : NULL -> nullptr

Added by Marko Lindqvist 21 days ago. Updated 1 day ago.

Status:
Closed
Priority:
Normal
Category:
sdl3-client
Target version:
Start date:
11/10/2026
Due date:
% Done:

0%

Estimated time:

Description

Replace NULLs in SDL3_rotozoom.c with nullptrs.


Files

Actions #1

Updated by Marko Lindqvist 21 days ago

Actions #2

Updated by Marko Lindqvist 15 days ago ยท Edited

  • Status changed from In Review to In Progress

clang:

../../src/client/gui-sdl3/SDL3_gfx/SDL3_rotozoom.c:202:63: error: use of undeclared identifier 'nullptr'
  202 |         if ((sax = (int *) malloc((dst->w + 1) * sizeof(Uint32))) == nullptr) {
      |                                                                      ^~~~~~~
../../src/client/gui-sdl3/SDL3_gfx/SDL3_rotozoom.c:205:63: error: use of undeclared identifier 'nullptr'
  205 |         if ((say = (int *) malloc((dst->h + 1) * sizeof(Uint32))) == nullptr) {
      |                                                                      ^~~~~~~
../../src/client/gui-sdl3/SDL3_gfx/SDL3_rotozoom.c:554:13: error: use of undeclared identifier 'nullptr'
  554 |             return nullptr;
...

Actions #3

Updated by Marko Lindqvist 15 days ago

Marko Lindqvist wrote in #note-2:

clang:

Fixed

Actions #4

Updated by Marko Lindqvist 1 day ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF