From f595db76198cd11ed629d2b3f442935008312915 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 1 May 2016 17:41:55 +0200 Subject: [PATCH] nupa_assignment(), express some constness --- src/frontend/numparam/numparam.h | 2 +- src/frontend/numparam/xpressn.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/numparam/numparam.h b/src/frontend/numparam/numparam.h index 386aa56c6..7b4aad741 100644 --- a/src/frontend/numparam/numparam.h +++ b/src/frontend/numparam/numparam.h @@ -66,7 +66,7 @@ void dico_free_entry(entry_t *); bool defsubckt(dico_t *, struct card *, nupa_type categ); int findsubckt(dico_t *, char *s); bool nupa_substitute(dico_t *, const char *s, char *r); -bool nupa_assignment(dico_t *, char *s, char mode); +bool nupa_assignment(dico_t *, const char *s, char mode); bool nupa_subcktcall(dico_t *, char *s, char *x, char *inst_name); void nupa_subcktexit(dico_t *); entry_t *entrynb(dico_t *dico, char *s); diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index 030328781..810e72e3e 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -1411,7 +1411,7 @@ getexpress(nupa_type *type, SPICE_DSTRINGPTR tstr_p, const char *s) bool -nupa_assignment(dico_t *dico, char *s, char mode) +nupa_assignment(dico_t *dico, const char * const s, char mode) /* is called for all 'Param' lines of the input file. is also called for the params: section of a subckt . mode='N' define new local variable, else global...