Skip to content

Commit

Permalink
hds: v5 does not use const as much
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Oct 31, 2014
1 parent 3245c4b commit 617d4e3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
30 changes: 15 additions & 15 deletions libraries/hds/hds.h
Expand Up @@ -356,72 +356,72 @@ datLen(const HDSLoc *locator, size_t *len, int *status);
/*===========================*/

int
datMap(const HDSLoc *locator, const char *type_str, const char *mode_str, int ndim, const hdsdim dims[], void **pntr, int *status);
datMap(HDSLoc *locator, const char *type_str, const char *mode_str, int ndim, const hdsdim dims[], void **pntr, int *status);

/*==================================*/
/* datMapC - Map _CHAR primitive(s) */
/*==================================*/

int
datMapC(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], unsigned char **pntr, int *status);
datMapC(HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], unsigned char **pntr, int *status);

/*====================================*/
/* datMapD - Map _DOUBLE primitive(s) */
/*====================================*/

int
datMapD(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], double **pntr, int *status);
datMapD(HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], double **pntr, int *status);

/*=====================================*/
/* datMapI - Map _INTEGER primitive(s) */
/*=====================================*/

int
datMapI(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], int **pntr, int *status);
datMapI(HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], int **pntr, int *status);

/*=====================================*/
/* datMapK - Map _INT64 primitive(s) */
/*=====================================*/

int
datMapK(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], int **pntr, int *status);
datMapK(HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], int **pntr, int *status);

/*=====================================*/
/* datMapL - Map _LOGICAL primitive(s) */
/*=====================================*/

int
datMapL(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], hdsbool_t **pntr, int *status);
datMapL(HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], hdsbool_t **pntr, int *status);

/*==================================*/
/* datMapR - Map _REAL primitive(s) */
/*==================================*/

int
datMapR(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], float **pntr, int *status);
datMapR(HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], float **pntr, int *status);


/*========================================*/
/* datMapN - Map primitive as N-dim array */
/*========================================*/

int
datMapN(const HDSLoc *locator, const char *type_str, const char *mode_str, int ndim, void **pntr, hdsdim dims[], int *status);
datMapN(HDSLoc *locator, const char *type_str, const char *mode_str, int ndim, void **pntr, hdsdim dims[], int *status);

/*==================================*/
/* datMapV - Map vectorized primitive(s) */
/*==================================*/

int
datMapV(const HDSLoc *locator, const char *type_str, const char *mode_str, void **pntr, size_t *actval, int *status);
datMapV(HDSLoc *locator, const char *type_str, const char *mode_str, void **pntr, size_t *actval, int *status);


/*==================================*/
/* datMould - Alter shape of object */
/*==================================*/

int
datMould(const HDSLoc *locator, int ndim, const hdsdim dims[], int *status);
datMould(HDSLoc *locator, int ndim, const hdsdim dims[], int *status);

/*=======================*/
/* datMove - Move object */
Expand Down Expand Up @@ -859,7 +859,7 @@ datRefct(const HDSLoc *locator, int *refct, int *status);
/*=============================*/

int
datRenam(const HDSLoc *locator, const char *name_str, int *status);
datRenam(HDSLoc *locator, const char *name_str, int *status);

/*================================*/
/* datReset - Reset object state */
Expand Down Expand Up @@ -936,7 +936,7 @@ datType(const HDSLoc *locator, char type_str[DAT__SZTYP + 1], int *status);
/*=========================*/

int
datUnmap(const HDSLoc *locator, int *status);
datUnmap(HDSLoc *locator, int *status);

/*==================================*/
/* datValid - Enquire locator valid */
Expand Down Expand Up @@ -977,7 +977,7 @@ hdsErase(HDSLoc **locator, int *status);
/*===============================================================*/

int
hdsEwild(int *iwld, int *status);
hdsEwild(HDSWild *iwld, int *status);

