Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Jason Beetham
wine
Commits
c521db61
Commit
c521db61
authored
26 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Removed CONSOLE_Ops.
parent
fdc92bae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scheduler/k32obj.c
+2
-4
2 additions, 4 deletions
scheduler/k32obj.c
win32/console.c
+0
-37
0 additions, 37 deletions
win32/console.c
with
2 additions
and
41 deletions
scheduler/k32obj.c
+
2
−
4
View file @
c521db61
...
...
@@ -16,8 +16,6 @@
extern
const
K32OBJ_OPS
PROCESS_Ops
;
extern
const
K32OBJ_OPS
THREAD_Ops
;
extern
const
K32OBJ_OPS
MEM_MAPPED_FILE_Ops
;
extern
const
K32OBJ_OPS
CONSOLE_Ops
;
extern
const
K32OBJ_OPS
SNAPSHOT_Ops
;
static
const
K32OBJ_OPS
K32OBJ_NullOps
=
{
...
...
@@ -43,14 +41,14 @@ const K32OBJ_OPS * const K32OBJ_Ops[K32OBJ_NBOBJECTS] =
&
THREAD_Ops
,
/* K32OBJ_THREAD */
&
K32OBJ_DefaultOps
,
/* K32OBJ_FILE */
&
K32OBJ_DefaultOps
,
/* K32OBJ_CHANGE */
&
CONSOLE_Ops
,
/* K32OBJ_CONSOLE */
&
K32OBJ_DefaultOps
,
/* K32OBJ_CONSOLE */
&
K32OBJ_NullOps
,
/* K32OBJ_SCREEN_BUFFER */
&
MEM_MAPPED_FILE_Ops
,
/* K32OBJ_MEM_MAPPED_FILE */
&
K32OBJ_NullOps
,
/* K32OBJ_SERIAL */
&
K32OBJ_NullOps
,
/* K32OBJ_DEVICE_IOCTL */
&
K32OBJ_DefaultOps
,
/* K32OBJ_PIPE */
&
K32OBJ_NullOps
,
/* K32OBJ_MAILSLOT */
&
K32OBJ_
N
ul
l
Ops
,
/* K32OBJ_TOOLHELP_SNAPSHOT */
&
K32OBJ_
Defa
ul
t
Ops
,
/* K32OBJ_TOOLHELP_SNAPSHOT */
&
K32OBJ_NullOps
/* K32OBJ_SOCKET */
};
...
...
This diff is collapsed.
Click to expand it.
win32/console.c
+
0
−
37
View file @
c521db61
...
...
@@ -52,41 +52,11 @@ typedef struct _CONSOLE {
K32OBJ
header
;
}
CONSOLE
;
static
void
CONSOLE_Destroy
(
K32OBJ
*
obj
);
const
K32OBJ_OPS
CONSOLE_Ops
=
{
CONSOLE_Destroy
/* destroy */
};
/* FIXME: Should be in an internal header file. OK, so which one?
Used by CONSOLE_makecomplex. */
FILE
*
wine_openpty
(
int
*
master
,
int
*
slave
,
char
*
name
,
struct
termios
*
term
,
struct
winsize
*
winsize
);
/***********************************************************************
* CONSOLE_Destroy
*/
static
void
CONSOLE_Destroy
(
K32OBJ
*
obj
)
{
CONSOLE
*
console
=
(
CONSOLE
*
)
obj
;
assert
(
obj
->
type
==
K32OBJ_CONSOLE
);
obj
->
type
=
K32OBJ_UNKNOWN
;
HeapFree
(
SystemHeap
,
0
,
console
);
}
/***********************************************************************
* CONSOLE_GetPtr
*/
static
CONSOLE
*
CONSOLE_GetPtr
(
HANDLE32
handle
)
{
return
(
CONSOLE
*
)
HANDLE_GetObjPtr
(
PROCESS_Current
(),
handle
,
K32OBJ_CONSOLE
,
0
,
NULL
);
}
/****************************************************************************
* CONSOLE_GetInfo
*/
...
...
@@ -1279,15 +1249,8 @@ BOOL32 WINAPI SetConsoleCursorPosition( HANDLE32 hcon, COORD pos )
*/
BOOL32
WINAPI
GetNumberOfConsoleInputEvents
(
HANDLE32
hcon
,
LPDWORD
nrofevents
)
{
CONSOLE
*
console
=
CONSOLE_GetPtr
(
hcon
);
if
(
!
console
)
{
FIXME
(
console
,
"(%d,%p), no console handle!
\n
"
,
hcon
,
nrofevents
);
return
FALSE
;
}
CONSOLE_get_input
(
hcon
,
FALSE
);
*
nrofevents
=
1
;
/* UMM */
K32OBJ_DecCount
(
&
console
->
header
);
return
TRUE
;
}
...
...
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