1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00

Merge from savannah/emacs-30

d6726e6dfc Further fix of reading and writing profiler data
30b2fae77b * Makefile.in (PREFERRED_BRANCH): Update to emacs-30.
5397808e5b ; Eliminate more C++ comments
1463434907 ; Eliminate C++ comments and typo
This commit is contained in:
Po Lu 2024-08-20 21:57:25 +08:00
commit 4361649901
6 changed files with 17 additions and 12 deletions

View File

@ -1319,7 +1319,7 @@ ChangeLog:
./$(emacslog) -o $(CHANGELOG) -n $(CHANGELOG_HISTORY_INDEX_MAX)
# Check that we are in a good state for changing history.
PREFERRED_BRANCH = emacs-28
PREFERRED_BRANCH = emacs-30
preferred-branch-is-current:
git branch | grep -q '^\* $(PREFERRED_BRANCH)$$'
unchanged-history-files:

View File

@ -5148,10 +5148,10 @@ Rust_entries (FILE *inf)
cp = skip_spaces(cp);
name = cp;
// Skip 'pub' keyworld
/* Skip 'pub' keyword. */
(void)LOOKING_AT (cp, "pub");
// Look for define
/* Look for define. */
if ((is_func = LOOKING_AT (cp, "fn"))
|| LOOKING_AT (cp, "enum")
|| LOOKING_AT (cp, "struct")

View 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 */

View File

@ -452,6 +452,11 @@ Do not touch this variable directly.")
(let ((string (cond
((eq entry t)
"Others")
;; When we save profile data into a file, the function
;; objects are replaced with their "names". When we see
;; a string here, that's presumably why, so just print
;; it as-is.
((stringp entry) entry)
(t (propertize (help-fns-function-name entry)
;; Override the `button-map' which
;; otherwise adds RET, mouse-1, and TAB

View 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,

View 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,