From f7bd4be3d59a57ab3650d604bb0f6fce94c2b00d Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Tue, 3 Oct 2023 01:58:41 -0700 Subject: [PATCH] move types to other file --- binary.inc | 5 +++++ test.pas | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/binary.inc b/binary.inc index 5b88e02..045f1fc 100644 --- a/binary.inc +++ b/binary.inc @@ -1,3 +1,8 @@ +type + ByteString = String[2]; { String representing a u8. } + ShortString = String[4]; { String representing a u16. } + + function ValidHexDigit(bval: Byte): Boolean; var IsValid : Boolean = False; diff --git a/test.pas b/test.pas index e64b557..6b90725 100644 --- a/test.pas +++ b/test.pas @@ -1,8 +1,5 @@ program test; -type - ByteString = String[2]; - {$I 'binary.inc'} var