aboutsummaryrefslogtreecommitdiff
path: root/docs/source/development/reference
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/development/reference')
-rw-r--r--docs/source/development/reference/datatypes.rst46
1 files changed, 23 insertions, 23 deletions
diff --git a/docs/source/development/reference/datatypes.rst b/docs/source/development/reference/datatypes.rst
index 2a335a15..5c6fc799 100644
--- a/docs/source/development/reference/datatypes.rst
+++ b/docs/source/development/reference/datatypes.rst
@@ -472,12 +472,12 @@ List structures
.. code-block:: C
struct PJ_OPERATIONS {
- char *id; /* operation keyword */
- PJ *(*proj)(PJ *); /* operation entry point */
- char * const *descr; /* description text */
+ const char *id; /* operation keyword */
+ PJ *(*proj)(PJ *); /* operation entry point */
+ char * const *descr; /* description text */
};
- .. c:member:: char *id
+ .. c:member:: const char *id
Operation keyword.
@@ -497,25 +497,25 @@ List structures
.. code-block:: C
struct PJ_ELLPS {
- char *id;
- char *major;
- char *ell;
- char *name;
+ const char *id;
+ const char *major;
+ const char *ell;
+ const char *name;
};
- .. c:member:: char *id
+ .. c:member:: const char *id
Keyword name of the ellipsoid.
- .. c:member:: char *major
+ .. c:member:: const char *major
Semi-major axis of the ellipsoid, or radius in case of a sphere.
- .. c:member:: char *ell
+ .. c:member:: const char *ell
Elliptical parameter, e.g. `rf=298.257` or `b=6356772.2`.
- .. c:member:: char *name
+ .. c:member:: const char *name
Name of the ellipsoid
@@ -526,21 +526,21 @@ List structures
.. code-block:: C
struct PJ_UNITS {
- char *id; /* units keyword */
- char *to_meter; /* multiply by value to get meters */
- char *name; /* comments */
- double factor; /* to_meter factor in actual numbers */
+ const char *id; /* units keyword */
+ const char *to_meter; /* multiply by value to get meters */
+ const char *name; /* comments */
+ double factor; /* to_meter factor in actual numbers */
};
- .. c:member:: char *id
+ .. c:member:: const char *id
Keyword for the unit.
- .. c:member:: char *to_meter
+ .. c:member:: const char *to_meter
Text representation of the factor that converts a given unit to meters
- .. c:member:: char *name
+ .. c:member:: const char *name
Name of the unit.
@@ -555,15 +555,15 @@ List structures
.. code-block:: C
struct PJ_PRIME_MERIDIANS {
- char *id;
- char *defn;
+ const char *id;
+ const char *defn;
};
- .. c:member:: char *id
+ .. c:member:: const char *id
Keyword for the prime meridian
- .. c:member:: char *def
+ .. c:member:: const char *def
Offset from Greenwich in DMS format.