aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2022-06-06 12:00:45 -0400
committerKen Brown <kbrown@cornell.edu>2022-06-06 12:00:45 -0400
commit30c5411d0717483a9ad892f6f0a2f92a1ffd7c84 (patch)
tree6b96082bab34a6c1c72637e1f51f8b894049b37b /winsup/cygwin/dcrt0.cc
parentcb4b4548c828d3975266571190d67650d374339d (diff)
downloadnewlib-30c5411d0717483a9ad892f6f0a2f92a1ffd7c84.zip
newlib-30c5411d0717483a9ad892f6f0a2f92a1ffd7c84.tar.gz
newlib-30c5411d0717483a9ad892f6f0a2f92a1ffd7c84.tar.bz2
Cygwin: remove most occurrences of __stdcall and __cdecl
These have no effect on x86_64. Retain a few occurrences of __cdecl in files imported from other sources. Also retain all occurrences of WINAPI, even though the latter is simply a macro that expands to __stdcall. Most of these occurrences are associated with Windows API functions, and removing them might make the code confusing instead of simpler.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 9cc436c..c460e15 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -61,7 +61,7 @@ do_global_dtors ()
}
}
-static void __stdcall
+static void
do_global_ctors (void (**in_pfunc)(), int force)
{
if (!force && in_forkee)
@@ -84,7 +84,7 @@ do_global_ctors (void (**in_pfunc)(), int force)
* A \@file is replaced with @file so that echo \@foo would print
* @foo and not the contents of foo.
*/
-static bool __stdcall
+static bool
insert_file (char *name, char *&cmd)
{
HANDLE f;
@@ -203,7 +203,7 @@ quoted (char *cmd, int winshell)
&& isalpha ((s)[2]) \
&& strchr ((s) + 3, '\\')))
-static int __stdcall
+static int
globify (char *word, char **&argv, int &argc, int &argvlen)
{
if (*word != '~' && strpbrk (word, "?*[\"\'(){}") == NULL)
@@ -290,7 +290,7 @@ globify (char *word, char **&argv, int &argc, int &argvlen)
/* Build argv, argc from string passed from Windows. */
-static void __stdcall
+static void
build_argv (char *cmd, char **&argv, int &argc, int winshell)
{
int argvlen = 0;
@@ -365,7 +365,7 @@ build_argv (char *cmd, char **&argv, int &argc, int winshell)
}
/* sanity and sync check */
-void __stdcall
+void
check_sanity_and_sync (per_process *p)
{
/* Sanity check to make sure developers didn't change the per_process */
@@ -1013,7 +1013,7 @@ __cygwin_exit_return: \n\
");
}
-extern "C" void __stdcall
+extern "C" void
_dll_crt0 ()
{
/* Starting with Windows 10 rel 1511, the main stack of an application is