From 06c9fc12db7f59ef86e564f563b6fc2431bcc568 Mon Sep 17 00:00:00 2001 From: Kevin Coffman Date: Wed, 15 Jan 2003 04:27:16 +0000 Subject: [PATCH] rxgen-enforce-grammar-20030114 thanks to nneul@umr.edu for splitting these out. enforce procedure being in a package in xg files --- src/rxgen/rpc_parse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rxgen/rpc_parse.c b/src/rxgen/rpc_parse.c index 9008fb58b7..14dc161c9a 100644 --- a/src/rxgen/rpc_parse.c +++ b/src/rxgen/rpc_parse.c @@ -715,6 +715,9 @@ static void check_proc(definition *defp, token *tokp, int noname) int proc_split = 0; int proc_multi = 0; + if (PackageIndex < 0) + error("Procedure must be in a package!\n"); + tokp->kind = TOK_PROC; defp->def_kind = DEF_PROC; if (noname)