Skip to content

Commit c7c53cb

Browse files
committed
new message control 1024 for deprecation
1 parent 93202dc commit c7c53cb

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Engine/cs_par_orc_semantic_analysis.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,9 @@ static void csp_orc_sa_interlocksf(CSOUND *csound, int code, char *name)
256256
if (code&IR) csp_set_add(csound, rr, "##int");
257257
if (code&IW) csp_set_add(csound, ww, "##int");
258258
csp_orc_sa_global_read_write_add_list(csound, ww, rr);
259-
if (UNLIKELY(code&_QQ)) {
259+
/* printf("code&qq=%4x msglevel = %4x bit=%4x\n", */
260+
/* code&_QQ, csound->oparms_.msglevel, csound->oparms_.msglevel&NOQQ ); */
261+
if (UNLIKELY((code&_QQ) && (csound->oparms_.msglevel&NOQQ))) {
260262
csound->Message(csound, Str("opcode %s deprecated\n"), name);
261263
}
262264
}

Engine/csound_orc_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2324,7 +2324,7 @@ void debugPrintCsound(CSOUND *csound) {
23242324
void query_deprecated_opcode(CSOUND *csound, ORCTOKEN *o) {
23252325
char *name = o->lexeme;
23262326
OENTRY *ep = find_opcode(csound, name);
2327-
if (UNLIKELY(ep->flags & _QQ))
2327+
if (UNLIKELY((code&_QQ) && (csound->oparms_.msglevel&NOQQ)))
23282328
csound->Warning(csound, Str("Opcode \"%s\" is deprecated\n"), name);
23292329
}
23302330

include/csoundCore.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ extern int ISSTRCOD(MYFLT);
201201
#define WARNMSG 04
202202
#define RAWMSG 0x40
203203
#define TIMEMSG 0x80
204+
#define NOQQ 0x40
204205
#define IGN(X) (void) X
205206

206207
#define ARG_CONSTANT 0

0 commit comments

Comments
 (0)