]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/unix.h
Created new data types `Filename' and `FontSpec', intended to be
[PuTTY.git] / unix / unix.h
index abe8cfd329828e1c39537658d0657aab826c27c5..e821cd49597fd9b6d9f0b65f95d0de75793fa2a1 100644 (file)
@@ -1,8 +1,18 @@
 #ifndef PUTTY_UNIX_H
 #define PUTTY_UNIX_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[256];
+};
+
 typedef void *Context;                 /* FIXME: probably needs changing */
 
 extern Backend pty_backend;