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

Use pass-by-ref return_value to return error #33

Merged
merged 2 commits into from
Feb 1, 2015
Merged

Conversation

c9s
Copy link
Contributor

@c9s c9s commented Jan 31, 2015

Summary:

  • Should avoid using global variable to store the error code.
  • This change let jsmin() function follow the same prototype as the php
    built-in function system()

Side Effect: No

Summary:

Should avoid using global variable to store the error code.

This change let jsmin() function follow the same prototype as the php
built-in function system()
@c9s
Copy link
Contributor Author

c9s commented Jan 31, 2015

I kept the original global error code statement in order not to break the compatibility.

P.S. the return value parameter is optional.

sqmk added a commit that referenced this pull request Feb 1, 2015
Use pass-by-ref return_value to return error
@sqmk sqmk merged commit c3ae821 into sqmk:master Feb 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants