pint(.h): Add Modelines and fix indent (use spaces)
Change-Id: Icadbf65ad186c775b2a0ca8596d5bf4ba66e4c68 Reviewed-on: https://code.wireshark.org/review/19873 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
4248a97a9b
commit
c7622c9559
|
@ -124,18 +124,18 @@
|
|||
*/
|
||||
|
||||
#define phton16(p, v) \
|
||||
{ \
|
||||
((guint8*)(p))[0] = (guint8)((v) >> 8); \
|
||||
((guint8*)(p))[1] = (guint8)((v) >> 0); \
|
||||
}
|
||||
{ \
|
||||
((guint8*)(p))[0] = (guint8)((v) >> 8); \
|
||||
((guint8*)(p))[1] = (guint8)((v) >> 0); \
|
||||
}
|
||||
|
||||
#define phton32(p, v) \
|
||||
{ \
|
||||
((guint8*)(p))[0] = (guint8)((v) >> 24); \
|
||||
((guint8*)(p))[1] = (guint8)((v) >> 16); \
|
||||
((guint8*)(p))[2] = (guint8)((v) >> 8); \
|
||||
((guint8*)(p))[3] = (guint8)((v) >> 0); \
|
||||
}
|
||||
{ \
|
||||
((guint8*)(p))[0] = (guint8)((v) >> 24); \
|
||||
((guint8*)(p))[1] = (guint8)((v) >> 16); \
|
||||
((guint8*)(p))[2] = (guint8)((v) >> 8); \
|
||||
((guint8*)(p))[3] = (guint8)((v) >> 0); \
|
||||
}
|
||||
|
||||
static inline void phton64(guint8 *p, guint64 v) {
|
||||
p[0] = (guint8)(v >> 56);
|
||||
|
@ -152,3 +152,16 @@ static inline void phton64(guint8 *p, guint64 v) {
|
|||
#define guint32_wraparound_diff(higher, lower) ((higher>lower)?(higher-lower):(higher+0xffffffff-lower+1))
|
||||
|
||||
#endif /* PINT_H */
|
||||
|
||||
/*
|
||||
* Editor modelines - http://www.wireshark.org/tools/modelines.html
|
||||
*
|
||||
* Local Variables:
|
||||
* c-basic-offset: 4
|
||||
* tab-width: 8
|
||||
* indent-tabs-mode: nil
|
||||
* End:
|
||||
*
|
||||
* ex: set shiftwidth=4 tabstop=8 expandtab:
|
||||
* :indentSize=4:tabSize=8:noTabs=true:
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue