1
2
3
4
5
6
7
8
9
10
|
#! /bin/sh
# $Id$
# $Log$
# Revision 1.7 2001/01/09 15:43:50 geraint
# Warn gcc that variables may be unused.
#
# Revision 1.6 2001/01/08 05:47:56 geraint
# Restrict scope of variables to file (static)
#
# Revision 1.5 2000/12/05 12:44:55 peterg
|
>
>
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#! /bin/sh
# $Id$
# $Log$
# Revision 1.2 2001/02/05 13:03:19 geraint
# Restrict scope of variables to file (static).
# Warn GCC that variables may be unused.
#
# Revision 1.7 2001/01/09 15:43:50 geraint
# Warn gcc that variables may be unused.
#
# Revision 1.6 2001/01/08 05:47:56 geraint
# Restrict scope of variables to file (static)
#
# Revision 1.5 2000/12/05 12:44:55 peterg
|
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
TMP_VAR_NAMES="mtt_tmp mtt_o $*"
IN=${SYS}_sympar.txt
OUT=${SYS}_sympar.h
declare_sys_param ()
{
cat ${IN} | awk '{printf ("static double %s MTT_UNUSED;\t// %s\n", $1, $2)}'
}
declare_temp_vars ()
{
for name in ${TMP_VAR_NAMES}
do
echo ""
|
|
|
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
TMP_VAR_NAMES="mtt_tmp mtt_o $*"
IN=${SYS}_sympar.txt
OUT=${SYS}_sympar.h
declare_sys_param ()
{
cat ${IN} | awk '{printf ("static double %s MTT_UNUSED;\t// %s\n", tolower($1), $2)}'
}
declare_temp_vars ()
{
for name in ${TMP_VAR_NAMES}
do
echo ""
|