source: git/kernel/prCopy.pl @ cafd4ff

spielwiese
Last change on this file since cafd4ff was 599326, checked in by Kai Krüger <krueger@…>, 14 years ago
Anne, Kai, Frank: - changes to #include "..." statements to allow cleaner build structure - affected directories: omalloc, kernel, Singular - not yet done: IntergerProgramming git-svn-id: file:///usr/local/Singular/svn/trunk@13032 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 910 bytes
Line 
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
12sub 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 <kernel/prCopyMacros.h>\n";
33    print "#include <kernel/prCopyTemplate.cc>\n";
34  }
35  print "\n";
36}
37
38Generate("pr", @defines);
Note: See TracBrowser for help on using the repository browser.