emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r110491: Fix return type of w32_last_


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r110491: Fix return type of w32_last_error.
Date: Tue, 09 Oct 2012 20:10:16 +0200
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 110491
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Tue 2012-10-09 20:10:16 +0200
message:
  Fix return type of w32_last_error.
  
   src/w32fns.c (w32_last_error): Change the return value to DWORD, to
   match what GetLastError returns.  Explain better why the function is
   needed.
modified:
  src/ChangeLog
  src/w32fns.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-10-09 17:58:18 +0000
+++ b/src/ChangeLog     2012-10-09 18:10:16 +0000
@@ -1,5 +1,9 @@
 2012-10-09  Eli Zaretskii  <address@hidden>
 
+       * w32fns.c (w32_last_error): Change the return value to DWORD, to
+       match what GetLastError returns.  Explain why the function is
+       needed.
+
        * frame.c (delete_frame): Rename local variable 'tooltip_frame' to
        'is_tooltip_frame', to avoid confusion with its global namesake.
 

=== modified file 'src/w32fns.c'
--- a/src/w32fns.c      2012-10-08 18:44:42 +0000
+++ b/src/w32fns.c      2012-10-09 18:10:16 +0000
@@ -6983,8 +6983,10 @@
   return buf;
 }
 
-/* For convenience when debugging.  */
-int
+/* For convenience when debugging.  (You cannot call GetLastError
+   directly from GDB: it will crash, because it uses the __stdcall
+   calling convention, not the _cdecl convention assumed by GDB.)  */
+DWORD
 w32_last_error (void)
 {
   return GetLastError ();


reply via email to

[Prev in Thread] Current Thread [Next in Thread]