mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Prefer ANSI-style prototypes over old K&R-style definitions
This commit is contained in:
parent
e5319dc985
commit
33844f3096
2 changed files with 3 additions and 3 deletions
|
@ -140,7 +140,7 @@ char *nl_langinfo(nl_item item)
|
||||||
|
|
||||||
#ifdef TEST
|
#ifdef TEST
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
int main()
|
int main(void)
|
||||||
{
|
{
|
||||||
printf("%s\n", nl_langinfo(CODESET));
|
printf("%s\n", nl_langinfo(CODESET));
|
||||||
return 0;
|
return 0;
|
||||||
|
|
4
thread.c
4
thread.c
|
@ -5751,7 +5751,7 @@ rb_set_coverages(VALUE coverages, int mode, VALUE me2counter)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
rb_resume_coverages()
|
rb_resume_coverages(void)
|
||||||
{
|
{
|
||||||
int mode = GET_VM()->coverage_mode;
|
int mode = GET_VM()->coverage_mode;
|
||||||
VALUE me2counter = GET_VM()->me2counter;
|
VALUE me2counter = GET_VM()->me2counter;
|
||||||
|
@ -5765,7 +5765,7 @@ rb_resume_coverages()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
rb_suspend_coverages()
|
rb_suspend_coverages(void)
|
||||||
{
|
{
|
||||||
rb_remove_event_hook((rb_event_hook_func_t) update_line_coverage);
|
rb_remove_event_hook((rb_event_hook_func_t) update_line_coverage);
|
||||||
if (GET_VM()->coverage_mode & COVERAGE_TARGET_BRANCHES) {
|
if (GET_VM()->coverage_mode & COVERAGE_TARGET_BRANCHES) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue