Mercurial > hg > nginx
comparison src/core/ngx_string.h @ 8108:351d7f4e326f
Fixed alignment of ngx_memmove()/ngx_movemem() macro definitions.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 30 Nov 2022 18:01:43 +0300 |
parents | 9ca82f273967 |
children | 2ffefe2f892e |
comparison
equal
deleted
inserted
replaced
8107:0b360747c74e | 8108:351d7f4e326f |
---|---|
138 #define ngx_copy ngx_cpymem | 138 #define ngx_copy ngx_cpymem |
139 | 139 |
140 #endif | 140 #endif |
141 | 141 |
142 | 142 |
143 #define ngx_memmove(dst, src, n) (void) memmove(dst, src, n) | 143 #define ngx_memmove(dst, src, n) (void) memmove(dst, src, n) |
144 #define ngx_movemem(dst, src, n) (((u_char *) memmove(dst, src, n)) + (n)) | 144 #define ngx_movemem(dst, src, n) (((u_char *) memmove(dst, src, n)) + (n)) |
145 | 145 |
146 | 146 |
147 /* msvc and icc7 compile memcmp() to the inline loop */ | 147 /* msvc and icc7 compile memcmp() to the inline loop */ |
148 #define ngx_memcmp(s1, s2, n) memcmp((const char *) s1, (const char *) s2, n) | 148 #define ngx_memcmp(s1, s2, n) memcmp((const char *) s1, (const char *) s2, n) |
149 | 149 |