Changeset 4119
- Timestamp:
- 07/22/06 22:11:28 (2 years ago)
- Files:
-
- trunk/src/ChangeLog.Meadow (modified) (1 diff)
- trunk/src/alloc.c (modified) (1 diff)
- trunk/src/charset.c (modified) (1 diff)
- trunk/src/coding.h (modified) (2 diffs)
- trunk/src/dispextern.h (modified) (5 diffs)
- trunk/src/dispnew.c (modified) (2 diffs)
- trunk/src/editfns.c (modified) (1 diff)
- trunk/src/emacs.c (modified) (1 diff)
- trunk/src/eval.c (modified) (1 diff)
- trunk/src/fileio.c (modified) (1 diff)
- trunk/src/fontset.c (modified) (7 diffs)
- trunk/src/frame.h (modified) (1 diff)
- trunk/src/image.c (modified) (1 diff)
- trunk/src/lisp.h (modified) (2 diffs)
- trunk/src/mw32term.c (modified) (2 diffs)
- trunk/src/mw32term.h (modified) (1 diff)
- trunk/src/regex.c (modified) (2 diffs)
- trunk/src/strftime.c (modified) (1 diff)
- trunk/src/w32term.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/ChangeLog.Meadow
r4117 r4119 1 2006-07-22 MIYOSHI Masanori <miyoshi@meadowy.org> 2 3 * regex.c (regex_compile): Add comment. 4 5 * w32term.h (EMACS_CLASS): Removed. 6 7 * strftime.c (my_strftime): Mark up Meadow specific code 8 explicitly. 9 10 * mw32term.c (mw32_release_frame_hdc): Redefine as a void 11 function. 12 (mw32_cleanup_frame_hdc): Ditto. 13 14 * mw32term.h: Ditto. 15 16 * lisp.h (DEFUN): Sync up with Emacs CVS HEAD. 17 18 * image.c: Mark up Meadow specific code explicitly. 19 20 * frame.h (EMACS_CLASS): Sync up with Emacs CVS HEAD. 21 22 * fontset.c: Mark up Meadow specific code explicitly. 23 (fontset_ref_via_base): Sync up with Emacs CVS HEAD. 24 (fontset_font_pattern): Ditto. 25 26 * eval.c (Fsignal): Mark up Meadow specific code explicitly. 27 28 * emacs.c (sbrk): New extern for Meadow. 29 30 * editfns.c (syms_of_editfns): Sync up with Emacs CVS HEAD. 31 32 * dispextern.h (struct glyph_string): Mark up Meadow specific code 33 explicitly. 34 Sync up with Emacs CVS HEAD. 35 36 * coding.h (ENCODE_SYSTEM): Sync up with Emacs CVS HEAD. 37 (DECODE_SYSTEM): Ditto. 38 39 * charset.c (Fmake_char_internal): Mark up Meadow specific code 40 explicitly. 41 42 * alloc.c: Remove a temporary prototype. 43 1 44 2006-07-22 Masayuki FUJII <boochang@m4.kcn.ne.jp> 2 45 trunk/src/alloc.c
r4117 r4119 491 491 492 492 #ifdef MEADOW 493 /* Temporary prototypes. This should be removed. */494 void refill_memory_reserve ();495 493 #define NSTATICS 1400 496 494 #else trunk/src/charset.c
r4037 r4119 1031 1031 invalid_code_posints: 1032 1032 error ("Invalid code points for charset ID %d: %d %d", charset_id, c1, c2); 1033 #ifdef MEADOW 1033 1034 /* NOTREACHED */ 1034 1035 return Qnil; 1036 #endif 1035 1037 } 1036 1038 trunk/src/coding.h
r4091 r4119 603 603 #define ENCODE_SYSTEM(str) \ 604 604 (! NILP (Vlocale_coding_system) \ 605 && XFASTINT (Vlocale_coding_system) != 0\605 && !EQ (Vlocale_coding_system, make_number (0)) \ 606 606 ? code_convert_string_norecord (str, Vlocale_coding_system, 1) \ 607 607 : str) … … 611 611 #define DECODE_SYSTEM(str) \ 612 612 (! NILP (Vlocale_coding_system) \ 613 && XFASTINT (Vlocale_coding_system) != 0\613 && !EQ (Vlocale_coding_system, make_number (0)) \ 614 614 ? code_convert_string_norecord (str, Vlocale_coding_system, 0) \ 615 615 : str) trunk/src/dispextern.h
r4111 r4119 1165 1165 1166 1166 /* Font in which this string is to be drawn. */ 1167 #ifdef MEADOW 1167 1168 MW32LogicalFont *font; 1169 #else 1170 XFontStruct *font; 1171 #endif 1168 1172 1169 1173 /* Font info for this string. */ … … 1580 1584 realize_x_face). */ 1581 1585 unsigned colors_copied_bitwise_p : 1; 1586 1587 /* If non-zero, use overstrike (to simulate bold-face). */ 1588 unsigned overstrike : 1; 1582 1589 1583 1590 /* Next and previous face in hash collision list of face cache. */ … … 2722 2729 extern int mode_line_in_non_selected_windows; 2723 2730 extern int redisplaying_p; 2724 extern Lisp_Object Vimage_types;2725 2731 extern void add_to_log P_ ((char *, Lisp_Object, Lisp_Object)); 2726 2732 extern int help_echo_showing_p; … … 2816 2822 /* Defined in image.c */ 2817 2823 2824 #ifdef HAVE_WINDOW_SYSTEM 2825 2826 extern int x_bitmap_height P_ ((struct frame *, int)); 2827 extern int x_bitmap_width P_ ((struct frame *, int)); 2828 extern int x_bitmap_pixmap P_ ((struct frame *, int)); 2829 extern void x_reference_bitmap P_ ((struct frame *, int)); 2830 extern int x_create_bitmap_from_data P_ ((struct frame *, char *, 2831 unsigned int, unsigned int)); 2832 extern int x_create_bitmap_from_file P_ ((struct frame *, Lisp_Object)); 2833 #ifndef x_destroy_bitmap 2834 extern void x_destroy_bitmap P_ ((struct frame *, int)); 2835 #endif 2836 extern void x_destroy_all_bitmaps P_ ((Display_Info *)); 2837 extern int x_create_bitmap_mask P_ ((struct frame * , int)); 2838 extern Lisp_Object x_find_image_file P_ ((Lisp_Object)); 2839 2840 void x_kill_gs_process P_ ((Pixmap, struct frame *)); 2818 2841 struct image_cache *make_image_cache P_ ((void)); 2819 2842 void free_image_cache P_ ((struct frame *)); … … 2824 2847 void prepare_image_for_display P_ ((struct frame *, struct image *)); 2825 2848 int lookup_image P_ ((struct frame *, Lisp_Object)); 2849 2850 unsigned long image_background P_ ((struct image *, struct frame *, 2851 XImagePtr_or_DC ximg)); 2852 int image_background_transparent P_ ((struct image *, struct frame *, 2853 XImagePtr_or_DC mask)); 2854 2855 int image_ascent P_ ((struct image *, struct face *, struct glyph_slice *)); 2856 2857 #endif 2858 2826 2859 /* Defined in sysdep.c */ 2827 2860 trunk/src/dispnew.c
r4117 r4119 3901 3901 3902 3902 sec = (int) p; 3903 usec = ( p - sec) * 1000000;3903 usec = (int) ((p - sec) * 1000000); 3904 3904 3905 3905 EMACS_GET_TIME (tm); … … 4053 4053 4054 4054 sec = (int) p; 4055 usec = ( p - sec) * 1000000;4055 usec = (int) ((p - sec) * 1000000); 4056 4056 4057 4057 EMACS_GET_TIME (tm); trunk/src/editfns.c
r4117 r4119 4335 4335 syms_of_editfns () 4336 4336 { 4337 environbuf = 0; 4338 4337 4339 Qbuffer_access_fontify_functions 4338 4340 = intern ("buffer-access-fontify-functions"); trunk/src/emacs.c
r4117 r4119 47 47 #ifndef MEADOW 48 48 #include "w32heap.h" /* for prototype of sbrk */ 49 #else 50 /* Emulation of Unix sbrk(). */ 51 extern void *sbrk (unsigned long size); 49 52 #endif 50 53 #endif trunk/src/eval.c
r4117 r4119 1706 1706 string = Ferror_message_string (data); 1707 1707 fatal ("%s", SDATA (string), 0); 1708 #ifdef MEADOW 1708 1709 return Qnil; 1710 #endif 1709 1711 } 1710 1712 trunk/src/fileio.c
r4111 r4119 6447 6447 #ifndef MEADOW 6448 6448 val = Fx_file_dialog (prompt, dir, default_filename, mustmatch, 6449 EQ (predicate, Qfile_directory_p) ? Qt : Qnil);6449 EQ (predicate, Qfile_directory_p) ? Qt : Qnil); 6450 6450 #else 6451 6451 val = Fmw32_file_dialog (prompt, dir, default_filename, mustmatch, trunk/src/fontset.c
r4117 r4119 137 137 138 138 /* Vector containing all fontsets. */ 139 #ifdef MEADOW 139 140 Lisp_Object Vfontset_table; 141 #else 142 static Lisp_Object Vfontset_table; 143 #endif 140 144 141 145 /* Next possibly free fontset ID. Usually this keeps the minimum … … 196 200 static Lisp_Object fontset_ref P_ ((Lisp_Object, int)); 197 201 static Lisp_Object lookup_overriding_fontspec P_ ((Lisp_Object, int)); 202 #ifdef MEADOW 198 203 void fontset_set P_ ((Lisp_Object, int, Lisp_Object)); 204 #else 205 static void fontset_set P_ ((Lisp_Object, int, Lisp_Object)); 206 #endif 199 207 static Lisp_Object make_fontset P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); 200 208 static int fontset_id_valid_p P_ ((int)); … … 298 306 #define FONTSET_REF_VIA_BASE(fontset, c) fontset_ref_via_base (fontset, &c) 299 307 308 #ifdef MEADOW 300 309 Lisp_Object 310 #else 311 static Lisp_Object 312 #endif 301 313 fontset_ref_via_base (fontset, c) 302 314 Lisp_Object fontset; … … 309 321 return FONTSET_ASCII (fontset); 310 322 311 elt = FONTSET_REF (FONTSET_BASE (fontset), *c); 312 if (NILP (elt) && ! EQ (fontset, Vdefault_fontset)) 323 elt = Qnil; 324 if (! EQ (FONTSET_BASE (fontset), Vdefault_fontset)) 325 elt = FONTSET_REF (FONTSET_BASE (fontset), *c); 326 #ifndef MEADOW 327 if (NILP (elt)) 328 elt = lookup_overriding_fontspec (FONTSET_FRAME (fontset), *c); 329 #endif 330 if (NILP (elt)) 313 331 elt = FONTSET_REF (Vdefault_fontset, *c); 314 332 if (NILP (elt)) … … 335 353 #define FONTSET_SET(fontset, c, newelt) fontset_set(fontset, c, newelt) 336 354 355 #ifdef MEADOW 337 356 void 357 #else 358 static void 359 #endif 338 360 fontset_set (fontset, c, newelt) 339 361 Lisp_Object fontset; … … 600 622 Lisp_Object fontset, elt; 601 623 struct font_info *fontp; 602 Lisp_Object family_registry;603 624 604 625 elt = Qnil; … … 608 629 xassert (!BASE_FONTSET_P (fontset)); 609 630 fontset = FONTSET_BASE (fontset); 610 elt = FONTSET_REF (fontset, c); 611 } 631 if (! EQ (fontset, Vdefault_fontset)) 632 elt = FONTSET_REF (fontset, c); 633 } 634 #ifndef MEADOW 635 if (NILP (elt)) 636 { 637 Lisp_Object frame; 638 639 XSETFRAME (frame, f); 640 elt = lookup_overriding_fontspec (frame, c); 641 } 642 #endif 612 643 if (NILP (elt)) 613 644 elt = FONTSET_REF (Vdefault_fontset, c); trunk/src/frame.h
r4111 r4119 1042 1042 #ifdef HAVE_WINDOW_SYSTEM 1043 1043 1044 #ifndef MEADOW 1045 /* The class of this X application. */ 1046 #define EMACS_CLASS "Emacs" 1047 #endif 1048 1044 1049 enum 1045 1050 { trunk/src/image.c
r4091 r4119 766 766 767 767 Lisp_Object Qlaplace, Qemboss, Qedge_detection, Qheuristic; 768 #ifdef MEADOW 768 769 Lisp_Object Qpostscript; 769 770 Lisp_Object Qpbm, Qxpm, Qjpeg, Qtiff, Qgif, Qpng, Qbmp; 771 #endif 770 772 771 773 /* Time in seconds after which images should be removed from the cache trunk/src/lisp.h
r4117 r4119 1678 1678 Lisp_Object fnname (); \ 1679 1679 DECL_ALIGN (struct Lisp_Subr, sname) = \ 1680 { PVEC_SUBR | PSEUDOVECTOR_FLAG |(sizeof (struct Lisp_Subr) / sizeof (EMACS_INT)), \1680 { PVEC_SUBR | (sizeof (struct Lisp_Subr) / sizeof (EMACS_INT)), \ 1681 1681 fnname, minargs, maxargs, lname, prompt, 0}; \ 1682 1682 Lisp_Object fnname … … 1689 1689 Lisp_Object fnname DEFUN_ARGS_ ## maxargs ; \ 1690 1690 DECL_ALIGN (struct Lisp_Subr, sname) = \ 1691 { PVEC_SUBR | PSEUDOVECTOR_FLAG |(sizeof (struct Lisp_Subr) / sizeof (EMACS_INT)), \1691 { PVEC_SUBR | (sizeof (struct Lisp_Subr) / sizeof (EMACS_INT)), \ 1692 1692 fnname, minargs, maxargs, lname, prompt, 0}; \ 1693 1693 Lisp_Object fnname trunk/src/mw32term.c
r4112 r4119 499 499 } 500 500 501 int 501 void 502 502 mw32_release_frame_hdc (f) 503 503 FRAME_PTR f; … … 561 561 } 562 562 563 int 563 void 564 564 mw32_cleanup_frame_hdc (f) 565 565 FRAME_PTR f; trunk/src/mw32term.h
r4112 r4119 543 543 544 544 extern HDC mw32_get_frame_hdc P_ ((FRAME_PTR f)); 545 extern intmw32_release_frame_hdc P_ ((FRAME_PTR f));546 extern intmw32_cleanup_frame_hdc P_ ((FRAME_PTR f));545 extern void mw32_release_frame_hdc P_ ((FRAME_PTR f)); 546 extern void mw32_cleanup_frame_hdc P_ ((FRAME_PTR f)); 547 547 #define GET_FRAME_HDC(f) mw32_get_frame_hdc (f) 548 548 #define RELEASE_FRAME_HDC(f) mw32_release_frame_hdc (f) trunk/src/regex.c
r4058 r4119 2571 2571 /* If this is the end of an included regexp, 2572 2572 pop back to the main regexp and try again. */ 2573 #if 0 2573 #if 0 /* I had invalidated the following codes, because these codes 2574 caused some trouble. But I think I don't have to do so 2575 now. MIYOSHI. */ 2574 2576 if (in_subpattern) 2575 2577 { … … 2589 2591 switch (c) 2590 2592 { 2591 #if 0 2593 #if 0 /* I had invalidated the following codes, because these codes 2594 caused some trouble. But I think I don't have to do so 2595 now. MIYOSHI. */ 2592 2596 case ' ': 2593 2597 { trunk/src/strftime.c
r4037 r4119 1034 1034 1035 1035 if (negative_number) 1036 #ifdef MEADOW 1036 1037 u = -number_value; 1038 #else 1039 u = -u; 1040 #endif 1037 1041 1038 1042 do trunk/src/w32term.h
r4037 r4119 24 24 #include "w32gui.h" 25 25 26 /* The class of this X application. */27 #define EMACS_CLASS "Emacs"28 26 29 27 #define BLACK_PIX_DEFAULT(f) PALETTERGB(0,0,0)
