projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Actually use macabout.c.
[u/mdw/putty]
/
unix
/
unix.h
diff --git
a/unix/unix.h
b/unix/unix.h
index
65f374d
..
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;
@@
-39,7
+49,7
@@
char *get_x_display(void *frontend);
int font_dimension(void *frontend, int which);/* 0 for width, 1 for height */
/* Things uxstore.c needs from pterm.c */
int font_dimension(void *frontend, int which);/* 0 for width, 1 for height */
/* Things uxstore.c needs from pterm.c */
-char *x_get_default(char *key);
+char *x_get_default(c
onst c
har *key);
/* Things uxstore.c provides to pterm.c */
void provide_xrm_string(char *string);
/* Things uxstore.c provides to pterm.c */
void provide_xrm_string(char *string);