Project

General

Profile

Actions

Bug #413

closed

main() needs to return int

Added by pzb (Peter Bowen) over 15 years ago. Updated about 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
[ruby-core:18208]

Description

=begin
According to the C standard, main always needs to be declared to return an int and can take zero or two parameters. It can officially have two declarations:
int main(void)
int main(int, char **)

The attached patch adds the int return to places where it is missing and uses the more portable two parameter declaration for main. It is against the ruby_1_8_6 branch in svn.
=end


Files

ruby-1.8.6.p286_maindecl.patch (2.61 KB) ruby-1.8.6.p286_maindecl.patch pzb (Peter Bowen), 08/09/2008 04:36 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0