aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sistypes.h
diff options
context:
space:
mode:
authorDaniel Brahneborg <basic@chello.se>2002-03-04 14:31:16 +0000
committerDaniel Brahneborg <basic@chello.se>2002-03-04 14:31:16 +0000
commitdbfc3ee2b91ed26eb00e85a32c715995f4fce41b (patch)
tree82605dba9b7a1d14c3e952af32bef2852d60703b /lib/sistypes.h
parentb68ab4b0002aa0c59fdbbfee3076e35aeac44d68 (diff)
downloadplptools-dbfc3ee2b91ed26eb00e85a32c715995f4fce41b.tar.gz
plptools-dbfc3ee2b91ed26eb00e85a32c715995f4fce41b.tar.bz2
plptools-dbfc3ee2b91ed26eb00e85a32c715995f4fce41b.zip
Use plp standard types.
Fix copyright include.
Diffstat (limited to 'lib/sistypes.h')
-rw-r--r--lib/sistypes.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/sistypes.h b/lib/sistypes.h
index c763c4f..12f237b 100644
--- a/lib/sistypes.h
+++ b/lib/sistypes.h
@@ -1,4 +1,4 @@
-/** -*-c++-*-
+/* -*-c++-*-
* $Id$
*
* This file is part of plptools.
@@ -23,9 +23,7 @@
#ifndef _SISTYPES_H
#define _SISTYPES_H
-typedef unsigned short uint16;
-typedef unsigned int uint32;
-typedef unsigned char uchar;
+#include "plp_inttypes.h"
/**
* Return Codes.
@@ -36,15 +34,15 @@ enum SisRC {
SIS_CORRUPTED,
};
-extern uint16 read16(uchar* p);
+extern uint16_t read16(uint8_t* p);
-extern uint32 read32(uchar* p);
+extern uint32_t read32(uint8_t* p);
-extern void write16(uchar* p, int val);
+extern void write16(uint8_t* p, int val);
extern void createCRCTable();
-extern uint16 updateCrc(uint16 crc, uchar value);
+extern uint16_t updateCrc(uint16_t crc, uint8_t value);
extern int logLevel;
@@ -54,7 +52,7 @@ extern int logLevel;
*/
struct LangTableEntry
{
- uint16 m_no;
+ uint16_t m_no;
char m_code[3];
char* m_name;
};