Overview
Comment:Fixed dummy variable bug
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: b4fc80e6e066cff30bfbb80360623cca31fc15ae099f99bfc415cfe0b4d0b508
User & Date: gawthrop@users.sourceforge.net on 2000-12-05 10:04:52
Other Links: branch diff | manifest | tags
Context
2000-12-05
12:04:03
Changed function name to name() check-in: 4445c30b1b user: gawthrop@users.sourceforge.net tags: origin/master, trunk
10:04:52
Fixed dummy variable bug check-in: b4fc80e6e0 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:59:37
Generates $1_cr.h - allows inclusion of c functions for crs check-in: 8c3cc87a7c user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/mtt_header from [d09fce34a6] to [dfc8551f84].

8
9
10
11
12
13
14



15
16
17
18
19
20
21
# Copyright (C) 2000 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



## Revision 1.22  2000/12/04 12:19:12  peterg
## Changed $() to `` and $() to expr for sh compatibility -- geraint
##
## Revision 1.21  2000/12/04 08:52:40  peterg
## Zapped () in functions for sh compatibility
##
## Revision 1.20  2000/12/04 08:19:27  peterg







>
>
>







8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (C) 2000 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.23  2000/12/05 09:47:50  peterg
## Include crs as c files
##
## Revision 1.22  2000/12/04 12:19:12  peterg
## Changed $() to `` and $() to expr for sh compatibility -- geraint
##
## Revision 1.21  2000/12/04 08:52:40  peterg
## Zapped () in functions for sh compatibility
##
## Revision 1.20  2000/12/04 08:19:27  peterg
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
{
# Get the dummies
dummies="mtt_tmp"
rm -f mtt_dummies
for dummy in $dummies; do
    grep "${dummy}[0-9]* " < ${fun_name}.m |\
    awk '{ 
          # if (match(dummy,$1)==1)
             print $1
         }' dummy=$dummy >> mtt_dummies
done

dummy_list=`sort -u mtt_dummies`

# Comments







|







320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
{
# Get the dummies
dummies="mtt_tmp"
rm -f mtt_dummies
for dummy in $dummies; do
    grep "${dummy}[0-9]* " < ${fun_name}.m |\
    awk '{ 
          if (match($1,dummy)==1)
             print $1
         }' dummy=$dummy >> mtt_dummies
done

dummy_list=`sort -u mtt_dummies`

# Comments


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]