aboutsummaryrefslogtreecommitdiffstats
path: root/src/macterm.h
diff options
context:
space:
mode:
authorSteven Tamm2004-12-03 17:00:11 +0000
committerSteven Tamm2004-12-03 17:00:11 +0000
commitd8f96db8dacbda24147aeab0af1c74f5ddbec8bb (patch)
tree8366e98883775a322f0c52ae59441ef2ccc6569f /src/macterm.h
parent4e4b7d76d13bcf88958964be7ca722130b086cd0 (diff)
downloademacs-d8f96db8dacbda24147aeab0af1c74f5ddbec8bb.tar.gz
emacs-d8f96db8dacbda24147aeab0af1c74f5ddbec8bb.zip
* macterm.h (cfstring_create_with_utf8_cstring): Added prototype.
* image.c (image_load_quartz2d): Use cfstring_create_with_utf8_cstring * macmenu.c (add_menu_item): Use cfstring_create_with_utf8_cstring * macfns.c (x_set_name, x_set_title): Use cfstring_create_with_utf8_cstring (Fx_file_dialog): Use cfstring_create_with_utf8_cstring and use constant CFRefs instead of creating them each time for labels. * mac.c (cfstring_create_with_utf8_cstring): Added to prevent crashes with invalid characters.
Diffstat (limited to 'src/macterm.h')
-rw-r--r--src/macterm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/macterm.h b/src/macterm.h
index f9bde772fcd..ff7110828b1 100644
--- a/src/macterm.h
+++ b/src/macterm.h
@@ -600,5 +600,9 @@ extern void mac_draw_line_to_pixmap P_ ((Display *, Pixmap, GC, int, int,
600#define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 600#define FONT_TYPE_FOR_UNIBYTE(font, ch) 0
601#define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0 601#define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0
602 602
603#if TARGET_API_MAC_CARBON
604extern CFStringRef cfstring_create_with_utf8_cstring P_ ((const char *));
605#endif
606
603/* arch-tag: 6b4ca125-5bef-476d-8ee8-31ed808b7e79 607/* arch-tag: 6b4ca125-5bef-476d-8ee8-31ed808b7e79
604 (do not change this comment) */ 608 (do not change this comment) */