Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cgo fails with empty function parameter lists #162

Closed
gopherbot opened this issue Nov 14, 2009 · 3 comments
Closed

cgo fails with empty function parameter lists #162

gopherbot opened this issue Nov 14, 2009 · 3 comments

Comments

@gopherbot
Copy link
Contributor

by Ostsol:

What steps will reproduce the problem?

Remove void from the parameter list of the function definded on line 19 of 
$GOROOT/misc/cgo/stdio/file.go.  This changes the line to read:

void fflushstdout() { fflush(stdout); }

What is the expected output? What do you see instead?

cgo should recognise the empty parameter list, but instead reports a fatal 
error: 'unexpected type: ...'.

What is your $GOOS?  $GOARCH?

linux AMD64

Which revision are you sync'ed to?  (hg log -l 1)

changeset:   4018:bbc290c53f85
tag:         tip
user:        Kai Backman <kaib@golang.org>
date:        Thu Nov 12 16:12:28 2009 -0800
summary:     fix style nit ignored in previous cl
@rsc
Copy link
Contributor

rsc commented Nov 14, 2009

Comment 1:

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Nov 15, 2009

Comment 2:

Owner changed to r...@golang.org.

@rsc
Copy link
Contributor

rsc commented Nov 24, 2009

Comment 3:

This issue was closed by revision a9d0da7.

Status changed to Fixed.

Merged into issue #-.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants