1
0
Fork 0
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:
Nobuyoshi Nakada 2021-10-27 10:16:52 +09:00
parent e5319dc985
commit 33844f3096
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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) {