Overview
Comment:Replces p2c include by local include.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 4da39f367b87a73f601c2e64d995d58ece144c08a50b4e50426cb897c30fb2f2
User & Date: gawthrop@users.sourceforge.net on 1998-07-29 13:56:34
Other Links: branch diff | manifest | tags
Context
1998-07-29
14:18:34
Reorganised rep dependednt output check-in: c93d6bd13c user: gawthrop@users.sourceforge.net tags: origin/master, trunk
13:56:34
Replces p2c include by local include. check-in: 4da39f367b user: gawthrop@users.sourceforge.net tags: origin/master, trunk
13:36:37
Don't set port status if there aren't any ports. check-in: e6308d4267 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/mtt_p2c from [29324a34e6] to [55077f8402].

12
13
14
15
16
17
18



19
20
21
22
23
24
25
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28







+
+
+







# Copyright (c) P.J.Gawthrop 1998

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.3  1998/07/27 20:32:51  peterg
## Now gives immediate warnings
##
## Revision 1.2  1998/07/25 16:35:43  peterg
## Sorted out log files etc
##
## Revision 1.1  1998/07/25 16:28:38  peterg
## Initial revision
##
###############################################################
41
42
43
44
45
46
47
48

49
50

51
52
53
54
44
45
46
47
48
49
50

51
52

53
54
55
56
57







-
+

-
+




# Inform user
echo Creating $1_$2.c

# Use p2c to do the translation 
p2c -V  $1_$2.p  | grep Warning # > mtt_p2c.log 2>> mtt_p2c.log
cat $1_$2.log >> mtt_p2c.log

# zap the PASCAL_MAIN which we don't want. 
# zap the PASCAL_MAIN which we don't want and change p2c.h include.
mv $1_$2.c mtt_junk
grep -v 'PASCAL_MAIN' < mtt_junk > $1_$2.c
grep -v 'PASCAL_MAIN' < mtt_junk  | sed 's@<p2c/p2c.h>@"p2c.h"@' >$1_$2.c

if [ -n "$info" ]; then
    cat mtt_p2c.log
fi


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