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

Remove some gotos. #1486

Merged
merged 2 commits into from Dec 20, 2014
Merged

Remove some gotos. #1486

merged 2 commits into from Dec 20, 2014

Conversation

rohit-n
Copy link
Member

@rohit-n rohit-n commented Nov 3, 2014

No description provided.


if (finalise)
{
if (info_ptr != nullptr) png_free_data(png_ptr, info_ptr, PNG_FREE_ALL, -1);

This comment was marked as off-topic.

@magcius
Copy link
Member

magcius commented Nov 3, 2014

What's wrong with the gotos? I think the code is clearer and better with them.

@@ -322,7 +322,7 @@ bool Copy(const std::string &srcFilename, const std::string &destFilename)
char buffer[BSIZE];

// Open input file
FILE *input = fopen(srcFilename.c_str(), "rb");

This comment was marked as off-topic.

@rohit-n
Copy link
Member Author

rohit-n commented Nov 4, 2014

@magcius Maybe the VideoCommon commit complicates the code too much, but I think the FileUtil changes are good.

}
}

// write output
int wnum = fwrite(buffer, sizeof(char), rnum, output);
int wnum = fwrite(buffer, sizeof(char), rnum, output.GetHandle());

This comment was marked as off-topic.

@Stevoisiak
Copy link
Contributor

@dolphin-emu-bot rebuild

@Tilka
Copy link
Member

Tilka commented Nov 17, 2014

lgtm, if you remove the VideoCommon commit.

@dolphin-emu-bot rebuild

@PatrickFerry
Copy link
Contributor

Update on this PR ??

@Tilka
Copy link
Member

Tilka commented Dec 3, 2014

@dolphin-emu-bot rebuild

delroth added a commit that referenced this pull request Dec 20, 2014
@delroth delroth merged commit dad7911 into dolphin-emu:master Dec 20, 2014
@rohit-n rohit-n deleted the goto branch December 20, 2014 21:19
@feilen feilen mentioned this pull request Dec 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
8 participants