projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deglobalise the Unicode module. Despite all my grand plans, I've
[u/mdw/putty]
/
terminal.h
diff --git
a/terminal.h
b/terminal.h
index
72c8f87
..
daadd70
100644
(file)
--- a/
terminal.h
+++ b/
terminal.h
@@
-171,6
+171,8
@@
struct terminal_tag {
void *logctx;
void *logctx;
+ struct unicode_data *ucsdata;
+
/*
* We maintain a full _copy_ of a Config structure here, not
* merely a pointer to it. That way, when we're passed a new
/*
* We maintain a full _copy_ of a Config structure here, not
* merely a pointer to it. That way, when we're passed a new
@@
-181,6
+183,6
@@
struct terminal_tag {
Config cfg;
};
Config cfg;
};
-#define in_utf(term) ((term)->utf || line_codepage==CP_UTF8)
+#define in_utf(term) ((term)->utf ||
(term)->ucsdata->
line_codepage==CP_UTF8)
#endif
#endif