fieker-DuValspielwiese
Last change
on this file since 8066e80 was
35aab3,
checked in by Hans Schönemann <hannes@…>, 21 years ago
|
This commit was generated by cvs2svn to compensate for changes in r6879,
which included commits to RCS files with non-trunk default branches.
git-svn-id: file:///usr/local/Singular/svn/trunk@6880 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
900 bytes
|
Rev | Line | |
---|
[35aab3] | 1 | #!/usr/bin/perl |
---|
| 2 | # generate prCopy.inc |
---|
| 3 | |
---|
| 4 | @defines = ("PR_DELETE_SRC", "Move", "Copy", |
---|
| 5 | "PR_RING_EQUAL", "REqual", "NoREqual", |
---|
| 6 | "PR_NUMBER_SIMPLE", "NSimple", "NoNSimple", |
---|
| 7 | "PR_NO_SORT", "NoSort", "Sort"); |
---|
| 8 | |
---|
| 9 | @def = ("Move", "REqual", "NSimple", "NoSort"); |
---|
| 10 | @notdef = ("Copy", "NoREqaul", "NoNSimple", "Sort"); |
---|
| 11 | |
---|
| 12 | sub Generate |
---|
| 13 | { |
---|
| 14 | my ($prefix, @args) = @_; |
---|
| 15 | |
---|
| 16 | if (@args) |
---|
| 17 | { |
---|
| 18 | my $name = shift @args; |
---|
| 19 | my $yes = shift @args; |
---|
| 20 | my $no = shift @args; |
---|
| 21 | print "#undef $name\n"; |
---|
| 22 | print "#define $name 0\n"; |
---|
| 23 | Generate($prefix."_".$no, @args); |
---|
| 24 | print "#undef $name\n"; |
---|
| 25 | print "#define $name 1\n"; |
---|
| 26 | Generate($prefix."_".$yes, @args); |
---|
| 27 | } |
---|
| 28 | else |
---|
| 29 | { |
---|
| 30 | print "#undef PR_NAME\n"; |
---|
| 31 | print "#define PR_NAME $prefix\n"; |
---|
| 32 | print "#include \"prCopyMacros.h\"\n"; |
---|
| 33 | print "#include \"prCopyTemplate.cc\"\n"; |
---|
| 34 | } |
---|
| 35 | print "\n"; |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | Generate("pr", @defines); |
---|
Note: See
TracBrowser
for help on using the repository browser.