Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
737fa07d
Commit
737fa07d
authored
Nov 15, 1998
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small atom fixes.
parent
f1ac4ef7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
40 deletions
+28
-40
atom.h
include/atom.h
+0
-28
global.h
include/global.h
+3
-0
main.c
loader/main.c
+0
-1
atom.c
memory/atom.c
+24
-8
ddeml.c
misc/ddeml.c
+1
-1
class.c
windows/class.c
+0
-1
message.c
windows/message.c
+0
-1
No files found.
include/atom.h
deleted
100644 → 0
View file @
f1ac4ef7
/*
* Atom table definitions
*
* Copyright 1993 Alexandre Julliard
*/
#ifndef __WINE_ATOM_H
#define __WINE_ATOM_H
#include "windows.h"
extern
BOOL32
ATOM_Init
(
WORD
globalTableSel
);
typedef
struct
{
HANDLE16
next
;
WORD
refCount
;
BYTE
length
;
BYTE
str
[
1
];
}
ATOMENTRY
;
typedef
struct
{
WORD
size
;
HANDLE16
entries
[
1
];
}
ATOMTABLE
;
#endif
/* __WINE_ATOM_H */
include/global.h
View file @
737fa07d
...
...
@@ -39,4 +39,7 @@ typedef BOOL32 (*HANDLERPROC)(LPVOID, LPVOID);
extern
BOOL32
VIRTUAL_SetFaultHandler
(
LPVOID
addr
,
HANDLERPROC
proc
,
LPVOID
arg
);
extern
BOOL32
VIRTUAL_HandleFault
(
LPVOID
addr
);
/* memory/atom.c */
extern
BOOL32
ATOM_Init
(
WORD
globalTableSel
);
#endif
/* __WINE_GLOBAL_H */
loader/main.c
View file @
737fa07d
...
...
@@ -17,7 +17,6 @@
#include "menu.h"
#include "message.h"
#include "multimedia.h"
#include "atom.h"
#include "dialog.h"
#include "drive.h"
#include "queue.h"
...
...
memory/atom.c
View file @
737fa07d
...
...
@@ -16,7 +16,6 @@
#include <string.h>
#include <ctype.h>
#include "atom.h"
#include "instance.h"
#include "ldt.h"
#include "stackframe.h"
...
...
@@ -39,6 +38,20 @@
#define GET_ATOM_TABLE(sel) ((ATOMTABLE*)PTR_SEG_OFF_TO_LIN(sel, \
((INSTANCEDATA*)PTR_SEG_OFF_TO_LIN(sel,0))->atomtable))
typedef
struct
{
HANDLE16
next
;
WORD
refCount
;
BYTE
length
;
BYTE
str
[
1
];
}
ATOMENTRY
;
typedef
struct
{
WORD
size
;
HANDLE16
entries
[
1
];
}
ATOMTABLE
;
static
WORD
ATOM_GlobalTable
=
0
;
...
...
@@ -107,16 +120,18 @@ BOOL32 ATOM_Init( WORD globalTableSel )
*/
static
ATOMTABLE
*
ATOM_GetTable
(
WORD
selector
,
/* [in] Segment */
BOOL32
create
/* [in] Create */
)
{
BOOL32
create
/* [in] Create */
)
{
INSTANCEDATA
*
ptr
=
(
INSTANCEDATA
*
)
PTR_SEG_OFF_TO_LIN
(
selector
,
0
);
if
(
!
ptr
->
atomtable
)
if
(
ptr
->
atomtable
)
{
if
(
!
create
)
return
NULL
;
if
(
!
ATOM_InitTable
(
selector
,
DEFAULT_ATOMTABLE_SIZE
))
return
NULL
;
/* Reload ptr in case it moved in linear memory */
ptr
=
(
INSTANCEDATA
*
)
PTR_SEG_OFF_TO_LIN
(
selector
,
0
);
ATOMTABLE
*
table
=
(
ATOMTABLE
*
)((
char
*
)
ptr
+
ptr
->
atomtable
);
if
(
table
->
size
)
return
table
;
}
if
(
!
create
)
return
NULL
;
if
(
!
ATOM_InitTable
(
selector
,
DEFAULT_ATOMTABLE_SIZE
))
return
NULL
;
/* Reload ptr in case it moved in linear memory */
ptr
=
(
INSTANCEDATA
*
)
PTR_SEG_OFF_TO_LIN
(
selector
,
0
);
return
(
ATOMTABLE
*
)((
char
*
)
ptr
+
ptr
->
atomtable
);
}
...
...
@@ -339,6 +354,7 @@ static UINT32 ATOM_GetAtomName(
*/
WORD
WINAPI
InitAtomTable16
(
WORD
entries
)
{
if
(
!
entries
)
entries
=
DEFAULT_ATOMTABLE_SIZE
;
/* sanity check */
return
ATOM_InitTable
(
CURRENT_DS
,
entries
);
}
...
...
misc/ddeml.c
View file @
737fa07d
...
...
@@ -9,7 +9,7 @@
#include "ddeml.h"
#include "debug.h"
#include "
atom
.h"
#include "
windows
.h"
/* FIXME: What are these values? */
#define DMLERR_NO_ERROR 0
...
...
windows/class.c
View file @
737fa07d
...
...
@@ -18,7 +18,6 @@
#include "heap.h"
#include "win.h"
#include "dce.h"
#include "atom.h"
#include "ldt.h"
#include "toolhelp.h"
#include "winproc.h"
...
...
windows/message.c
View file @
737fa07d
...
...
@@ -19,7 +19,6 @@
#include "input.h"
#include "spy.h"
#include "winpos.h"
#include "atom.h"
#include "dde.h"
#include "queue.h"
#include "winproc.h"
...
...
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