Ignore:
Timestamp:
Dec 18, 2011, 10:28:22 PM (14 years ago)
Author:
dmik
Message:

Merge branch gcc-kmk to trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 bin
        2 Makefile.inc
         1env.cmd
         2LocalConfig.kmk
    • Property svn:mergeinfo set to
      /branches/gcc-kmkmergedeligible
  • trunk/src/shlwapi/string_odin.cpp

    r21494 r21916  
    3333#include <ctype.h>
    3434#include <wctype.h>
     35#ifndef __GNUC__
    3536#include <wcstr.h>
     37#else
     38#include <wchar.h>
     39#endif
    3640#define HAVE_WCTYPE_H
    3741
     
    4246#include <heapstring.h>
    4347#include <misc.h>
    44 #include <win\shell.h>
    45 #include <win\winerror.h>
     48#include <win/shell.h>
     49#include <win/winerror.h>
    4650#include <winversion.h>
    4751#include <winuser.h>
     
    179183       (lpString2 == NULL) )
    180184    return 0;
    181  
     185
    182186  LPSTR lpLoop = (LPSTR)lpString1;
    183  
     187
    184188  for (; (*lpLoop != 0); lpLoop++ )
    185189    if ( StrChrA( lpString2, *lpLoop ) )
    186190      return (INT) (lpLoop - lpString1);
    187  
     191
    188192  return (INT) (lpLoop - lpString1);
    189193}
     
    213217       (lpString2 == NULL) )
    214218    return 0;
    215  
     219
    216220  LPWSTR lpLoop = (LPWSTR)lpString1;
    217  
     221
    218222  for (; (*lpLoop != 0); lpLoop++ )
    219223    if ( StrChrW( lpString2, *lpLoop ) )
    220224      return (INT) (lpLoop - lpString1);
    221  
     225
    222226  return (INT) (lpLoop - lpString1);
    223227}
     
    230234 * Variables :
    231235 * Result    :
    232  * Remark    : 
     236 * Remark    :
    233237 * Status    : UNTESTED
    234238 *
     
    241245{
    242246  register LPSTR s1;
    243  
     247
    244248  while (*lpString1)
    245249  {
     
    255259    lpString1++;
    256260  }
    257  
     261
    258262  return (LPSTR)NULL;
    259263}
     
    266270 * Variables :
    267271 * Result    :
    268  * Remark    : 
     272 * Remark    :
    269273 * Status    : UNTESTED
    270274 *
     
    277281{
    278282  register LPWSTR s1;
    279  
     283
    280284  while (*lpString1)
    281285  {
     
    291295    lpString1++;
    292296  }
    293  
     297
    294298  return (LPWSTR)NULL;
    295299}
     
    304308
    305309  dprintf(("StrRStrIA %x %x %x NOT IMPLEMENTED correctly", lpFirst, lpSrch, unknown));
    306  
     310
    307311  // lpSrch cannot fit into lpFirst
    308312  if (iLen < 0)
    309313    return (LPSTR)NULL;
    310  
     314
    311315  LPSTR lpThis = (LPSTR)lpFirst + iLen;
    312  
     316
    313317  while (lpThis >= lpFirst)
    314318  {
     
    318322    lpThis--;
    319323  }
    320  
     324
    321325  return NULL;
    322326}
     
    331335
    332336  dprintf(("StrRStrIA %x %x %x NOT IMPLEMENTED correctly", lpFirst, lpSrch, unknown));
    333  
     337
    334338  // lpSrch cannot fit into lpFirst
    335339  if (iLen < 0)
    336340    return (LPWSTR)NULL;
    337  
     341
    338342  LPWSTR lpThis = (LPWSTR)lpFirst + iLen;
    339  
     343
    340344  while (lpThis >= lpFirst)
    341345  {
     
    345349    lpThis--;
    346350  }
    347  
     351
    348352  return NULL;
    349353}
Note: See TracChangeset for help on using the changeset viewer.