Changeset 4003
- Timestamp:
- 2005年12月20日 07時07分00秒 (3 years ago)
- Files:
-
- trunk/src/ChangeLog.Meadow (modified) (1 diff)
- trunk/src/buffer.c (modified) (1 diff)
- trunk/src/lisp.h (modified) (1 diff)
- trunk/src/mw32bdf.c (modified) (1 diff)
- trunk/src/mw32fns.c (modified) (5 diffs)
- trunk/src/mw32font.c (modified) (7 diffs)
- trunk/src/mw32ime.c (modified) (6 diffs)
- trunk/src/mw32menu.c (modified) (1 diff)
- trunk/src/mw32reg.c (modified) (1 diff)
- trunk/src/mw32term.c (modified) (12 diffs)
- trunk/src/process.c (modified) (1 diff)
- trunk/src/sysdep.c (modified) (1 diff)
- trunk/src/w32inevt.c (modified) (2 diffs)
- trunk/src/xfaces.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/ChangeLog.Meadow
r4000 r4003 1 2005-12-20 Masayuki FUJII <boochang@m4.kcn.ne.jp> 2 3 * mw32font.c (check_lisp_object_logfont): Use EQ() instead of 4 equation. 5 (mw32_set_encoding_byte_from_charset): type of variable charset is 6 changed. 7 (set_font_frame_param): Add parameter declaration. 8 (Fw32_add_font_internal): Ditto. 9 (Fw32_get_font_info): Ditto. 10 (Fw32_score_logfont_candidates): use XINT(). 11 12 * process.c (create_process): Use EQ() instead of equation 13 operator. 14 15 * mw32fns.c: Add function prototypes. 16 (x_rgb_names): Correct a return value. 17 (mw32_WndProc<WM_EMACS_MODIFY_IME_FONT_PROP>): Use NILP() instead 18 of evaluating value of Lisp_Object as boolean. 19 (Fx_show_tip): type of 3rd argument of try_window() should be 0, 20 not Qnil. 21 (Fmw32_file_dialog): Add parameter declaration. 22 23 * buffer.c (pdump_global_buffer_p): Use EQ() instead of equation 24 operator. 25 26 * mw32bdf.c (mw32_get_bdf_font_info): Use make_number() instead of 27 XFASTINT() 28 29 * w32inevt.c (key_event): Use assignment instead of XSETINT(). 30 31 * mw32menu.c: Add a function prototype. 32 33 * lisp.h: Add a function prototype. 34 35 * mw32reg.c (Fmw32_registry_set): Add parameter declaration. 36 37 * mw32ime.c: Add function prototypes. 38 (IMMCONTEXTCAR): Use make_number() instead of XFASTINT(). 39 (IMMCONTEXTCDR): Ditto. 40 (immcontext): Use XUINT(). 41 (Fw32_ime_create_conversion_agent): Use make_number() instead of 42 XFASTINT(). 43 (Fw32_ime_get_composition_string): Use make_number() instead of 44 direct assignment. 45 46 * mw32term.c: Add function prototypes. 47 (Fmw32_get_window_position): Add parameter declaration. 48 (Fmw32_get_scroll_bar_info): Ditto. 49 (note_sync_event): Use EQ() instead of equation operator. 50 (show_or_hide_mouse_cursor): Ditto. 51 (Fw32_get_system_metrics): Add parameter declaration. 52 (Fw32_get_key_state): Ditto. 53 (Fw32_get_mouse_wheel_scroll_lines): Ditto. 54 (FMeadow_version): Ditto. 55 (Fmw32_sh_get_file_info): Ditto. 56 57 * xfaces.c: Add function prototypes. 58 59 * sysdep.c (read_input_waiting): Use = operator instead of 60 XSETINT(). 61 1 62 2005-12-13 Kyotaro HORIGUCHI <horiguti@meadowy.org> 2 63 trunk/src/buffer.c
r3945 r4003 4935 4935 pdump_global_buffer_p (Lisp_Object obj) 4936 4936 { 4937 return (obj == Vbuffer_defaults || obj ==Vbuffer_local_symbols);4937 return EQ (obj, Vbuffer_defaults) || EQ (obj, Vbuffer_local_symbols); 4938 4938 } 4939 4939 #endif trunk/src/lisp.h
r3990 r4003 3235 3235 EXFUN (Fxw_display_color_p, 1); 3236 3236 EXFUN (Fx_file_dialog, 5); 3237 #ifdef MEADOW 3238 EXFUN (Fmw32_file_dialog, 5); 3239 #endif 3237 3240 #endif /* HAVE_WINDOW_SYSTEM */ 3238 3241 trunk/src/mw32bdf.c
r3801 r4003 350 350 store_in_alist (&ret, intern ("base"), 351 351 make_number (bdffontp->ury)); 352 store_in_alist (&ret, intern ("overhang"), XFASTINT(0));352 store_in_alist (&ret, intern ("overhang"), make_number (0)); 353 353 store_in_alist (&ret, intern ("relative-compose"), 354 354 make_number (bdffontp->relative_compose)); trunk/src/mw32fns.c
r3999 r4003 120 120 int image_cache_refcount, dpyinfo_refcount; 121 121 #endif 122 123 EXFUN (Funix_to_dos_filename, 1); 124 EXFUN (Fdos_to_unix_filename, 1); 122 125 123 126 /* Error if we are not connected to X. */ … … 446 449 colstrend = memchr (colstr, '/', len); 447 450 if (!colstrend) 448 return Qnil;451 return CLR_INVALID; 449 452 redchars = (int) (colstrend - colstr); 450 453 red = color_radix_change (colstr, redchars); … … 2434 2437 is main thread. Use selected_frame as target frame. */ 2435 2438 2436 if ( selected_frame)2439 if (!NILP (selected_frame)) 2437 2440 { 2438 2441 struct frame *f = XFRAME (selected_frame); … … 4439 4442 clear_glyph_matrix (w->current_matrix); 4440 4443 SET_TEXT_POS (pos, BEGV, BEGV_BYTE); 4441 try_window (FRAME_ROOT_WINDOW (f), pos, Qnil);4444 try_window (FRAME_ROOT_WINDOW (f), pos, 0); 4442 4445 4443 4446 /* Compute width and height of the tooltip. */ … … 4628 4631 selection dialog's entry field, if MUSTMATCH is non-nil. */) 4629 4632 (prompt, dir, default_filename, mustmatch, only_dir_p) 4630 Lisp_Object prompt, dir, default_filename, mustmatch ;4633 Lisp_Object prompt, dir, default_filename, mustmatch, only_dir_p; 4631 4634 { 4632 4635 struct frame *f = SELECTED_FRAME (); trunk/src/mw32font.c
r3997 r4003 965 965 else CHECK_STRING (tmpcar); /* name or path */ 966 966 967 if ( type == Qw32_logfont)967 if (EQ (type, Qw32_logfont)) 968 968 { 969 969 encode_logfont_name (tmpcar, NULL); … … 1022 1022 else CHECK_NUMBER (tmpcar); /* PitchAndFamily */ 1023 1023 } 1024 else if ( type != Qbdf_font)1024 else if (!EQ (type, Qbdf_font)) 1025 1025 { 1026 1026 if (noerror) return 0; … … 1128 1128 else 1129 1129 { 1130 Lisp_Object charset = CHAR_CHARSET (c);1131 if ( NILP (charset))1130 int charset = CHAR_CHARSET (c); 1131 if (!charset) 1132 1132 plf->encoding.font_unit_byte = 1; 1133 1133 else … … 2233 2233 the default font name. */ 2234 2234 2235 void set_font_frame_param ( frame,lface)2235 void set_font_frame_param (Lisp_Object frame, Lisp_Object lface) 2236 2236 { 2237 2237 struct frame *f = XFRAME (frame); … … 2401 2401 ALIST is parameters to use this font. */) 2402 2402 (name, alist) 2403 Lisp_Object name, alist; 2403 2404 { 2404 2405 CHECK_STRING (name); … … 2461 2462 NAME is a name of the font. */) 2462 2463 (name) 2464 Lisp_Object name; 2463 2465 { 2464 2466 int idx; … … 2732 2734 int i; 2733 2735 2734 num = Flength (candidates);2736 num = XINT (Flength (candidates)); 2735 2737 plc = (logfont_candidates*) xmalloc (sizeof (logfont_candidates) * num); 2736 2738 pscore = (int *) xmalloc (sizeof (int) * num); trunk/src/mw32ime.c
r3998 r4003 24 24 #include "config.h" 25 25 #include "lisp.h" 26 #include "intervals.h" 26 27 #include <imm.h> 27 28 #ifdef IME_RECONVERSION … … 51 52 52 53 #define IMMCONTEXTCAR(imc) \ 53 ( XFASTINT((((unsigned long) (imc)) >> 16) & 0xffff))54 (make_number ((((unsigned long) (imc)) >> 16) & 0xffff)) 54 55 55 56 #define IMMCONTEXTCDR(imc) \ 56 ( XFASTINT(((unsigned long) (imc)) & 0xffff))57 (make_number (((unsigned long) (imc)) & 0xffff)) 57 58 58 59 #ifdef IME_CONTROL … … 162 163 static int last_ime_vkeycode; 163 164 static int last_ime_vkeymod; 165 166 EXFUN (Fsubstring_no_properties, 3); 167 EXFUN (Ffep_get_mode, 0); 164 168 165 169 int … … 627 631 return agent[XFASTINT (context)].himc; 628 632 else 629 return ((HIMC)((((unsigned long) (X CONS (context)->car)) << 16) |630 (((unsigned long) (X CONS (context)->u.cdr)) & 0xffff)));633 return ((HIMC)((((unsigned long) (XUINT (XCONS (context)->car))) << 16) | 634 (((unsigned long) (XUINT (XCONS (context)->u.cdr))) & 0xffff))); 631 635 } 632 636 … … 1375 1379 SendMessage (hwnd, WM_MULE_IMM_SET_STATUS, 1, 0); 1376 1380 1377 return XFASTINT(i);1381 return make_number (i); 1378 1382 } 1379 1383 … … 1636 1640 result = concat2 (result, str); 1637 1641 1638 Fput_text_property ( start_idx, end_idx, Qim_info,1639 get_attribute_lisp_object (*aa),1642 Fput_text_property (make_number (start_idx), make_number (end_idx), 1643 Qim_info, get_attribute_lisp_object (*aa), 1640 1644 result); 1641 1645 } trunk/src/mw32menu.c
r3919 r4003 176 176 177 177 int pending_menu_activation; 178 179 EXFUN (Fkeymapp, 1); 180 178 181 179 182 #ifdef USE_X_TOOLKIT trunk/src/mw32reg.c
r3871 r4003 1142 1142 ) 1143 1143 (key, name, data) 1144 Lisp_Object key, name, data; 1144 1145 { 1145 1146 registry_key regkey; trunk/src/mw32term.c
r3998 r4003 288 288 int mw32_restrict_frame_position = TRUE; 289 289 290 extern Lisp_Object mw32_create_image_blob_from_icon P_((HICON hicon)); 291 292 EXFUN (Finternal_get_lisp_face_attribute, 3); 293 EXFUN (Funix_to_dos_filename, 1); 290 294 291 295 /* Flush message queue of frame F, or of all frames if F is null. */ … … 3617 3621 Returns the dimensions as (LEFT TOP RIGHT BOTTOM) in screen coordinates, 3618 3622 or nil if specified window is not found, or failed to get the position. */) 3619 (class_name, window_name) 3623 (class_name, window_name) 3624 Lisp_Object class_name, window_name; 3620 3625 { 3621 3626 HWND hwnd; … … 3648 3653 Nil means selected window. 3649 3654 Return value is (MIN MAX PAGE POS TRACKPOS), or nil if window has no scroll-bar. */) 3650 (window) 3655 (window) 3656 Lisp_Object window; 3651 3657 { 3652 3658 struct scroll_bar *bar; … … 4205 4211 /* If the contents of the global variable help_echo 4206 4212 has changed, generate a HELP_EVENT. */ 4207 if ( help_echo_string != previous_help_echo_string||4213 if (!EQ (help_echo_string, previous_help_echo_string) || 4208 4214 (!NILP (help_echo_string) && !STRINGP (help_echo_string) 4209 4215 && f->mouse_moved)) … … 4268 4274 4269 4275 if (! last_timeout_obj_init_p 4270 || last_timeout_obj != mw32_hide_mouse_timeout)4276 || !EQ (last_timeout_obj, mw32_hide_mouse_timeout)) 4271 4277 { 4272 4278 last_timeout_obj = mw32_hide_mouse_timeout; … … 6298 6304 1, 1, 0, 6299 6305 doc: /* Retrieve system metrics. This function only calls GetSystemMetrics. */) 6300 (index) 6306 (index) 6307 Lisp_Object index; 6301 6308 { 6302 6309 Lisp_Object ret; … … 6317 6324 'hyper...hyper modifier. */) 6318 6325 (key, modifier) 6326 Lisp_Object key, modifier; 6319 6327 { 6320 6328 int virtkey; … … 6393 6401 doc: /* Retrieve a key state when the previous message was received; 6394 6402 not the current state. KEY is a virtual key code to get a state. */) 6395 (key) 6403 (key) 6404 Lisp_Object key; 6396 6405 { 6397 6406 int state; … … 6409 6418 1, 1, 0, 6410 6419 doc: /* Retrieve a number of scroll lines from delta number of mouse wheel. */) 6411 (delta) 6420 (delta) 6421 Lisp_Object delta; 6412 6422 { 6413 6423 #ifdef W32_INTELLIMOUSE … … 6517 6527 1, 2, 0, 6518 6528 doc: /* Retrieve system metrics. This function only calls GetSystemMetrics. */) 6519 (item, target) 6529 (item, target) 6530 Lisp_Object item, target; 6520 6531 { 6521 6532 HDC hdc; … … 6643 6654 The optional argument DUMMY is not currently used. */) 6644 6655 (dummy) 6656 Lisp_Object dummy; 6645 6657 { 6646 6658 return (build_string (MEADOW_VERSION_STRING)); … … 6758 6770 This function simply calls SHGetFileInfo(). Please refer to the 6759 6771 specification of the function. */) 6760 (path, attrib, retrieve) 6772 (path, attrib, retrieve) 6773 Lisp_Object path, attrib, retrieve; 6761 6774 { 6762 6775 LPCTSTR path_string; trunk/src/process.c
r4000 r4003 2128 2128 Vmw32_process_under_setup = process; 2129 2129 2130 if ( Vprocess_connection_type != Qnil)2130 if (!EQ (Vprocess_connection_type, Qnil)) 2131 2131 Vmw32_process_expects_pty = 1; 2132 2132 else trunk/src/sysdep.c
r3945 r4003 2743 2743 } 2744 2744 2745 #ifdef MEADOW 2746 e.code = buf[i]; 2747 #else 2745 2748 XSETINT (e.code, buf[i]); 2749 #endif 2746 2750 kbd_buffer_store_event (&e); 2747 2751 /* Don't look at input that follows a C-g too closely. trunk/src/w32inevt.c
r3809 r4003 492 492 if (key_flag < 0) 493 493 *isdead = 1; 494 XSETINT (emacs_ev->code, event->uChar.AsciiChar);494 emacs_ev->code = event->uChar.AsciiChar; 495 495 } 496 496 #ifdef MULE … … 517 517 #ifdef HAVE_NTGUI 518 518 /* use Windows keysym map */ 519 XSETINT (emacs_ev->code, event->wVirtualKeyCode);519 emacs_ev->code = event->wVirtualKeyCode; 520 520 #else 521 521 /* trunk/src/xfaces.c
r3990 r4003 593 593 extern void free_frame_menubar P_ ((struct frame *)); 594 594 #endif /* USE_X_TOOLKIT */ 595 596 #ifdef MEADOW 597 extern Lisp_Object vga_stdcolor_name P_ ((int)); 598 extern Lisp_Object mw32_list_fonts P_ ((struct frame *, Lisp_Object, int, 599 int)); 600 601 extern Lisp_Object display_x_get_resource P_ ((Display_Info *, Lisp_Object, 602 Lisp_Object, Lisp_Object, 603 Lisp_Object)); 604 #endif 595 605 596 606 #endif /* HAVE_WINDOW_SYSTEM */
