Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
afce9213
Commit
afce9213
authored
Dec 01, 2000
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 01, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned up internal types definition.
parent
04211389
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
17 deletions
+11
-17
debugger.h
debugger/debugger.h
+2
-2
types.c
debugger/types.c
+9
-15
No files found.
debugger/debugger.h
View file @
afce9213
...
...
@@ -26,8 +26,8 @@
#define SYM_TRAMPOLINE 0x10
#define SYM_STEP_THROUGH 0x20
enum
debug_type
{
DT_BASIC
,
DT_
CONST
,
DT_
POINTER
,
DT_ARRAY
,
DT_STRUCT
,
DT_ENUM
,
DT_
TYPEDEF
,
DT_
FUNC
,
DT_BITFIELD
};
enum
debug_type
{
DT_BASIC
,
DT_POINTER
,
DT_ARRAY
,
DT_STRUCT
,
DT_ENUM
,
DT_FUNC
,
DT_BITFIELD
};
/*
...
...
debugger/types.c
View file @
afce9213
...
...
@@ -727,10 +727,11 @@ int DEBUG_GetObjectSize(struct datatype * dt)
* when we insert the element into the structure.
*/
return
0
;
case
DT_TYPEDEF
:
case
DT_FUNC
:
case
DT_CONST
:
assert
(
FALSE
);
default:
DEBUG_Printf
(
DBG_CHN_ERR
,
"Unknown type???
\n
"
);
break
;
}
return
0
;
}
...
...
@@ -827,7 +828,6 @@ DEBUG_Print( const DBG_VALUE *value, int count, char format, int level )
{
case
DT_BASIC
:
case
DT_ENUM
:
case
DT_CONST
:
case
DT_POINTER
:
DEBUG_PrintBasic
(
value
,
1
,
format
);
break
;
...
...
@@ -976,9 +976,8 @@ DEBUG_DumpTypes(void)
DEBUG_Printf
(
DBG_CHN_MESG
,
"0x%08lx - FUNC(%s)(%08lx)
\n
"
,
(
unsigned
long
)
dt
,
name
,
(
unsigned
long
)
dt
->
un
.
funct
.
rettype
);
break
;
case
DT_CONST
:
case
DT_TYPEDEF
:
DEBUG_Printf
(
DBG_CHN_MESG
,
"What???
\n
"
);
default:
DEBUG_Printf
(
DBG_CHN_ERR
,
"Unknown type???
\n
"
);
break
;
}
}
...
...
@@ -996,7 +995,6 @@ struct datatype *
DEBUG_TypeCast
(
enum
debug_type
type
,
const
char
*
name
)
{
int
hash
;
struct
datatype
*
rtn
;
/*
* The last bucket is special, and is used to hold typeless names.
...
...
@@ -1010,10 +1008,7 @@ DEBUG_TypeCast(enum debug_type type, const char * name)
hash
=
type_hash
(
name
);
}
rtn
=
DEBUG_LookupDataType
(
type
,
hash
,
name
);
return
rtn
;
return
DEBUG_LookupDataType
(
type
,
hash
,
name
);
}
int
...
...
@@ -1051,10 +1046,9 @@ DEBUG_PrintTypeCast(const struct datatype * dt)
DEBUG_PrintTypeCast
(
dt
->
un
.
funct
.
rettype
);
DEBUG_Printf
(
DBG_CHN_MESG
,
"(*%s)()"
,
name
);
break
;
case
DT_CONST
:
case
DT_TYPEDEF
:
DEBUG_Printf
(
DBG_CHN_MESG
,
"What???
\n
"
);
break
;
default:
DEBUG_Printf
(
DBG_CHN_ERR
,
"Unknown type???
\n
"
);
break
;
}
return
TRUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment