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
88065baf
Commit
88065baf
authored
Dec 02, 1998
by
Marcus Meissner
Committed by
Alexandre Julliard
Dec 02, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle atoms "# non number" (oracle client).
parent
82944517
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
atom.c
memory/atom.c
+23
-4
No files found.
memory/atom.c
View file @
88065baf
...
...
@@ -167,6 +167,23 @@ static WORD ATOM_Hash(
return
hash
%
entries
;
}
static
BOOL32
ATOM_IsIntAtom
(
LPCSTR
atomstr
,
WORD
*
atomid
)
{
LPSTR
xend
;
if
(
!
HIWORD
(
atomstr
))
{
*
atomid
=
LOWORD
(
atomstr
);
return
TRUE
;
}
if
(
atomstr
[
0
]
!=
'#'
)
return
FALSE
;
*
atomid
=
strtol
(
atomstr
+
1
,
&
xend
,
10
);
if
(
*
xend
)
{
FIXME
(
atom
,
"found atom named '%s'
\n
"
,
atomstr
);
return
FALSE
;
}
return
TRUE
;
}
/***********************************************************************
* ATOM_AddAtom
...
...
@@ -189,10 +206,12 @@ static ATOM ATOM_AddAtom(
ATOMENTRY
*
entryPtr
;
ATOMTABLE
*
table
;
int
len
,
ae_len
;
WORD
iatom
;
TRACE
(
atom
,
"0x%x, %s
\n
"
,
selector
,
str
);
if
(
str
[
0
]
==
'#'
)
return
atoi
(
&
str
[
1
]
);
/* Check for integer atom */
if
(
ATOM_IsIntAtom
(
str
,
&
iatom
))
return
iatom
;
if
((
len
=
strlen
(
str
))
>
MAX_ATOM_LEN
)
len
=
MAX_ATOM_LEN
;
if
(
!
(
table
=
ATOM_GetTable
(
selector
,
TRUE
)))
return
0
;
hash
=
ATOM_Hash
(
table
->
size
,
str
,
len
);
...
...
@@ -280,13 +299,13 @@ static ATOM ATOM_FindAtom(
LPCSTR
str
/* [in] Pointer to string to find */
)
{
ATOMTABLE
*
table
;
WORD
hash
;
WORD
hash
,
iatom
;
HANDLE16
entry
;
int
len
;
TRACE
(
atom
,
"%x, %s
\n
"
,
selector
,
str
);
if
(
str
[
0
]
==
'#'
)
return
atoi
(
&
str
[
1
]
);
/* Check for integer atom */
if
(
ATOM_IsIntAtom
(
str
,
&
iatom
))
return
iatom
;
if
((
len
=
strlen
(
str
))
>
255
)
len
=
255
;
if
(
!
(
table
=
ATOM_GetTable
(
selector
,
FALSE
)))
return
0
;
hash
=
ATOM_Hash
(
table
->
size
,
str
,
len
);
...
...
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