浏览代码

No space in C++Builder

Source commit: aea54b83902494566fa18df9e2988100c5ecb7ae
Martin Prikryl 1 年之前
父节点
当前提交
6cad25b086
共有 4 个文件被更改,包括 5 次插入5 次删除
  1. 1 1
      libs/expat/lib/xmlparse.c
  2. 1 1
      libs/openssl/crypto/conf/conf_mod.c
  3. 2 2
      source/packages/dragndrop/DragDrop.pas
  4. 1 1
      source/putty/mpint.h

+ 1 - 1
libs/expat/lib/xmlparse.c

@@ -897,7 +897,7 @@ __declspec(dllimport) int rand_s(unsigned int *);
  */
 static int
 writeRandomBytes_rand_s(void *target, size_t count) {
-  // WINSCP, we do not have rand_s in C++ Builder
+  // WINSCP, we do not have rand_s in C++Builder
   int success = 0;  /* full count bytes written? */
   const HMODULE advapi32 = _Expat_LoadLibrary(TEXT("ADVAPI32.DLL"));
 

+ 1 - 1
libs/openssl/crypto/conf/conf_mod.c

@@ -29,7 +29,7 @@
 #ifdef WINSCP
 
 // UPGRADE
-// RCU cannot be used in C++ Builder XE6 as it does not support Interlocked* intrinsic.
+// RCU cannot be used in C++Builder XE6 as it does not support Interlocked* intrinsic.
 // Mapping RCU API to plain locks.
 // This is effectivelly a rollback of
 // https://github.com/openssl/openssl/commit/504e72fc1a1432d5266bd6e8909648c49884a36c

+ 2 - 2
source/packages/dragndrop/DragDrop.pas

@@ -78,7 +78,7 @@ type
 
   TOnDragEnter = procedure(DataObj: IDataObject; grfKeyState: LongInt; pt: TPoint;
      var dwEffect: LongInt; var Accept: Boolean) of object;
-  // WORKAROUND C++ Builder 11.2 cannot compile parameter-less Delphi closures
+  // WORKAROUND C++Builder 11.2 cannot compile parameter-less Delphi closures
   TOnDragLeave = procedure(Dummy: Integer) of object;
   TOnDragOver = procedure(grfKeyState: LongInt; pt: TPoint; var dwEffect: LongInt; PreferredEffect: LongInt) of object;
   TOnDrop = procedure(DataObj: IDataObject; grfKeyState: LongInt;  pt: TPoint; var dwEffect: LongInt) of object;
@@ -1807,7 +1807,7 @@ begin
   if (not FRegistered) and (FTargetEffects <> 0) and (FDragDropControl <> nil) then
   begin
     try
-      // CoLockObjectExternal crashes debugging intermittently in C++ Builder 2010
+      // CoLockObjectExternal crashes debugging intermittently in C++Builder 2010
       {$IFNDEF IDE}
       // Ensure that drag-and-drop interface stays in memory
       CoLockObjectExternal(FDropTarget, True, False);

+ 1 - 1
source/putty/mpint.h

@@ -95,7 +95,7 @@ static inline mp_int *mp__from_string_literal(const char *lit)
 // WINSCP
 static inline mp_int *mp__from_string_literal_check(const char *lit)
 {
-    // WORKAROUND: C++ Builder seems to limit stringified code to about 256 characters.
+    // WORKAROUND: C++Builder seems to limit stringified code to about 256 characters.
     // So make sure this is not the case.
     // If it is, we need to call mp__from_string_literal directly (MP_LITERAL_WINSCP_STR)
     // with a string (as in dh_group*_construct).