Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rolf Eike Beer
KWSys
Commits
e437a2fe
Commit
e437a2fe
authored
21 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: Removed trailing whitespace.
parent
6ff7630f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Process.h.in
+2
-2
2 additions, 2 deletions
Process.h.in
ProcessFwd9x.c
+15
-15
15 additions, 15 deletions
ProcessFwd9x.c
ProcessWin32.c
+127
-127
127 additions, 127 deletions
ProcessWin32.c
with
144 additions
and
144 deletions
Process.h.in
+
2
−
2
View file @
e437a2fe
...
...
@@ -9,8 +9,8 @@
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
See http://www.cmake.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
...
...
This diff is collapsed.
Click to expand it.
ProcessFwd9x.c
+
15
−
15
View file @
e437a2fe
...
...
@@ -9,8 +9,8 @@ Version: $Revision$
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
See http://www.cmake.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
...
...
@@ -34,10 +34,10 @@ int main()
/* Process startup information for the real child. */
STARTUPINFO
si
;
PROCESS_INFORMATION
pi
;
/* The result of waiting for the child to exit. */
DWORD
waitResult
;
/* The child's process return code. */
DWORD
retVal
;
...
...
@@ -47,7 +47,7 @@ int main()
/* Pointer that will be advanced to the beginning of the command
line of the real child process. */
LPSTR
cmdLine
=
commandLine
;
/* Handle to the error reporting pipe provided by the parent. This
is parsed off the command line. */
HANDLE
errorPipe
=
0
;
...
...
@@ -60,14 +60,14 @@ int main()
/* Handle to the event the parent uses to tell us to kill the child.
This is parsed off the command line. */
HANDLE
killEvent
=
0
;
/* Flag for whether to hide window of child process. */
int
hideWindow
=
0
;
/* An array of the handles on which we wait when the child is
running. */
HANDLE
waitHandles
[
2
]
=
{
0
,
0
};
/* Move the pointer past the name of this executable. */
if
(
*
cmdLine
==
'"'
)
{
...
...
@@ -93,12 +93,12 @@ int main()
while
(
*
cmdLine
&&
*
cmdLine
!=
' '
)
{
++
cmdLine
;
}
while
(
*
cmdLine
&&
*
cmdLine
==
' '
)
{
++
cmdLine
;
}
sscanf
(
cmdLine
,
"%p"
,
&
killEvent
);
/* Parse the hide window flag. */
while
(
*
cmdLine
&&
*
cmdLine
!=
' '
)
{
++
cmdLine
;
}
while
(
*
cmdLine
&&
*
cmdLine
==
' '
)
{
++
cmdLine
;
}
sscanf
(
cmdLine
,
"%d"
,
&
hideWindow
);
/* Skip to the beginning of the command line of the real child. */
while
(
*
cmdLine
&&
*
cmdLine
!=
' '
)
{
++
cmdLine
;
}
while
(
*
cmdLine
&&
*
cmdLine
==
' '
)
{
++
cmdLine
;
}
...
...
@@ -154,7 +154,7 @@ int main()
TerminateProcess
(
pi
.
hProcess
,
255
);
WaitForSingleObject
(
pi
.
hProcess
,
INFINITE
);
CloseHandle
(
pi
.
hProcess
);
CloseHandle
(
pi
.
hThread
);
CloseHandle
(
pi
.
hThread
);
return
1
;
}
else
...
...
@@ -191,16 +191,16 @@ void ReportLastError(HANDLE errorPipe)
{
LPVOID
lpMsgBuf
;
DWORD
n
;
FormatMessage
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
|
FormatMessage
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
|
FORMAT_MESSAGE_IGNORE_INSERTS
,
NULL
,
GetLastError
(),
MAKELANGID
(
LANG_NEUTRAL
,
SUBLANG_DEFAULT
),
// Default language
(
LPTSTR
)
&
lpMsgBuf
,
0
,
NULL
NULL
);
WriteFile
(
errorPipe
,
lpMsgBuf
,
strlen
(
lpMsgBuf
)
+
1
,
&
n
,
0
);
LocalFree
(
lpMsgBuf
);
...
...
This diff is collapsed.
Click to expand it.
ProcessWin32.c
+
127
−
127
View file @
e437a2fe
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment