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
0d8737c1
Commit
0d8737c1
authored
Jan 02, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1635 from cremno/cpp-conditionals
remove various preprocessor conditionals
parents
d6a0308a
18433731
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
34 deletions
+4
-34
mrbgems/mruby-sprintf/src/sprintf.c
mrbgems/mruby-sprintf/src/sprintf.c
+0
-4
src/array.c
src/array.c
+1
-6
src/gc.c
src/gc.c
+1
-6
src/load.c
src/load.c
+1
-6
src/numeric.c
src/numeric.c
+0
-6
src/string.c
src/string.c
+1
-6
No files found.
mrbgems/mruby-sprintf/src/sprintf.c
View file @
0d8737c1
...
@@ -15,10 +15,6 @@
...
@@ -15,10 +15,6 @@
#include <math.h>
#include <math.h>
#include <ctype.h>
#include <ctype.h>
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif
#define BIT_DIGITS(N) (((N)*146)/485 + 1)
/* log2(10) =~ 146/485 */
#define BIT_DIGITS(N) (((N)*146)/485 + 1)
/* log2(10) =~ 146/485 */
#define BITSPERDIG (sizeof(mrb_int)*CHAR_BIT)
#define BITSPERDIG (sizeof(mrb_int)*CHAR_BIT)
#define EXTENDSIGN(n, l) (((~0 << (n)) >> (((n)*(l)) % BITSPERDIG)) & ~(~0 << (n)))
#define EXTENDSIGN(n, l) (((~0 << (n)) >> (((n)*(l)) % BITSPERDIG)) & ~(~0 << (n)))
...
...
src/array.c
View file @
0d8737c1
...
@@ -4,12 +4,7 @@
...
@@ -4,12 +4,7 @@
** See Copyright Notice in mruby.h
** See Copyright Notice in mruby.h
*/
*/
#ifndef SIZE_MAX
#include <limits.h>
/* Some versions of VC++
* has SIZE_MAX in stdint.h
*/
# include <limits.h>
#endif
#include "mruby.h"
#include "mruby.h"
#include "mruby/array.h"
#include "mruby/array.h"
#include "mruby/class.h"
#include "mruby/class.h"
...
...
src/gc.c
View file @
0d8737c1
...
@@ -4,12 +4,7 @@
...
@@ -4,12 +4,7 @@
** See Copyright Notice in mruby.h
** See Copyright Notice in mruby.h
*/
*/
#ifndef SIZE_MAX
#include <limits.h>
/* Some versions of VC++
* has SIZE_MAX in stdint.h
*/
# include <limits.h>
#endif
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
#include "mruby.h"
#include "mruby.h"
...
...
src/load.c
View file @
0d8737c1
...
@@ -4,12 +4,7 @@
...
@@ -4,12 +4,7 @@
** See Copyright Notice in mruby.h
** See Copyright Notice in mruby.h
*/
*/
#ifndef SIZE_MAX
#include <limits.h>
/* Some versions of VC++
* has SIZE_MAX in stdint.h
*/
# include <limits.h>
#endif
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include "mruby/dump.h"
#include "mruby/dump.h"
...
...
src/numeric.c
View file @
0d8737c1
...
@@ -5,12 +5,6 @@
...
@@ -5,12 +5,6 @@
*/
*/
#include <float.h>
#include <float.h>
#if defined(__FreeBSD__) && __FreeBSD__ < 4
# include <floatingpoint.h>
#endif
#ifdef HAVE_IEEEFP_H
# include <ieeefp.h>
#endif
#include <limits.h>
#include <limits.h>
#include <math.h>
#include <math.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
src/string.c
View file @
0d8737c1
...
@@ -5,12 +5,7 @@
...
@@ -5,12 +5,7 @@
*/
*/
#include <ctype.h>
#include <ctype.h>
#ifndef SIZE_MAX
#include <limits.h>
/* Some versions of VC++
* has SIZE_MAX in stdint.h
*/
# include <limits.h>
#endif
#include <stddef.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.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