allow const char for compute/fix id arguments
This commit is contained in:
@ -1615,7 +1615,7 @@ lists the available options.
|
|||||||
* \return pointer (cast to ``void *``) to the location of the
|
* \return pointer (cast to ``void *``) to the location of the
|
||||||
* requested data or ``NULL`` if not found. */
|
* requested data or ``NULL`` if not found. */
|
||||||
|
|
||||||
void *lammps_extract_compute(void *handle, char *id, int style, int type)
|
void *lammps_extract_compute(void *handle, const char *id, int style, int type)
|
||||||
{
|
{
|
||||||
LAMMPS *lmp = (LAMMPS *) handle;
|
LAMMPS *lmp = (LAMMPS *) handle;
|
||||||
|
|
||||||
@ -1801,7 +1801,7 @@ The following table lists the available options.
|
|||||||
* \return pointer (cast to ``void *``) to the location of the
|
* \return pointer (cast to ``void *``) to the location of the
|
||||||
* requested data or ``NULL`` if not found. */
|
* requested data or ``NULL`` if not found. */
|
||||||
|
|
||||||
void *lammps_extract_fix(void *handle, char *id, int style, int type,
|
void *lammps_extract_fix(void *handle, const char *id, int style, int type,
|
||||||
int nrow, int ncol)
|
int nrow, int ncol)
|
||||||
{
|
{
|
||||||
LAMMPS *lmp = (LAMMPS *) handle;
|
LAMMPS *lmp = (LAMMPS *) handle;
|
||||||
|
|||||||
@ -138,8 +138,8 @@ void *lammps_extract_atom(void *handle, const char *name);
|
|||||||
* Library functions to access data from computes, fixes, variables in LAMMPS
|
* Library functions to access data from computes, fixes, variables in LAMMPS
|
||||||
* ---------------------------------------------------------------------- */
|
* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
void *lammps_extract_compute(void *handle, char *id, int, int);
|
void *lammps_extract_compute(void *handle, const char *, int, int);
|
||||||
void *lammps_extract_fix(void *handle, char *, int, int, int, int);
|
void *lammps_extract_fix(void *handle, const char *, int, int, int, int);
|
||||||
void *lammps_extract_variable(void *handle, const char *, const char *);
|
void *lammps_extract_variable(void *handle, const char *, const char *);
|
||||||
int lammps_set_variable(void *, char *, char *);
|
int lammps_set_variable(void *, char *, char *);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user