aboutsummaryrefslogtreecommitdiffstats
path: root/src/nsfont.m
diff options
context:
space:
mode:
authorStefan Monnier2008-07-17 03:33:59 +0000
committerStefan Monnier2008-07-17 03:33:59 +0000
commitfacfbbbdad272decb23553d827fbc2c0fabaf078 (patch)
tree14d37d409d30bdec0cbfc0ed79593021e1e88ab2 /src/nsfont.m
parentd377ef4a3f6c77c451b647305436d1e8bf914b07 (diff)
downloademacs-facfbbbdad272decb23553d827fbc2c0fabaf078.tar.gz
emacs-facfbbbdad272decb23553d827fbc2c0fabaf078.zip
* Makefile.in: Undef LIB_STANDARD before defining it to silence warning
in case it was defined already. USE @GNUSTEP_MAKEFILES@ rather than envvars. * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to ns_default. (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare Lisp_Objects. * nsterm.h (Fx_display_grayscale_p, Fx_display_planes) (ns_defined_color, ns_color_to_lisp): Declare. * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear) (Fns_own_selection_internal): Make the big ugly hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE. * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects. (update_frame_tool_bar): Remove apparently obsolete tests for non-integerness of f->tool_bar_lines. (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE. * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast. (nsfont_open): Don't confuse NULL for Qnil. * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects. * menu.h (find_and_call_menu_selection): * menu.c (find_and_call_menu_selection): Use just int for vector size. (find_and_return_menu_selection): Always return something. * frame.h: Include dispextern.h for Display_Info. (display_x_get_resource): Declare. * configure.in: Extract and substitute GNUSTEP_MAKEFILES.
Diffstat (limited to 'src/nsfont.m')
-rw-r--r--src/nsfont.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nsfont.m b/src/nsfont.m
index 55c71a54c00..bbf991e7d49 100644
--- a/src/nsfont.m
+++ b/src/nsfont.m
@@ -234,7 +234,7 @@ static int nsfont_draw (struct glyph_string *s, int from, int to, int x, int y,
234 234
235struct font_driver nsfont_driver = 235struct font_driver nsfont_driver =
236 { 236 {
237 (Lisp_Object) NULL, /* Qns */ 237 0, /* Qns */
238 1, /* case sensitive */ 238 1, /* case sensitive */
239 nsfont_get_cache, 239 nsfont_get_cache,
240 nsfont_list, 240 nsfont_list,
@@ -518,7 +518,7 @@ nsfont_open (FRAME_PTR f, Lisp_Object font_entity, int pixel_size)
518 font_info = (struct nsfont_info *) XFONT_OBJECT (font_object); 518 font_info = (struct nsfont_info *) XFONT_OBJECT (font_object);
519 font = (struct font *)font_info; 519 font = (struct font *)font_info;
520 if (!font) 520 if (!font)
521 return NULL; /*PENDING: this copies w32, but causes a segfault */ 521 return Qnil; /*PENDING: this copies w32, but causes a segfault */
522 522
523 if (NSFONT_TRACE) 523 if (NSFONT_TRACE)
524 { 524 {
@@ -571,7 +571,7 @@ nsfont_open (FRAME_PTR f, Lisp_Object font_entity, int pixel_size)
571 if (!nsfont) 571 if (!nsfont)
572 { 572 {
573 fprintf (stderr, "*** Emacs.app: unable to load backup font\n"); 573 fprintf (stderr, "*** Emacs.app: unable to load backup font\n");
574 return NULL; 574 return Qnil;
575 } 575 }
576 } 576 }
577 577
@@ -601,7 +601,7 @@ fprintf (stderr, "*** CACHE HIT!\n");
601 font_info->metrics = (struct font_metrics *) 601 font_info->metrics = (struct font_metrics *)
602 xmalloc (0x100 * sizeof (struct font_metrics *)); 602 xmalloc (0x100 * sizeof (struct font_metrics *));
603 if (!font_info->glyphs || !font_info->metrics) 603 if (!font_info->glyphs || !font_info->metrics)
604 return NULL; 604 return Qnil;
605 bzero (font_info->glyphs, 0x100 * sizeof (unsigned short *)); 605 bzero (font_info->glyphs, 0x100 * sizeof (unsigned short *));
606 bzero (font_info->metrics, 0x100 * sizeof (struct font_metrics *)); 606 bzero (font_info->metrics, 0x100 * sizeof (struct font_metrics *));
607 607