1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

phar: Remove unused macro (#20343)

This commit is contained in:
Niels Dossche
2025-10-30 22:45:52 +01:00
committed by GitHub
parent 2523491fd5
commit 425b97e0b6

View File

@@ -464,17 +464,10 @@ ZEND_ATTRIBUTE_NONNULL void phar_entry_remove(phar_entry_data *idata, char **err
| ((uint32_t)(((unsigned char*)(buffer))[1]) << 8) \
| ((uint32_t)((unsigned char*)(buffer))[0]); \
(buffer) += 4
# define PHAR_GET_16(buffer, var) \
var = ((uint16_t)(((unsigned char*)(buffer))[1]) << 8) \
| ((uint16_t)((unsigned char*)(buffer))[0]); \
(buffer) += 2
#else
# define PHAR_GET_32(buffer, var) \
memcpy(&var, buffer, sizeof(var)); \
buffer += 4
# define PHAR_GET_16(buffer, var) \
var = *(uint16_t*)(buffer); \
buffer += 2
#endif
#define PHAR_ZIP_16(var) ((uint16_t)((((uint16_t)var[0]) & 0xff) | \
(((uint16_t)var[1]) & 0xff) << 8))