From c7622c9559dde206917990edc46dc1992e434f53 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Fri, 3 Feb 2017 23:06:48 -0500 Subject: pint(.h): Add Modelines and fix indent (use spaces) Change-Id: Icadbf65ad186c775b2a0ca8596d5bf4ba66e4c68 Reviewed-on: https://code.wireshark.org/review/19873 Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- wsutil/pint.h | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'wsutil') diff --git a/wsutil/pint.h b/wsutil/pint.h index ecea5fc94a..77c448e4b0 100644 --- a/wsutil/pint.h +++ b/wsutil/pint.h @@ -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: + */ -- cgit v1.2.1