Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
32204535
Commit
32204535
authored
Apr 10, 2014
by
Thomas Jahns
🤸
Browse files
Add const declarations for resource list operation tables.
parent
9cbdcdda
Changes
10
Hide whitespace changes
Inline
Side-by-side
src/cdi_int.c
View file @
32204535
...
...
@@ -81,10 +81,13 @@ static int streamGetPackSize ( void * streamptr, void *context);
static
void
streamPack
(
void
*
streamptr
,
void
*
buff
,
int
size
,
int
*
position
,
void
*
context
);
static
int
streamTxCode
(
void
);
resOps
streamOps
=
{
streamCompareP
,
streamDestroyP
,
streamPrintP
,
streamGetPackSize
,
streamPack
,
streamTxCode
const
resOps
streamOps
=
{
streamCompareP
,
streamDestroyP
,
streamPrintP
,
streamGetPackSize
,
streamPack
,
streamTxCode
};
long
cdiGetenvInt
(
char
*
envName
)
...
...
src/cdi_int.h
View file @
32204535
...
...
@@ -372,7 +372,7 @@ void cdiStreamSync_(stream_t *streamptr);
char
*
cdiUnitNamePtr
(
int
cdi_unit
);
extern
resOps
streamOps
;
extern
const
resOps
streamOps
;
#endif
/* _CDI_INT_H */
/*
...
...
src/grid.c
View file @
32204535
...
...
@@ -56,8 +56,13 @@ static void gridPack ( void * gridptr, void * buff, int size,
int
*
position
,
void
*
context
);
static
int
gridTxCode
(
void
);
static
resOps
gridOps
=
{
gridCompareP
,
gridDestroyP
,
gridPrintP
,
gridGetPackSize
,
gridPack
,
gridTxCode
static
const
resOps
gridOps
=
{
gridCompareP
,
gridDestroyP
,
gridPrintP
,
gridGetPackSize
,
gridPack
,
gridTxCode
};
...
...
src/institution.c
View file @
32204535
...
...
@@ -38,7 +38,7 @@ static int instituteGetSizeP ( void * instituteptr, void *context );
static
void
institutePackP
(
void
*
instituteptr
,
void
*
buf
,
int
size
,
int
*
position
,
void
*
context
);
static
int
instituteTxCode
(
void
);
static
resOps
instituteOps
=
{
static
const
resOps
instituteOps
=
{
instituteCompareP
,
instituteDestroyP
,
institutePrintP
,
...
...
src/model.c
View file @
32204535
...
...
@@ -42,7 +42,7 @@ static void modelPackP ( void * modelptr, void * buff, int size,
int
*
position
,
void
*
context
);
static
int
modelTxCode
(
void
);
static
resOps
modelOps
=
{
static
const
resOps
modelOps
=
{
modelCompareP
,
modelDestroyP
,
modelPrintP
,
...
...
src/taxis.c
View file @
32204535
...
...
@@ -46,8 +46,13 @@ static void taxisPack ( void * taxisptr, void *buf, int size,
int
*
position
,
void
*
context
);
static
int
taxisTxCode
(
void
);
resOps
taxisOps
=
{
taxisCompareP
,
taxisDestroyP
,
taxisPrintP
,
taxisGetPackSize
,
taxisPack
,
taxisTxCode
const
resOps
taxisOps
=
{
taxisCompareP
,
taxisDestroyP
,
taxisPrintP
,
taxisGetPackSize
,
taxisPack
,
taxisTxCode
};
...
...
src/taxis.h
View file @
32204535
...
...
@@ -40,7 +40,7 @@ void timeval2vtime(double timevalue, taxis_t* taxis, int* vdate, int* vtime)
double
vtime2timeval
(
int
vdate
,
int
vtime
,
taxis_t
*
taxis
);
#if !defined (SX)
extern
resOps
taxisOps
;
extern
const
resOps
taxisOps
;
#endif
int
...
...
src/vlist.c
View file @
32204535
...
...
@@ -68,7 +68,7 @@ static void vlistPackP ( void * vlistptr, void * buff, int size,
int
*
position
,
void
*
context
);
static
int
vlistTxCode
(
void
);
resOps
vlist_ops
=
{
const
resOps
vlist_ops
=
{
(
valCompareFunc
)
vlist_compare
,
(
valDestroyFunc
)
vlist_delete
,
(
valPrintFunc
)
vlistPrintKernel
...
...
src/vlist_var.c
View file @
32204535
...
...
@@ -15,7 +15,7 @@
#include "serialize.h"
#include "error.h"
extern
resOps
vlist_ops
;
extern
const
resOps
vlist_ops
;
static
void
vlistvarInitEntry
(
int
vlistID
,
int
varID
)
...
...
src/zaxis.c
View file @
32204535
...
...
@@ -91,8 +91,13 @@ static int zaxisGetPackSize ( void * zaxisptr, void *context);
static
void
zaxisPack
(
void
*
zaxisptr
,
void
*
buffer
,
int
size
,
int
*
pos
,
void
*
context
);
static
int
zaxisTxCode
(
void
);
static
resOps
zaxisOps
=
{
zaxisCompareP
,
zaxisDestroyP
,
zaxisPrintP
,
zaxisGetPackSize
,
zaxisPack
,
zaxisTxCode
static
const
resOps
zaxisOps
=
{
zaxisCompareP
,
zaxisDestroyP
,
zaxisPrintP
,
zaxisGetPackSize
,
zaxisPack
,
zaxisTxCode
};
static
int
ZAXIS_Debug
=
0
;
/* If set to 1, debugging */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment