Created new data types `Filename' and `FontSpec', intended to be
[u/mdw/putty] / mac / mac.h
index 50ed142..2d7771e 100644 (file)
--- a/mac/mac.h
+++ b/mac/mac.h
 #include <Palettes.h>
 #include <UnicodeConverter.h>
 
+#include <stdio.h>                    /* for FILENAME_MAX */
+
 #include "charset.h"
 
+struct Filename {
+    char path[FILENAME_MAX];
+};
+#define f_open(filename, mode) ( fopen((filename).path, (mode)) )
+
+struct FontSpec {
+    char name[64];
+    int isbold;
+    int height;
+};
+
 #define PUTTY_CREATOR  FOUR_CHAR_CODE('pTTY')
 #define INTERNAL_CREATOR FOUR_CHAR_CODE('pTTI')
 #define SESS_TYPE      FOUR_CHAR_CODE('Sess')