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]
/
winstuff.h
diff --git
a/winstuff.h
b/winstuff.h
index
1aa68bb
..
1cbe5b7
100644
(file)
--- a/
winstuff.h
+++ b/
winstuff.h
@@
-5,6
+5,20
@@
#ifndef PUTTY_WINSTUFF_H
#define PUTTY_WINSTUFF_H
#ifndef PUTTY_WINSTUFF_H
#define PUTTY_WINSTUFF_H
+#include <stdio.h> /* for FILENAME_MAX */
+
+struct Filename {
+ char path[FILENAME_MAX];
+};
+#define f_open(filename, mode) ( fopen((filename).path, (mode)) )
+
+struct FontSpec {
+ char name[64];
+ int isbold;
+ int height;
+ int charset;
+};
+
/*
* Global variables. Most modules declare these `extern', but
* window.c will do `#define PUTTY_DO_GLOBALS' before including this
/*
* Global variables. Most modules declare these `extern', but
* window.c will do `#define PUTTY_DO_GLOBALS' before including this