projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Created new data types `Filename' and `FontSpec', intended to be
[u/mdw/putty]
/
unix
/
unix.h
diff --git
a/unix/unix.h
b/unix/unix.h
index
abe8cfd
..
e821cd4
100644
(file)
--- a/
unix/unix.h
+++ b/
unix/unix.h
@@
-1,8
+1,18
@@
#ifndef PUTTY_UNIX_H
#define PUTTY_UNIX_H
#ifndef PUTTY_UNIX_H
#define PUTTY_UNIX_H
+#include <stdio.h> /* for FILENAME_MAX */
#include "charset.h"
#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;
typedef void *Context; /* FIXME: probably needs changing */
extern Backend pty_backend;