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
306013d4
Commit
306013d4
authored
Jan 24, 2007
by
Matt Finnicum
Committed by
Alexandre Julliard
Jan 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Remove excessive traces from reader.c.
parent
a790ff55
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
40 deletions
+0
-40
reader.c
dlls/riched20/reader.c
+0
-40
No files found.
dlls/riched20/reader.c
View file @
306013d4
...
@@ -111,8 +111,6 @@ int _RTFGetChar(RTF_Info *info)
...
@@ -111,8 +111,6 @@ int _RTFGetChar(RTF_Info *info)
int
ch
;
int
ch
;
ME_InStream
*
stream
=
info
->
stream
;
ME_InStream
*
stream
=
info
->
stream
;
TRACE
(
"
\n
"
);
if
(
stream
->
dwSize
<=
stream
->
dwUsed
)
if
(
stream
->
dwSize
<=
stream
->
dwUsed
)
{
{
ME_StreamInFill
(
stream
);
ME_StreamInFill
(
stream
);
...
@@ -131,8 +129,6 @@ int _RTFGetChar(RTF_Info *info)
...
@@ -131,8 +129,6 @@ int _RTFGetChar(RTF_Info *info)
void
RTFSetEditStream
(
RTF_Info
*
info
,
ME_InStream
*
stream
)
void
RTFSetEditStream
(
RTF_Info
*
info
,
ME_InStream
*
stream
)
{
{
TRACE
(
"
\n
"
);
info
->
stream
=
stream
;
info
->
stream
=
stream
;
}
}
...
@@ -198,8 +194,6 @@ void RTFInit(RTF_Info *info)
...
@@ -198,8 +194,6 @@ void RTFInit(RTF_Info *info)
{
{
int
i
;
int
i
;
TRACE
(
"
\n
"
);
if
(
info
->
rtfTextBuf
==
NULL
)
/* initialize the text buffers */
if
(
info
->
rtfTextBuf
==
NULL
)
/* initialize the text buffers */
{
{
info
->
rtfTextBuf
=
RTFAlloc
(
rtfBufSiz
);
info
->
rtfTextBuf
=
RTFAlloc
(
rtfBufSiz
);
...
@@ -262,8 +256,6 @@ void RTFInit(RTF_Info *info)
...
@@ -262,8 +256,6 @@ void RTFInit(RTF_Info *info)
void
RTFSetInputName
(
RTF_Info
*
info
,
char
*
name
)
void
RTFSetInputName
(
RTF_Info
*
info
,
char
*
name
)
{
{
TRACE
(
"
\n
"
);
info
->
inputName
=
RTFStrSave
(
name
);
info
->
inputName
=
RTFStrSave
(
name
);
if
(
info
->
inputName
==
NULL
)
if
(
info
->
inputName
==
NULL
)
ERR
(
"RTFSetInputName: out of memory
\n
"
);
ERR
(
"RTFSetInputName: out of memory
\n
"
);
...
@@ -278,8 +270,6 @@ char *RTFGetInputName(RTF_Info *info)
...
@@ -278,8 +270,6 @@ char *RTFGetInputName(RTF_Info *info)
void
RTFSetOutputName
(
RTF_Info
*
info
,
char
*
name
)
void
RTFSetOutputName
(
RTF_Info
*
info
,
char
*
name
)
{
{
TRACE
(
"
\n
"
);
info
->
outputName
=
RTFStrSave
(
name
);
info
->
outputName
=
RTFStrSave
(
name
);
if
(
info
->
outputName
==
NULL
)
if
(
info
->
outputName
==
NULL
)
ERR
(
"RTFSetOutputName: out of memory
\n
"
);
ERR
(
"RTFSetOutputName: out of memory
\n
"
);
...
@@ -367,8 +357,6 @@ void RTFRouteToken(RTF_Info *info)
...
@@ -367,8 +357,6 @@ void RTFRouteToken(RTF_Info *info)
{
{
RTFFuncPtr
p
;
RTFFuncPtr
p
;
TRACE
(
"
\n
"
);
if
(
info
->
rtfClass
<
0
||
info
->
rtfClass
>=
rtfMaxClass
)
/* watchdog */
if
(
info
->
rtfClass
<
0
||
info
->
rtfClass
>=
rtfMaxClass
)
/* watchdog */
{
{
ERR
(
"Unknown class %d: %s (reader malfunction)
\n
"
,
ERR
(
"Unknown class %d: %s (reader malfunction)
\n
"
,
...
@@ -402,8 +390,6 @@ void RTFSkipGroup(RTF_Info *info)
...
@@ -402,8 +390,6 @@ void RTFSkipGroup(RTF_Info *info)
{
{
int
level
=
1
;
int
level
=
1
;
TRACE
(
"
\n
"
);
while
(
RTFGetToken
(
info
)
!=
rtfEOF
)
while
(
RTFGetToken
(
info
)
!=
rtfEOF
)
{
{
if
(
info
->
rtfClass
==
rtfGroup
)
if
(
info
->
rtfClass
==
rtfGroup
)
...
@@ -430,7 +416,6 @@ int RTFGetToken(RTF_Info *info)
...
@@ -430,7 +416,6 @@ int RTFGetToken(RTF_Info *info)
{
{
RTFFuncPtr
p
;
RTFFuncPtr
p
;
TRACE
(
"
\n
"
);
/* don't try to return anything once EOF is reached */
/* don't try to return anything once EOF is reached */
if
(
info
->
rtfClass
==
rtfEOF
)
{
if
(
info
->
rtfClass
==
rtfEOF
)
{
return
rtfEOF
;
return
rtfEOF
;
...
@@ -470,8 +455,6 @@ RTFFuncPtr RTFGetReadHook(RTF_Info *info)
...
@@ -470,8 +455,6 @@ RTFFuncPtr RTFGetReadHook(RTF_Info *info)
void
RTFUngetToken
(
RTF_Info
*
info
)
void
RTFUngetToken
(
RTF_Info
*
info
)
{
{
TRACE
(
"
\n
"
);
if
(
info
->
pushedClass
>=
0
)
/* there's already an ungotten token */
if
(
info
->
pushedClass
>=
0
)
/* there's already an ungotten token */
ERR
(
"cannot unget two tokens
\n
"
);
ERR
(
"cannot unget two tokens
\n
"
);
if
(
info
->
rtfClass
<
0
)
if
(
info
->
rtfClass
<
0
)
...
@@ -494,8 +477,6 @@ int RTFPeekToken(RTF_Info *info)
...
@@ -494,8 +477,6 @@ int RTFPeekToken(RTF_Info *info)
static
void
_RTFGetToken
(
RTF_Info
*
info
)
static
void
_RTFGetToken
(
RTF_Info
*
info
)
{
{
TRACE
(
"
\n
"
);
if
(
info
->
rtfFormat
==
SF_TEXT
)
if
(
info
->
rtfFormat
==
SF_TEXT
)
{
{
info
->
rtfMajor
=
GetChar
(
info
);
info
->
rtfMajor
=
GetChar
(
info
);
...
@@ -599,8 +580,6 @@ static void _RTFGetToken2(RTF_Info *info)
...
@@ -599,8 +580,6 @@ static void _RTFGetToken2(RTF_Info *info)
int
sign
;
int
sign
;
int
c
;
int
c
;
TRACE
(
"
\n
"
);
/* initialize token vars */
/* initialize token vars */
info
->
rtfClass
=
rtfUnknown
;
info
->
rtfClass
=
rtfUnknown
;
...
@@ -770,8 +749,6 @@ static int GetChar(RTF_Info *info)
...
@@ -770,8 +749,6 @@ static int GetChar(RTF_Info *info)
int
c
;
int
c
;
int
oldBumpLine
;
int
oldBumpLine
;
TRACE
(
"
\n
"
);
if
((
c
=
_RTFGetChar
(
info
))
!=
EOF
)
if
((
c
=
_RTFGetChar
(
info
))
!=
EOF
)
{
{
info
->
rtfTextBuf
[
info
->
rtfTextLen
++
]
=
c
;
info
->
rtfTextBuf
[
info
->
rtfTextLen
++
]
=
c
;
...
@@ -811,8 +788,6 @@ static int GetChar(RTF_Info *info)
...
@@ -811,8 +788,6 @@ static int GetChar(RTF_Info *info)
void
RTFSetToken
(
RTF_Info
*
info
,
int
class
,
int
major
,
int
minor
,
int
param
,
const
char
*
text
)
void
RTFSetToken
(
RTF_Info
*
info
,
int
class
,
int
major
,
int
minor
,
int
param
,
const
char
*
text
)
{
{
TRACE
(
"
\n
"
);
info
->
rtfClass
=
class
;
info
->
rtfClass
=
class
;
info
->
rtfMajor
=
major
;
info
->
rtfMajor
=
major
;
info
->
rtfMinor
=
minor
;
info
->
rtfMinor
=
minor
;
...
@@ -860,8 +835,6 @@ static void ReadFontTbl(RTF_Info *info)
...
@@ -860,8 +835,6 @@ static void ReadFontTbl(RTF_Info *info)
int
old
=
-
1
;
int
old
=
-
1
;
const
char
*
fn
=
"ReadFontTbl"
;
const
char
*
fn
=
"ReadFontTbl"
;
TRACE
(
"
\n
"
);
for
(;;)
for
(;;)
{
{
RTFGetToken
(
info
);
RTFGetToken
(
info
);
...
@@ -1041,8 +1014,6 @@ static void ReadColorTbl(RTF_Info *info)
...
@@ -1041,8 +1014,6 @@ static void ReadColorTbl(RTF_Info *info)
const
char
*
fn
=
"ReadColorTbl"
;
const
char
*
fn
=
"ReadColorTbl"
;
int
group_level
=
1
;
int
group_level
=
1
;
TRACE
(
"
\n
"
);
for
(;;)
for
(;;)
{
{
RTFGetToken
(
info
);
RTFGetToken
(
info
);
...
@@ -1100,8 +1071,6 @@ static void ReadStyleSheet(RTF_Info *info)
...
@@ -1100,8 +1071,6 @@ static void ReadStyleSheet(RTF_Info *info)
const
char
*
fn
=
"ReadStyleSheet"
;
const
char
*
fn
=
"ReadStyleSheet"
;
int
real_style
;
int
real_style
;
TRACE
(
"
\n
"
);
for
(;;)
for
(;;)
{
{
RTFGetToken
(
info
);
RTFGetToken
(
info
);
...
@@ -1346,8 +1315,6 @@ void RTFExpandStyle(RTF_Info *info, int n)
...
@@ -1346,8 +1315,6 @@ void RTFExpandStyle(RTF_Info *info, int n)
RTFStyle
*
s
;
RTFStyle
*
s
;
RTFStyleElt
*
se
;
RTFStyleElt
*
se
;
TRACE
(
"
\n
"
);
if
(
n
==
-
1
)
if
(
n
==
-
1
)
return
;
return
;
s
=
RTFGetStyle
(
info
,
n
);
s
=
RTFGetStyle
(
info
,
n
);
...
@@ -2365,7 +2332,6 @@ static void Lookup(RTF_Info *info, char *s)
...
@@ -2365,7 +2332,6 @@ static void Lookup(RTF_Info *info, char *s)
RTFHashTableEntry
*
entry
;
RTFHashTableEntry
*
entry
;
int
i
;
int
i
;
TRACE
(
"
\n
"
);
++
s
;
/* skip over the leading \ character */
++
s
;
/* skip over the leading \ character */
hash
=
Hash
(
s
);
hash
=
Hash
(
s
);
entry
=
&
rtfHashTable
[
hash
%
(
RTF_KEY_COUNT
*
2
)];
entry
=
&
rtfHashTable
[
hash
%
(
RTF_KEY_COUNT
*
2
)];
...
@@ -2498,8 +2464,6 @@ TextClass (RTF_Info *info)
...
@@ -2498,8 +2464,6 @@ TextClass (RTF_Info *info)
static
void
static
void
ControlClass
(
RTF_Info
*
info
)
ControlClass
(
RTF_Info
*
info
)
{
{
TRACE
(
"
\n
"
);
switch
(
info
->
rtfMajor
)
switch
(
info
->
rtfMajor
)
{
{
case
rtfCharAttr
:
case
rtfCharAttr
:
...
@@ -2581,7 +2545,6 @@ CharSet(RTF_Info *info)
...
@@ -2581,7 +2545,6 @@ CharSet(RTF_Info *info)
static
void
static
void
Destination
(
RTF_Info
*
info
)
Destination
(
RTF_Info
*
info
)
{
{
TRACE
(
"
\n
"
);
if
(
!
RTFGetDestinationCallback
(
info
,
info
->
rtfMinor
))
if
(
!
RTFGetDestinationCallback
(
info
,
info
->
rtfMinor
))
RTFSkipGroup
(
info
);
RTFSkipGroup
(
info
);
}
}
...
@@ -2614,9 +2577,6 @@ DocAttr(RTF_Info *info)
...
@@ -2614,9 +2577,6 @@ DocAttr(RTF_Info *info)
static
void
SpecialChar
(
RTF_Info
*
info
)
static
void
SpecialChar
(
RTF_Info
*
info
)
{
{
TRACE
(
"
\n
"
);
switch
(
info
->
rtfMinor
)
switch
(
info
->
rtfMinor
)
{
{
case
rtfOptDest
:
case
rtfOptDest
:
...
...
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