Added some comments.
FossilOrigin-Name: 04f80317574a45bfd705dc38137f421eacc055ae76c51f9648f2ca46b27793fd
This commit is contained in:
parent
0919d85456
commit
b7e34d6dde
14
src/cw/cw.h
14
src/cw/cw.h
@ -16,7 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Use some macros from LWAPP */
|
/* Use some macros from LWAPP */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -43,9 +42,22 @@
|
|||||||
*/
|
*/
|
||||||
#define cw_put_data lw_put_data
|
#define cw_put_data lw_put_data
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Put a bstr_t object
|
||||||
|
* see #lw_put_bstr
|
||||||
|
*/
|
||||||
#define cw_put_bstr lw_put_bstr
|
#define cw_put_bstr lw_put_bstr
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Put bstr16_t object
|
||||||
|
* see #lw_put_bstr16
|
||||||
|
*/
|
||||||
#define cw_put_bstr16 lw_put_bstr16
|
#define cw_put_bstr16 lw_put_bstr16
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set dword
|
||||||
|
* see #lw_set_dword
|
||||||
|
*/
|
||||||
#define cw_set_dword lw_set_dword
|
#define cw_set_dword lw_set_dword
|
||||||
|
|
||||||
#define cw_get_byte lw_get_byte
|
#define cw_get_byte lw_get_byte
|
||||||
|
@ -50,6 +50,10 @@
|
|||||||
#define lw_set_word(dst,b) \
|
#define lw_set_word(dst,b) \
|
||||||
(*((uint16_t*)(dst)) = htons(w))
|
(*((uint16_t*)(dst)) = htons(w))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Same as #lw_put_dword, but the return value
|
||||||
|
* is unspecified.
|
||||||
|
*/
|
||||||
#define lw_set_dword(dst,dw)\
|
#define lw_set_dword(dst,dw)\
|
||||||
(*((uint32_t*)(dst)) = htonl(dw))
|
(*((uint32_t*)(dst)) = htonl(dw))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user