Changeset 4093

Show
Ignore:
Timestamp:
2006年06月10日 09時30分32秒 (2 years ago)
Author:
miyoshi
Message:

* mw32fns.c: Normalize coding style and remove redundant spaces.

* mw32fns.c: Ditto.

* mw32ime.c: Ditto.

* mw32reg.c: Ditto.

* mw32term.c: Ditto.

* mw32term.h: Ditto.

* xdisp.c: Ditto.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/ChangeLog.Meadow

    r4092 r4093  
     12006-06-10  MIYOSHI Masanori  <miyoshi@meadowy.org> 
     2 
     3        * mw32fns.c: Normalize coding style and remove redundant spaces. 
     4 
     5        * mw32fns.c: Ditto. 
     6 
     7        * mw32ime.c: Ditto. 
     8 
     9        * mw32reg.c: Ditto. 
     10 
     11        * mw32term.c: Ditto. 
     12 
     13        * mw32term.h: Ditto. 
     14 
     15        * xdisp.c: Ditto. 
     16 
    1172006-06-10  MIYOSHI Masanori  <miyoshi@meadowy.org> 
    218 
  • trunk/src/mw32fns.c

    r4088 r4093  
    5555 
    5656/* internal functions */ 
    57 static struct mw32_display_info *mw32_display_info_for_name P_ ((Lisp_Object name)); 
    58  
    59 LRESULT CALLBACK mw32_WndProc P_((HWND hwnd, UINT msg, 
    60                                   WPARAM wParam, LPARAM lParam)); 
     57static struct mw32_display_info *mw32_display_info_for_name P_ ((Lisp_Object)); 
     58 
     59LRESULT CALLBACK mw32_WndProc P_((HWND, UINT, WPARAM , LPARAM)); 
    6160 
    6261/* The shape when over mouse-sensitive text.  */ 
     
    325324 
    326325DEFUN ("mw32-default-color-map", Fmw32_default_color_map, 
    327        Smw32_default_color_map, 0, 0, 0, doc: /* Return the default color map.  */) 
     326       Smw32_default_color_map, 0, 0, 0, 
     327       doc: /* Return the default color map.  */) 
    328328  () 
    329329{ 
     
    24332433        { /* Cancelling composition string */ 
    24342434          mw32_ime_cancel_input_function (); 
    2435               } 
     2435      } 
    24362436 
    24372437      goto dflt; 
     
    27692769  FRAME_MW32_WINDOW (f) = hwnd; 
    27702770 
    2771   f->output_data.mw32->mainthread_to_frame_handle = CreateEvent (0, TRUE, TRUE, NULL); 
     2771  f->output_data.mw32->mainthread_to_frame_handle = CreateEvent (0, TRUE, 
     2772                                                                 TRUE, NULL); 
    27722773 
    27732774  validate_x_resource_name (); 
     
    28712872#endif 
    28722873 
    2873   name = x_get_arg (dpyinfo, parameters, Qname, "name", "Name", RES_TYPE_STRING); 
     2874  name = x_get_arg (dpyinfo, parameters, Qname, "name", "Name", 
     2875                    RES_TYPE_STRING); 
    28742876  if (!STRINGP (name) 
    28752877      && ! EQ (name, Qunbound) 
     
    28822884#if 0 
    28832885  /* See if parent window is specified.  */ 
    2884   parent = x_get_arg (dpyinfo, parameters, Qparent_id, NULL, NULL, RES_TYPE_NUMBER); 
     2886  parent = x_get_arg (dpyinfo, parameters, Qparent_id, NULL, NULL, 
     2887                      RES_TYPE_NUMBER); 
    28852888  if (EQ (parent, Qunbound)) 
    28862889    parent = Qnil; 
     
    28962899  frame = Qnil; 
    28972900  GCPRO4 (parameters, parent, name, frame); 
    2898   tem = x_get_arg (dpyinfo, parameters, Qminibuffer, "minibuffer", "Minibuffer", 
    2899                      RES_TYPE_SYMBOL); 
     2901  tem = x_get_arg (dpyinfo, parameters, Qminibuffer, "minibuffer", 
     2902                   "Minibuffer", RES_TYPE_SYMBOL); 
    29002903  if (EQ (tem, Qnone) || NILP (tem)) 
    29012904    f = make_frame_without_minibuffer (Qnil, kb, display); 
     
    30553058    Lisp_Object font, fontset; 
    30563059 
    3057     font = x_get_arg (dpyinfo, parameters, Qfont, "font", "Font", RES_TYPE_STRING); 
     3060    font = x_get_arg (dpyinfo, parameters, Qfont, "font", "Font", 
     3061                      RES_TYPE_STRING); 
    30583062    if (! STRINGP (font)) 
    30593063      font = build_string ("default"); 
     
    30953099 
    30963100      value = x_get_arg (dpyinfo, parameters, Qinternal_border_width, 
    3097                             "internalBorder", "internalBorder", RES_TYPE_NUMBER); 
     3101                         "internalBorder", "internalBorder", RES_TYPE_NUMBER); 
    30983102      if (! EQ (value, Qunbound)) 
    30993103        parameters = Fcons (Fcons (Qinternal_border_width, value), 
     
    31083112 
    31093113  /* Also do the stuff which must be set before the window exists.  */ 
    3110   x_default_parameter (f, parameters, Qforeground_color, build_string ("black"), 
     3114  x_default_parameter (f, parameters, Qforeground_color, 
     3115                       build_string ("black"), 
    31113116                       "foreground", "Foreground", RES_TYPE_STRING); 
    3112   x_default_parameter (f, parameters, Qbackground_color, build_string ("white"), 
     3117  x_default_parameter (f, parameters, Qbackground_color, 
     3118                       build_string ("white"), 
    31133119                       "background", "Background", RES_TYPE_STRING); 
    31143120  x_default_parameter (f, parameters, Qmouse_color, build_string ("black"), 
     
    31933199                       "alpha", "Alpha", RES_TYPE_NUMBER); 
    31943200 
    3195   /* Dimensions, especially FRAME_LINES (f), must be done via change_frame_size. 
    3196      Change will not be effected unless different from the current 
    3197      FRAME_LINES (f).  */ 
     3201  /* Dimensions, especially FRAME_LINES (f), must be done via 
     3202     change_frame_size.  Change will not be effected unless different 
     3203     from the current FRAME_LINES (f).  */ 
    31983204  width = FRAME_COLS (f); 
    31993205  height = FRAME_LINES (f); 
     
    46364642          LPTSTR filename_tmp; 
    46374643 
    4638           filename_tmp = mw32_encode_lispy_string (Vlocale_coding_system, file, &size); 
     4644          filename_tmp = mw32_encode_lispy_string (Vlocale_coding_system, 
     4645                                                   file, &size); 
    46394646          memcpy (filename, filename_tmp, size); 
    46404647          filename[size / sizeof (filename[0])] = '\0'; 
  • trunk/src/mw32ime.c

    r4074 r4093  
    302302  if (waiting_on_main_thread) 
    303303    choke_keystroke = TRUE; 
    304    
     304 
    305305  hIMC = (ImmGetContextProc) (hwnd); 
    306306  if (!hIMC) return FALSE; 
     
    325325      PostMessage (NULL, WM_MULE_IME_REPORT, 
    326326                   (WPARAM) himestr, (LPARAM) f); 
    327     }   
     327    } 
    328328  return TRUE; 
    329329} 
     
    361361      PostMessage (NULL, WM_MULE_IME_REPORT, 
    362362                   (WPARAM) himestr, (LPARAM) f); 
    363     }   
     363    } 
    364364  return TRUE; 
    365365} 
     
    870870  orgctrlstate = ctrlstate = (GetKeyState (VK_CONTROL) & 0x80) != 0; 
    871871  orgshiftstate = shiftstate = (GetKeyState (VK_SHIFT) & 0x80) != 0; 
    872    
     872 
    873873  /* str assumed not to contain non-ascii characters. */ 
    874874  for (p = str ; *p ; p++) 
     
    895895      mw32_send_key_input (vk, sc, 0); 
    896896    } 
    897    
     897 
    898898  mw32_change_shift_state (&ctrlstate, orgctrlstate, 
    899899                           &shiftstate, orgshiftstate); 
     
    924924 { 
    925925   waiting_on_main_thread = FALSE; 
    926     
     926 
    927927  if (input_method_function_string != INVALID_HANDLE_VALUE) 
    928928      GlobalFree (input_method_function_string); 
    929929 
    930930  input_method_function_string = INVALID_HANDLE_VALUE; 
    931    
     931 
    932932  SetEvent (input_method_function_event); 
    933 }       
     933} 
    934934 
    935935Lisp_Object 
     
    10291029  input_method_function_string = INVALID_HANDLE_VALUE; 
    10301030  resultstr = compstr = result = Qnil; 
    1031    
     1031 
    10321032  if (hstr != INVALID_HANDLE_VALUE) 
    10331033    { 
     
    10371037          resultstr = make_string (str, strlen (str)); 
    10381038          resultstr = DECODE_SYSTEM (resultstr); 
    1039         }       
    1040        
     1039        } 
     1040 
    10411041      GlobalUnlock (hstr); 
    10421042      GlobalFree (hstr); 
     
    10581058          compstr = make_string (str, strlen (str)); 
    10591059          compstr = DECODE_SYSTEM (compstr); 
    1060         }       
    1061        
     1060        } 
     1061 
    10621062      GlobalUnlock (hstr); 
    10631063      GlobalFree (hstr); 
     
    12141214    {IME_CMODE_SYMBOL,          "symbol",       "nosymbol"}, 
    12151215    {IME_CMODE_SOFTKBD,         "softkbd",      "nosoftkbd"}, 
    1216     {IME_CMODE_ROMAN,         "roman",        "noroman"}, 
     1216    {IME_CMODE_ROMAN,         "roman",        "noroman"}, 
    12171217    {IME_CMODE_NOCONVERSION,    "noconversion", "conversion"}, 
    12181218    {IME_CMODE_NATIVE   ,       "native",       "nonative"}, 
     
    12291229    {0,                         NULL} 
    12301230  }; 
    1231    
     1231 
    12321232 
    12331233DEFUN ("imm-get-conversion-status", 
    1234         Fimm_get_conversion_status, Simm_get_conversion_status,  
     1234        Fimm_get_conversion_status, Simm_get_conversion_status, 
    12351235       0, 0, 0, doc: /* not documented */) 
    12361236  () 
     
    12491249  ret = Qnil; 
    12501250  used = 0; 
    1251      
     1251 
    12521252  if (ImmGetConversionStatusProc 
    12531253      && ImmGetConversionStatusProc (himc, &dwConversion, &dwSentence)) 
     
    12581258            { 
    12591259              used |= cmode_list[i].mask; 
    1260                
     1260 
    12611261              if (dwConversion & cmode_list[i].mask) 
    12621262                ret = Fcons (intern (cmode_list[i].posi_symbol), ret); 
     
    12651265            } 
    12661266        } 
    1267     }   
    1268    
     1267    } 
     1268 
    12691269  (ImmReleaseContextProc) (hwnd, himc); 
    12701270  return ret; 
  • trunk/src/mw32reg.c

    r4003 r4093  
    10351035       && (NILP (hhword) || hdw == 0)) 
    10361036      || ((dw & mask) == mask   /* negative number */ 
    1037           && (NILP (hhword) || hdw == ~((DWORD)0))))    
     1037          && (NILP (hhword) || hdw == ~((DWORD)0)))) 
    10381038    { 
    10391039      return make_number ((long)dw); 
     
    10441044      Fsignal (Qoverflow_error, registry_integer_overflow_data); 
    10451045    } 
    1046    
     1046 
    10471047  /* never come here */ 
    10481048  return Qnil; 
  • trunk/src/mw32term.c

    r4092 r4093  
    566566              return; 
    567567            } 
    568            
     568 
    569569          main_thread_hdc_hwnd = FRAME_MW32_WINDOW (f); 
    570570          EnterCriticalSection (&(f->output_data.mw32->hdc_critsec)); 
     
    669669          hwnd = FRAME_MW32_WINDOW (f); 
    670670        } 
    671            
     671 
    672672      (*pcount)--; 
    673673      if (*pcount > 0) 
  • trunk/src/mw32term.h

    r4069 r4093  
    5454#define MW32_FRAME_CARET_STATE(f) ((f)->output_data.mw32->caret_state) 
    5555/* safe with abandoned frame */ 
    56 #define MW32_FRAME_CARET_STATE2(f) ((f)->output_data.mw32?(f)->output_data.mw32->caret_state : NO_CARET) 
     56#define MW32_FRAME_CARET_STATE2(f) \ 
     57  ((f)->output_data.mw32?(f)->output_data.mw32->caret_state : NO_CARET) 
    5758#define MW32_FRAME_CARET_BLOCKED(f) ((f)->output_data.mw32->caret_blocked) 
    5859#define MW32_FRAME_CARET_SHOWN(f) (MW32_FRAME_CARET_STATE(f) > TOBESHOWN_CARET) 
     
    549550 
    550551#define RELEASE_FRAME_HDC(f)                                            \ 
    551  if (FRAME_WINDOW_P (f))                                                      \ 
     552 if (FRAME_WINDOW_P (f))                                              \ 
    552553  {                                                                     \ 
    553554    int *pcount;                                                        \ 
     
    555556    if (MW32_MAIN_THREAD_P ())                                          \ 
    556557      {                                                                 \ 
    557         phdc = &main_thread_hdc;                                      \ 
    558         pcount = &main_thread_hdc_nestlevel;                          \ 
     558       phdc = &main_thread_hdc;                                       \ 
     559       pcount = &main_thread_hdc_nestlevel;                           \ 
    559560      }                                                                 \ 
    560561    else                                                                \ 
    561562      {                                                                 \ 
    562         phdc = &((f)->output_data.mw32->hdc);                         \ 
    563         pcount = &((f)->output_data.mw32->hdc_nestlevel);             \ 
     563       phdc = &((f)->output_data.mw32->hdc);                          \ 
     564       pcount = &((f)->output_data.mw32->hdc_nestlevel);              \ 
    564565      }                                                                 \ 
    565566    if (*phdc == INVALID_HANDLE_VALUE)                                  \ 
    566         abort ();                                                     \ 
     567      abort ();                                                               \ 
    567568    else                                                                \ 
    568569      {                                                                 \ 
     
    577578   signalling. This macro does force release of hdc. */ 
    578579#define CLEANUP_FRAME_HDC(f)                                            \ 
    579  if (FRAME_WINDOW_P (f))                                                      \ 
     580 if (FRAME_WINDOW_P (f))                                              \ 
    580581  {                                                                     \ 
    581582    if (MW32_MAIN_THREAD_P ())                                          \ 
    582583      {                                                                 \ 
    583584        if (main_thread_hdc != INVALID_HANDLE_VALUE)                    \ 
    584           {                                                           \ 
    585           main_thread_hdc_nestlevel = 1;                              \ 
    586             update_end_hook (f);                                      \ 
    587           }                                                           \ 
     585         {                                                            \ 
     586          main_thread_hdc_nestlevel = 1;                              \ 
     587           update_end_hook (f);                                       \ 
     588         }                                                            \ 
    588589      }                                                                 \ 
    589590    else                                                                \ 
    590591      {                                                                 \ 
    591592        if ((f)->output_data.mw32->hdc != INVALID_HANDLE_VALUE)         \ 
    592           {                                                           \ 
     593         {                                                            \ 
    593594            (f)->output_data.mw32->hdc_nestlevel = 1;                   \ 
    594             update_end_hook (f);                                      \ 
    595           }                                                           \ 
     595           update_end_hook (f);                                       \ 
     596         }                                                            \ 
    596597      }                                                                 \ 
    597598  } 
  • trunk/src/xdisp.c

    r4088 r4093  
    2278122781#ifdef MEADOW 
    2278222782      if (!MW32_MAIN_THREAD_P ()) 
    22783        
    22784           SuspendThread (main_thread); 
    22785        
     22783       
     22784         SuspendThread (main_thread); 
     22785       
    2278622786#endif 
    2278722787      /* Make the window's buffer temporarily current for 
     
    2312923129#ifdef MEADOW 
    2313023130      if (!MW32_MAIN_THREAD_P ()) 
    23131        
    23132           ResumeThread (main_thread); 
    23133        
     23131       
     23132         ResumeThread (main_thread); 
     23133       
    2313423134#endif 
    2313523135    }