• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OSGeo / proj.4 / 1480
86%

Build:
DEFAULT BRANCH: master
Ran 07 Feb 2018 12:16PM UTC
Jobs 1
Files 194
Run time 17s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1480

push

travis-ci

web-flow
Shrink PJ_XXX_INFO structs, but keep same syntax. (#775)

* Shrink PJ_XXX_INFO structs, but keep same syntax.

A number of the fixed length strings in the INFO structs are simply
reflections of material that already exists as static strings at a
number of places in the library (or in the case of PJ_INFO, really
*should* exist, and now is implemented).

This PR replaces these cases of constant length strings with const
char pointers. The usage syntax is unchanged, and so is the nice
property of having the return value allocated on the stack, and
hence not requiring explicit memory management by the caller.

proj_info now only does setup once - and the searchpath entry of
PJ_INFO is not arbitrarily truncated at 512 bytes. Repeated calls
simply returns a copy of already prepared material.

The id, description and definition entries of PJ_PROJ_INFO are now
also guaranteed to hold the entire text of the corresponding static
string, by being represented by a const char pointer to that actual
static string.

PJ_GRID_INFO and PJ_INIT_INFO (i.e. the two smallest INFO structs)
are unchanged.

* Eliminate pj_strlcpy - not needed anymore: Remining calls could
  safely be replaced by strncpy.

* Extend PROJ_INFO with paths from pj_set_searchpath.
  NOTE: Need to call pj_set_searchpath before first call to proj_info

Huge thanks to Kristian Evers and Even Rouault for comments, debugging and advice.

11464 of 15381 relevant lines covered (74.53%)

15014.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1480.1 (BUILD_NAME=linux_gcc DETAILS="linux, gcc") 07 Feb 2018 12:16PM UTC 0
74.53
Travis Job 1480.1
Source Files on build 1480
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1480
  • 4f00f09f on github
  • Prev Build on master (#1473)
  • Next Build on master (#1482)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc