 +  uint8_t tenc;
 +  uint8_t tdir;
 +
++  uint8_t kfgshift;
++
 +  int32_t gnum;
 +  int32_t gden;
-+
-+  uint8_t kfgshift;
 +
 +  uint8_t language[16];
 +  uint8_t category[16];

+    throw error_c(mxsprintf("Wrong identification string: '%7s' != 'kate\\0\\0\\0'",
+                            header.kate_string)); /* won't print NULs well, but hey */
+
+  if (0 != bc.get_bits(8))
+      throw error_c("Reserved bits are not 0");
+
+  header.vmaj = bc.get_bits(8);
+  header.vmin = bc.get_bits(8);

+
+   $Id: kate_common.cpp 3134 2005-10-23 18:21:13Z mosu $
+
+   Kate helper functions
+
+   Written by ogg.k.ogg.k <ogg.k.ogg.k@googlemail.com>.
+   Adapted from code by Moritz Bunkus <moritz@bunkus.org>.
+*/
+
+#include "os.h"
