Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
29aa3ffb
Commit
29aa3ffb
authored
Jul 03, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move Structrnd to runtime.h
R=ken OCL=31125 CL=31125
parent
265674fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
chan.c
src/pkg/runtime/chan.c
+0
-4
hashmap.c
src/pkg/runtime/hashmap.c
+0
-4
runtime.h
src/pkg/runtime/runtime.h
+5
-0
No files found.
src/pkg/runtime/chan.c
View file @
29aa3ffb
...
...
@@ -88,10 +88,6 @@ static uint32 gcd(uint32, uint32);
static
uint32
fastrand1
(
void
);
static
uint32
fastrand2
(
void
);
enum
{
Structrnd
=
sizeof
(
uintptr
)
};
// newchan(elemsize uint32, elemalg uint32, hint uint32) (hchan *chan any);
void
sys
·
newchan
(
uint32
elemsize
,
uint32
elemalg
,
uint32
hint
,
...
...
src/pkg/runtime/hashmap.c
View file @
29aa3ffb
...
...
@@ -665,10 +665,6 @@ donothing(uint32 s, void *a, void *b)
typedef
struct
hash
Hmap
;
static
int32
debug
=
0
;
enum
{
Structrnd
=
sizeof
(
uintptr
)
};
// newmap(keysize uint32, valsize uint32,
// keyalg uint32, valalg uint32,
// hint uint32) (hmap *map[any]any);
...
...
src/pkg/runtime/runtime.h
View file @
29aa3ffb
...
...
@@ -258,6 +258,11 @@ enum
Amax
};
enum
{
Structrnd
=
sizeof
(
uintptr
)
};
/*
* deferred subroutine calls
*/
...
...
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