Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
8d5f67e6
Commit
8d5f67e6
authored
Jun 24, 2014
by
Santa Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a few const qualifier
parent
faa3c52a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
include/mruby/value.h
include/mruby/value.h
+1
-1
mrbgems/mruby-random/src/mt19937ar.c
mrbgems/mruby-random/src/mt19937ar.c
+2
-2
mrbgems/mruby-string-utf8/src/string.c
mrbgems/mruby-string-utf8/src/string.c
+1
-1
No files found.
include/mruby/value.h
View file @
8d5f67e6
...
...
@@ -91,7 +91,7 @@ typedef short mrb_sym;
# define PRIo64 "I64o"
# define PRIx64 "I64x"
# define PRIX64 "I64X"
static
unsigned
int
IEEE754_INFINITY_BITS_SINGLE
=
0x7F800000
;
static
const
unsigned
int
IEEE754_INFINITY_BITS_SINGLE
=
0x7F800000
;
# define INFINITY (*(float *)&IEEE754_INFINITY_BITS_SINGLE)
# define NAN ((float)(INFINITY - INFINITY))
# else
...
...
mrbgems/mruby-random/src/mt19937ar.c
View file @
8d5f67e6
...
...
@@ -32,7 +32,7 @@ void mrb_random_init_genrand(mt_state *t, unsigned long s)
unsigned
long
mrb_random_genrand_int32
(
mt_state
*
t
)
{
unsigned
long
y
;
static
unsigned
long
mag01
[
2
]
=
{
0x0UL
,
MATRIX_A
};
static
const
unsigned
long
mag01
[
2
]
=
{
0x0UL
,
MATRIX_A
};
/* mag01[x] = x * MATRIX_A for x=0,1 */
if
(
t
->
mti
>=
N
)
{
/* generate N words at one time */
...
...
@@ -126,7 +126,7 @@ void init_by_array(unsigned long init_key[], int key_length)
unsigned long genrand_int32(void)
{
unsigned long y;
static unsigned long mag01[2]={0x0UL, MATRIX_A};
static
const
unsigned long mag01[2]={0x0UL, MATRIX_A};
/* mag01[x] = x * MATRIX_A for x=0,1 */
if (mti >= N) { /* generate N words at one time */
...
...
mrbgems/mruby-string-utf8/src/string.c
View file @
8d5f67e6
...
...
@@ -19,7 +19,7 @@ static const char utf8len_codepage[256] =
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
4
,
4
,
4
,
4
,
4
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
};
static
char
utf8len_codepage_zero
[
256
]
=
static
c
onst
c
har
utf8len_codepage_zero
[
256
]
=
{
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
...
...
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