Changeset 5659c0bd121019f419fb41aa41ea5134f11cf961
- Timestamp:
- 19/02/07 17:21:47
(2 years ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1171902107 +0000
- git-parent:
[a7e49594b6165a86d8f9dec66810245651466af5]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1171902107 +0000
- Message:
Fix possibly expansion-unsafe macros
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r5237e0c |
r5659c0b |
|
| 731 | 731 | |
|---|
| 732 | 732 | /* Helper writer functions */ |
|---|
| 733 | | #define SetWLE( p, v ) _SetWLE( (uint8_t*)p, v) |
|---|
| | 733 | #define SetWLE( p, v ) _SetWLE( (uint8_t*)(p), v) |
|---|
| 734 | 734 | static inline void _SetWLE( uint8_t *p, uint16_t i_dw ) |
|---|
| 735 | 735 | { |
|---|
| … | … | |
| 738 | 738 | } |
|---|
| 739 | 739 | |
|---|
| 740 | | #define SetDWLE( p, v ) _SetDWLE( (uint8_t*)p, v) |
|---|
| | 740 | #define SetDWLE( p, v ) _SetDWLE( (uint8_t*)(p), v) |
|---|
| 741 | 741 | static inline void _SetDWLE( uint8_t *p, uint32_t i_dw ) |
|---|
| 742 | 742 | { |
|---|
| … | … | |
| 746 | 746 | p[0] = ( i_dw )&0xff; |
|---|
| 747 | 747 | } |
|---|
| 748 | | #define SetQWLE( p, v ) _SetQWLE( (uint8_t*)p, v) |
|---|
| | 748 | #define SetQWLE( p, v ) _SetQWLE( (uint8_t*)(p), v) |
|---|
| 749 | 749 | static inline void _SetQWLE( uint8_t *p, uint64_t i_qw ) |
|---|
| 750 | 750 | { |
|---|
| … | … | |
| 752 | 752 | SetDWLE( p+4, ( i_qw >> 32)&0xffffffff ); |
|---|
| 753 | 753 | } |
|---|
| 754 | | #define SetWBE( p, v ) _SetWBE( (uint8_t*)p, v) |
|---|
| | 754 | #define SetWBE( p, v ) _SetWBE( (uint8_t*)(p), v) |
|---|
| 755 | 755 | static inline void _SetWBE( uint8_t *p, uint16_t i_dw ) |
|---|
| 756 | 756 | { |
|---|
| … | … | |
| 759 | 759 | } |
|---|
| 760 | 760 | |
|---|
| 761 | | #define SetDWBE( p, v ) _SetDWBE( (uint8_t*)p, v) |
|---|
| | 761 | #define SetDWBE( p, v ) _SetDWBE( (uint8_t*)(p), v) |
|---|
| 762 | 762 | static inline void _SetDWBE( uint8_t *p, uint32_t i_dw ) |
|---|
| 763 | 763 | { |
|---|
| … | … | |
| 767 | 767 | p[3] = ( i_dw )&0xff; |
|---|
| 768 | 768 | } |
|---|
| 769 | | #define SetQWBE( p, v ) _SetQWBE( (uint8_t*)p, v) |
|---|
| | 769 | #define SetQWBE( p, v ) _SetQWBE( (uint8_t*)(p), v) |
|---|
| 770 | 770 | static inline void _SetQWBE( uint8_t *p, uint64_t i_qw ) |
|---|
| 771 | 771 | { |
|---|