]> git.eshelyaron.com Git - emacs.git/commitdiff
; Eliminate more C++ comments
authorPo Lu <luangruo@yahoo.com>
Sat, 17 Aug 2024 14:03:55 +0000 (22:03 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 20 Aug 2024 14:10:41 +0000 (16:10 +0200)
* lib-src/movemail.c:

* nt/preprep.c (main):

* src/unexw32.c (unexec): Convert C++-style comments to C.

(cherry picked from commit 5397808e5bc314ca7ff6a707c153e59cf141008b)

lib-src/movemail.c
nt/preprep.c
src/unexw32.c

index 407f95e45418bc373d39087356f5d23ac58f711e..49c4bcf72dbbc574f18e4ce1335f776c585952bc 100644 (file)
@@ -97,7 +97,7 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.  */
    [18-Feb-97 andrewi] I now believe my comment above to be incorrect,
    since it was based on a misunderstanding of how locking calls are
    implemented and used on Unix.  */
-//#define DISABLE_DIRECT_ACCESS
+/* #define DISABLE_DIRECT_ACCESS */
 
 #include <fcntl.h>
 #endif /* WINDOWSNT */
index d1c4f2136cc3ee3853f080f514aaee6506b2776e..4b6fc8112bbb550cd17223669fb4a6d6d17855a8 100644 (file)
@@ -804,14 +804,14 @@ main (int argc, char **argv)
     nt_header = (PIMAGE_NT_HEADERS) ((char *) dos_header + dos_header->e_lfanew);
 
     nt_header->OptionalHeader.CheckSum = 0;
-//    nt_header->FileHeader.TimeDateStamp = time (NULL);
-//    dos_header->e_cp = size / 512;
-//    nt_header->OptionalHeader.SizeOfImage = size;
+   /* nt_header->FileHeader.TimeDateStamp = time (NULL); */
+   /* dos_header->e_cp = size / 512; */
+   /* nt_header->OptionalHeader.SizeOfImage = size; */
 
     pfnCheckSumMappedFile = (void *) GetProcAddress (hImagehelp, "CheckSumMappedFile");
     if (pfnCheckSumMappedFile)
       {
-//     nt_header->FileHeader.TimeDateStamp = time (NULL);
+       /* nt_header->FileHeader.TimeDateStamp = time (NULL); */
        pfnCheckSumMappedFile (out_file.file_base,
                               out_file.size,
                               &headersum,
index d8329be522da80888eade1c5f55638451d56ac23..f0a910781cc16926ac610fc2c679b904d0ce10eb 100644 (file)
@@ -660,14 +660,14 @@ unexec (const char *new_name, const char *old_name)
     nt_header = (PIMAGE_NT_HEADERS) ((char *) dos_header + dos_header->e_lfanew);
 
     nt_header->OptionalHeader.CheckSum = 0;
-//    nt_header->FileHeader.TimeDateStamp = time (NULL);
-//    dos_header->e_cp = size / 512;
-//    nt_header->OptionalHeader.SizeOfImage = size;
+   /* nt_header->FileHeader.TimeDateStamp = time (NULL); */
+   /* dos_header->e_cp = size / 512; */
+   /* nt_header->OptionalHeader.SizeOfImage = size; */
 
     pfnCheckSumMappedFile = (void *) GetProcAddress (hImagehelp, "CheckSumMappedFile");
     if (pfnCheckSumMappedFile)
       {
-//     nt_header->FileHeader.TimeDateStamp = time (NULL);
+       /* nt_header->FileHeader.TimeDateStamp = time (NULL); */
        pfnCheckSumMappedFile (out_file.file_base,
                               out_file.size,
                               &headersum,