VirtualBox

Changeset 101806 in vbox for trunk/src


Ignore:
Timestamp:
Nov 5, 2023 9:45:21 AM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159902
Message:

libs/xpcom: Get rid of code used only if MOZ_UNICODE is defined which we never do, bugref:10545

Location:
trunk/src/libs/xpcom18a4/nsprpub/pr
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/nsprpub/pr/include/prio.h

    r101793 r101806  
    129129typedef struct PRDir            PRDir;
    130130typedef struct PRDirEntry       PRDirEntry;
    131 #ifdef MOZ_UNICODE
    132 typedef struct PRDirUTF16       PRDirUTF16;
    133 typedef struct PRDirEntryUTF16  PRDirEntryUTF16;
    134 #endif /* MOZ_UNICODE */
    135131typedef struct PRFileDesc       PRFileDesc;
    136132typedef struct PRFileInfo       PRFileInfo;
     
    740736    const char *name, PRIntn flags, PRIntn mode);
    741737
    742 #ifdef MOZ_UNICODE
    743 /*
    744  * EXPERIMENTAL: This function may be removed in a future release.
    745  */
    746 NSPR_API(PRFileDesc*) PR_OpenFileUTF16(
    747     const PRUnichar *name, PRIntn flags, PRIntn mode);
    748 #endif /* MOZ_UNICODE */
    749 
    750738/*
    751739 **************************************************************************
     
    927915NSPR_API(PRStatus) PR_GetFileInfo(const char *fn, PRFileInfo *info);
    928916NSPR_API(PRStatus) PR_GetFileInfo64(const char *fn, PRFileInfo64 *info);
    929 
    930 #ifdef MOZ_UNICODE
    931 /*
    932  * EXPERIMENTAL: This function may be removed in a future release.
    933  */
    934 NSPR_API(PRStatus) PR_GetFileInfo64UTF16(const PRUnichar *fn, PRFileInfo64 *info);
    935 #endif /* MOZ_UNICODE */
    936917
    937918/*
     
    10891070};
    10901071
    1091 #ifdef MOZ_UNICODE
    1092 struct PRDirEntryUTF16 {
    1093     const PRUnichar *name;   /* name of entry in UTF16, relative to
    1094                               * directory name */
    1095 };
    1096 #endif /* MOZ_UNICODE */
    1097 
    10981072#if !defined(NO_NSPR_10_SUPPORT)
    10991073#define PR_DirName(dirEntry)    (dirEntry->name)
     
    11211095
    11221096NSPR_API(PRDir*) PR_OpenDir(const char *name);
    1123 
    1124 #ifdef MOZ_UNICODE
    1125 /*
    1126  * EXPERIMENTAL: This function may be removed in a future release.
    1127  */
    1128 NSPR_API(PRDirUTF16*) PR_OpenDirUTF16(const PRUnichar *name);
    1129 #endif /* MOZ_UNICODE */
    11301097
    11311098/*
     
    11621129NSPR_API(PRDirEntry*) PR_ReadDir(PRDir *dir, PRDirFlags flags);
    11631130
    1164 #ifdef MOZ_UNICODE
    1165 /*
    1166  * EXPERIMENTAL: This function may be removed in a future release.
    1167  */
    1168 NSPR_API(PRDirEntryUTF16*) PR_ReadDirUTF16(PRDirUTF16 *dir, PRDirFlags flags);
    1169 #endif /* MOZ_UNICODE */
    1170 
    11711131/*
    11721132 *************************************************************************
     
    11871147
    11881148NSPR_API(PRStatus) PR_CloseDir(PRDir *dir);
    1189 
    1190 #ifdef MOZ_UNICODE
    1191 /*
    1192  * EXPERIMENTAL: This function may be removed in a future release.
    1193  */
    1194 NSPR_API(PRStatus) PR_CloseDirUTF16(PRDirUTF16 *dir);
    1195 #endif /* MOZ_UNICODE */
    11961149
    11971150/*
  • trunk/src/libs/xpcom18a4/nsprpub/pr/include/private/primpl.h

    r101805 r101806  
    134134typedef struct _MDSemaphore _MDSemaphore;
    135135typedef struct _MDDir _MDDir;
    136 #ifdef MOZ_UNICODE
    137 typedef struct _MDDirUTF16 _MDDirUTF16;
    138 #endif /* MOZ_UNICODE */
    139136typedef struct _MDFileDesc _MDFileDesc;
    140137typedef struct _MDProcess _MDProcess;
     
    543540    _MDDir md;
    544541};
    545 
    546 #ifdef MOZ_UNICODE
    547 struct PRDirUTF16 {
    548     PRDirEntry d;
    549     _MDDirUTF16 md;
    550 };
    551 #endif /* MOZ_UNICODE */
    552542
    553543extern void _PR_InitSegs(void);
  • trunk/src/libs/xpcom18a4/nsprpub/pr/include/prtypes.h

    r21171 r101806  
    492492typedef enum { PR_FAILURE = -1, PR_SUCCESS = 0 } PRStatus;
    493493
    494 #ifdef MOZ_UNICODE
    495 /*
    496  * EXPERIMENTAL: This type may be removed in a future release.
    497  */
    498 #ifndef __PRUNICHAR__
    499 #define __PRUNICHAR__
    500 #if defined(WIN32) || defined(XP_MAC)
    501 typedef wchar_t PRUnichar;
    502 #else
    503 typedef PRUint16 PRUnichar;
    504 #endif
    505 #endif
    506 #endif /* MOZ_UNICODE */
    507 
    508494/*
    509495** WARNING: The undocumented data types PRWord and PRUword are
  • trunk/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptio.c

    r101805 r101806  
    41794179}
    41804180
    4181 #ifdef MOZ_UNICODE
    4182 /* ================ UTF16 Interfaces ================================ */
    4183 PR_IMPLEMENT(PRFileDesc*) PR_OpenFileUTF16(
    4184     const PRUnichar *name, PRIntn flags, PRIntn mode)
    4185 {
    4186     PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
    4187     return NULL;
    4188 }
    4189 
    4190 PR_IMPLEMENT(PRStatus) PR_CloseDirUTF16(PRDir *dir)
    4191 {
    4192     PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
    4193     return PR_FAILURE;
    4194 }
    4195 
    4196 PR_IMPLEMENT(PRDirUTF16*) PR_OpenDirUTF16(const PRUnichar *name)
    4197 {
    4198     PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
    4199     return NULL;
    4200 }
    4201 
    4202 PR_IMPLEMENT(PRDirEntryUTF16*) PR_ReadDirUTF16(PRDirUTF16 *dir, PRDirFlags flags)
    4203 {
    4204     PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
    4205     return NULL;
    4206 }
    4207 
    4208 PR_IMPLEMENT(PRStatus) PR_GetFileInfo64UTF16(const PRUnichar *fn, PRFileInfo64 *info)
    4209 {
    4210     PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
    4211     return PR_FAILURE;
    4212 }
    4213 /* ================ UTF16 Interfaces ================================ */
    4214 #endif /* MOZ_UNICODE */
    4215 
    42164181/* ptio.c */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette