summaryrefslogtreecommitdiffstats
path: root/mac/tkMacFont.c
diff options
context:
space:
mode:
authordas <das>2002-10-09 11:56:25 (GMT)
committerdas <das>2002-10-09 11:56:25 (GMT)
commit4278227fc8a6be392dcdaeeb74167fd1197e50ed (patch)
tree7a0531085231adfb4afeee1749324d002f0e35c2 /mac/tkMacFont.c
parent8cbbdb18b55a4c0123e7c195f078bfe52e27f2a4 (diff)
downloadtk-4278227fc8a6be392dcdaeeb74167fd1197e50ed.zip
tk-4278227fc8a6be392dcdaeeb74167fd1197e50ed.tar.gz
tk-4278227fc8a6be392dcdaeeb74167fd1197e50ed.tar.bz2
* generic/tkInt.decls(tkIntXlib): added XQueryTree declaration for
mac & aqua, since it's now called from ParentXId via Tk_HandleEvent. * generic/tkIntXlibDecls.h: * generic/tkStubInit.c: regen. * mac/tkMacXStubs.c: added XQueryTree stub * mac/tkMacEmbed.c (TkpUseWindow): check that container window has -container option set (sync with other platforms). * mac/tkMacBitmap.c: * mac/tkMacFont.c: * mac/tkMacSend.c: * mac/tkMacTest.c: * mac/tkMacWm.c: CONSTification. * mac/tkMacProjects.sea.hqx: added tkStyle.c and tkUndo.c to tk library projects.
Diffstat (limited to 'mac/tkMacFont.c')
-rw-r--r--mac/tkMacFont.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/mac/tkMacFont.c b/mac/tkMacFont.c
index f58c76d..61159a8 100644
--- a/mac/tkMacFont.c
+++ b/mac/tkMacFont.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacFont.c,v 1.7 2002/01/17 03:35:01 dgp Exp $
+ * RCS: @(#) $Id: tkMacFont.c,v 1.8 2002/10/09 11:56:43 das Exp $
*/
#include <Windows.h>
@@ -241,7 +241,7 @@ static FontFamily * AllocFontFamily(CONST MacFont *fontPtr, int family);
static SubFont * CanUseFallback(MacFont *fontPtr,
CONST char *fallbackName, int ch);
static SubFont * CanUseFallbackWithAliases(MacFont *fontPtr,
- char *faceName, int ch, Tcl_DString *nameTriedPtr);
+ CONST char *faceName, int ch, Tcl_DString *nameTriedPtr);
static SubFont * FindSubFontForChar(MacFont *fontPtr, int ch);
static void FontMapInsert(SubFont *subFontPtr, int ch);
static void FontMapLoadPage(SubFont *subFontPtr, int row);
@@ -484,7 +484,8 @@ TkpGetFontFromAttributes(
{
short faceNum, style;
int i, j;
- char *faceName, *fallback;
+ CONST char *faceName;
+ char *fallback;
char ***fallbacks;
MacFont *fontPtr;
@@ -1498,7 +1499,7 @@ FindSubFontForChar(
int ch) /* The Unicode character to be displayed. */
{
int i, j, k;
- char *fallbackName;
+ CONST char *fallbackName;
char **aliases;
SubFont *subFontPtr;
FontNameMap *mapPtr;
@@ -1831,7 +1832,7 @@ static SubFont *
CanUseFallbackWithAliases(
MacFont *fontPtr, /* The font object that will own the new
* screen font. */
- char *faceName, /* Desired face name for new screen font. */
+ CONST char *faceName, /* Desired face name for new screen font. */
int ch, /* The Unicode character that the new
* screen font must be able to display. */
Tcl_DString *nameTriedPtr) /* Records face names that have already