Skip to content

Commit

Permalink
starboard/types.h: Remove kSbInvalidInt (#4386)
Browse files Browse the repository at this point in the history
By inlining the necessary min-int equivalent.

b/366064934
  • Loading branch information
yell0wd0g authored Nov 12, 2024
1 parent 6cb4dc3 commit 534b340
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion starboard/drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ typedef void (*SbDrmServerCertificateUpdatedFunc)(SbDrmSystem drm_system,
#define kSbDrmSystemInvalid ((SbDrmSystem)NULL)

// A ticket for callback invocations initiated by the DRM system.
#define kSbDrmTicketInvalid kSbInvalidInt
#define kSbDrmTicketInvalid INT_MIN

// --- Functions -------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion starboard/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ typedef enum SbThreadPriority {
// default priority assignment method of that platform. This may mean to
// inherit the priority of the spawning thread, or it may mean a specific
// default priority, or it may mean something else, depending on the platform.
kSbThreadNoPriority = kSbInvalidInt,
kSbThreadNoPriority = INT_MIN,
} SbThreadPriority;

// An ID type that is unique per thread.
Expand Down
3 changes: 0 additions & 3 deletions starboard/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ typedef int64_t ssize_t;
#endif
#endif // !SB_HAS(SSIZE_T)

// A value that represents an int that is probably invalid.
#define kSbInvalidInt INT32_MIN

// --- Standard Include Emulation Audits ---------------------------------------

#if (UINT_MIN + 1 == UINT_MAX - 1) || (INT_MIN + 1 == INT_MAX - 1) || \
Expand Down

0 comments on commit 534b340

Please sign in to comment.