- Timestamp:
- Nov 5, 2023 9:45:21 AM (16 months ago)
- svn:sync-xref-src-repo-rev:
- 159902
- 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 129 129 typedef struct PRDir PRDir; 130 130 typedef struct PRDirEntry PRDirEntry; 131 #ifdef MOZ_UNICODE132 typedef struct PRDirUTF16 PRDirUTF16;133 typedef struct PRDirEntryUTF16 PRDirEntryUTF16;134 #endif /* MOZ_UNICODE */135 131 typedef struct PRFileDesc PRFileDesc; 136 132 typedef struct PRFileInfo PRFileInfo; … … 740 736 const char *name, PRIntn flags, PRIntn mode); 741 737 742 #ifdef MOZ_UNICODE743 /*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 750 738 /* 751 739 ************************************************************************** … … 927 915 NSPR_API(PRStatus) PR_GetFileInfo(const char *fn, PRFileInfo *info); 928 916 NSPR_API(PRStatus) PR_GetFileInfo64(const char *fn, PRFileInfo64 *info); 929 930 #ifdef MOZ_UNICODE931 /*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 */936 917 937 918 /* … … 1089 1070 }; 1090 1071 1091 #ifdef MOZ_UNICODE1092 struct PRDirEntryUTF16 {1093 const PRUnichar *name; /* name of entry in UTF16, relative to1094 * directory name */1095 };1096 #endif /* MOZ_UNICODE */1097 1098 1072 #if !defined(NO_NSPR_10_SUPPORT) 1099 1073 #define PR_DirName(dirEntry) (dirEntry->name) … … 1121 1095 1122 1096 NSPR_API(PRDir*) PR_OpenDir(const char *name); 1123 1124 #ifdef MOZ_UNICODE1125 /*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 */1130 1097 1131 1098 /* … … 1162 1129 NSPR_API(PRDirEntry*) PR_ReadDir(PRDir *dir, PRDirFlags flags); 1163 1130 1164 #ifdef MOZ_UNICODE1165 /*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 1171 1131 /* 1172 1132 ************************************************************************* … … 1187 1147 1188 1148 NSPR_API(PRStatus) PR_CloseDir(PRDir *dir); 1189 1190 #ifdef MOZ_UNICODE1191 /*1192 * EXPERIMENTAL: This function may be removed in a future release.1193 */1194 NSPR_API(PRStatus) PR_CloseDirUTF16(PRDirUTF16 *dir);1195 #endif /* MOZ_UNICODE */1196 1149 1197 1150 /* -
trunk/src/libs/xpcom18a4/nsprpub/pr/include/private/primpl.h
r101805 r101806 134 134 typedef struct _MDSemaphore _MDSemaphore; 135 135 typedef struct _MDDir _MDDir; 136 #ifdef MOZ_UNICODE137 typedef struct _MDDirUTF16 _MDDirUTF16;138 #endif /* MOZ_UNICODE */139 136 typedef struct _MDFileDesc _MDFileDesc; 140 137 typedef struct _MDProcess _MDProcess; … … 543 540 _MDDir md; 544 541 }; 545 546 #ifdef MOZ_UNICODE547 struct PRDirUTF16 {548 PRDirEntry d;549 _MDDirUTF16 md;550 };551 #endif /* MOZ_UNICODE */552 542 553 543 extern void _PR_InitSegs(void); -
trunk/src/libs/xpcom18a4/nsprpub/pr/include/prtypes.h
r21171 r101806 492 492 typedef enum { PR_FAILURE = -1, PR_SUCCESS = 0 } PRStatus; 493 493 494 #ifdef MOZ_UNICODE495 /*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 #else503 typedef PRUint16 PRUnichar;504 #endif505 #endif506 #endif /* MOZ_UNICODE */507 508 494 /* 509 495 ** WARNING: The undocumented data types PRWord and PRUword are -
trunk/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptio.c
r101805 r101806 4179 4179 } 4180 4180 4181 #ifdef MOZ_UNICODE4182 /* ================ 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 4216 4181 /* ptio.c */
Note:
See TracChangeset
for help on using the changeset viewer.