/*================================*/
/* hdsFlush - Flush locator group */
Expand Down Expand Up @@ -1019,7 +1019,7 @@ hdsInfoI(const HDSLoc* locator, const char *topic_str, const char *extra, int *r
/*=================================*/

int
hdsLink(const HDSLoc *locator, const char *group_str, int *status);
hdsLink(HDSLoc *locator, const char *group_str, int *status);

/*================================*/
/* hdsLock - Lock container file */
Expand Down Expand Up @@ -1082,7 +1082,7 @@ hdsTune(const char *param_str, int value, int *status);
/*=================================================================*/

int
hdsWild(const char *fspec, const char *mode, int *iwld, HDSLoc **locator, int *status);
hdsWild(const char *fspec, const char *mode, HDSWild **iwld, HDSLoc **locator, int *status);

/*=================================================================*/
/* Deprecated routines! */
Expand Down
30 changes: 15 additions & 15 deletions libraries/hds/hds_select.c
Expand Up @@ -988,7 +988,7 @@ datLen(const HDSLoc *locator, size_t *len, int *status) {
/*===========================*/

int
datMap(const HDSLoc *locator, const char *type_str, const char *mode_str, int ndim, const hdsdim dims[], void **pntr, int *status) {
datMap(HDSLoc *locator, const char *type_str, const char *mode_str, int ndim, const hdsdim dims[], void **pntr, int *status) {

int retval = 0;
int instat = *status;
Expand All @@ -1008,7 +1008,7 @@ datMap(const HDSLoc *locator, const char *type_str, const char *mode_str, int nd
/*==================================*/

int
datMapC(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], unsigned char **pntr, int *status) {
datMapC(HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], unsigned char **pntr, int *status) {

int retval = 0;
int instat = *status;
Expand All @@ -1028,7 +1028,7 @@ datMapC(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims
/*====================================*/

int
datMapD(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], double **pntr, int *status) {
datMapD(HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], double **pntr, int *status) {

int retval = 0;
int instat = *status;
Expand All @@ -1048,7 +1048,7 @@ datMapD(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims
/*=====================================*/

int
datMapI(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], int **pntr, int *status) {
datMapI(HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], int **pntr, int *status) {

int retval = 0;
int instat = *status;
Expand All @@ -1068,7 +1068,7 @@ datMapI(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims
/*=====================================*/

int
datMapK(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], int **pntr, int *status) {
datMapK(HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], int **pntr, int *status) {

int retval = 0;
int instat = *status;
Expand All @@ -1088,7 +1088,7 @@ datMapK(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims
/*=====================================*/

int
datMapL(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], hdsbool_t **pntr, int *status) {
datMapL(HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], hdsbool_t **pntr, int *status) {

int retval = 0;
int instat = *status;
Expand All @@ -1108,7 +1108,7 @@ datMapL(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims
/*==================================*/

int
datMapR(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], float **pntr, int *status) {
datMapR(HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims[], float **pntr, int *status) {

int retval = 0;
int instat = *status;
Expand All @@ -1129,7 +1129,7 @@ datMapR(const HDSLoc *locator, const char *mode_str, int ndim, const hdsdim dims
/*========================================*/

int
datMapN(const HDSLoc *locator, const char *type_str, const char *mode_str, int ndim, void **pntr, hdsdim dims[], int *status) {
datMapN(HDSLoc *locator, const char *type_str, const char *mode_str, int ndim, void **pntr, hdsdim dims[], int *status) {

int retval = 0;
int instat = *status;
Expand All @@ -1149,7 +1149,7 @@ datMapN(const HDSLoc *locator, const char *type_str, const char *mode_str, int n
/*==================================*/

int
datMapV(const HDSLoc *locator, const char *type_str, const char *mode_str, void **pntr, size_t *actval, int *status) {
datMapV(HDSLoc *locator, const char *type_str, const char *mode_str, void **pntr, size_t *actval, int *status) {

int retval = 0;
int instat = *status;
Expand All @@ -1170,7 +1170,7 @@ datMapV(const HDSLoc *locator, const char *type_str, const char *mode_str, void
/*==================================*/

int
datMould(const HDSLoc *locator, int ndim, const hdsdim dims[], int *status) {
datMould(HDSLoc *locator, int ndim, const hdsdim dims[], int *status) {

int retval = 0;
int instat = *status;
Expand Down Expand Up @@ -2428,7 +2428,7 @@ datRefct(const HDSLoc *locator, int *refct, int *status) {
/*=============================*/

int
datRenam(const HDSLoc *locator, const char *name_str, int *status) {
datRenam(HDSLoc *locator, const char *name_str, int *status) {

int retval = 0;
int instat = *status;
Expand Down Expand Up @@ -2643,7 +2643,7 @@ datType(const HDSLoc *locator, char type_str[DAT__SZTYP + 1], int *status) {
/*=========================*/

int
datUnmap(const HDSLoc *locator, int *status) {
datUnmap(HDSLoc *locator, int *status) {

int retval = 0;
int instat = *status;
Expand Down Expand Up @@ -2749,7 +2749,7 @@ hdsErase(HDSLoc **locator, int *status) {
/*===============================================================*/

int
hdsEwild(int *iwld, int *status) {
hdsEwild(HDSWild *iwld, int *status) {
/* Requires special code */
printf("Aborting. Special code required in: %s\n", "hdsEwild(iwld, status);");
abort();
Expand Down Expand Up @@ -2863,7 +2863,7 @@ hdsInfoI(const HDSLoc* locator, const char *topic_str, const char *extra, int *r
/*=================================*/

int
hdsLink(const HDSLoc *locator, const char *group_str, int *status) {
hdsLink(HDSLoc *locator, const char *group_str, int *status) {

int retval = 0;
int instat = *status;
Expand Down Expand Up @@ -3016,7 +3016,7 @@ hdsTune(const char *param_str, int value, int *status) {
/*=================================================================*/

int
hdsWild(const char *fspec, const char *mode, int *iwld, HDSLoc **locator, int *status) {
hdsWild(const char *fspec, const char *mode, HDSWild **iwld, HDSLoc **locator, int *status) {
/* Requires special code */
printf("Aborting. Special code required in: %s\n", "hdsWild(fspec, mode, iwld, locator, status);");
abort();
Expand Down

0 comments on commit 617d4e3

Please sign in to comment.