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

Minor cleanup of pj_phi2.c #973

Merged
merged 3 commits into from May 5, 2018
Merged

Minor cleanup of pj_phi2.c #973

merged 3 commits into from May 5, 2018

Conversation

schwehr
Copy link
Member

@schwehr schwehr commented May 4, 2018

  • tabs -> spaces
  • IWYU
  • #define -> static const typed
  • Combine definition and initialization
  • Define one var per statement
  • Use the defined symbol rather than embedding bare literals
    -18 -> PJD_ERR_NON_CON_INV_PHI2

Subset of fixes discussed in #971

- tabs -> spaces
- IWYU
- #define -> static const typed
- Combine definition and initialization
- Define one var per statement
- Use the defined symbol rather than embedding bare literals
  -18 -> PJD_ERR_NON_CON_INV_PHI2

Subset of fixes discussed in OSGeo#971
error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
@kbevers
Copy link
Member

kbevers commented May 5, 2018

Looks good to me. I think it would be nice if you added the descriptive comment Charles suggested in the previous PR. Or something to that effect if it doesn't fit a 100% in this less radically changed version of the code.

@schwehr
Copy link
Member Author

schwehr commented May 5, 2018

kbevers@: Docs added

@kbevers
Copy link
Member

kbevers commented May 5, 2018

Thanks!

@kbevers kbevers merged commit 6605ac6 into OSGeo:master May 5, 2018
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.

None yet

2 participants