4 # Script last updated: 30May1999 GMD
9 # usually open params-in-prop.txt
10 open(F,"$ARGV[0]") || die "Can't open restriction file $ARGV[0]:$!";
14 ======================================================================
15 File: parameterrestrictions.c
17 (C) COPYRIGHT 1999 Graham Davison
18 mailto:g.m.davison\@computer.org
20 The contents of this file are subject to the Mozilla Public License
21 Version 1.0 (the "License"); you may not use this file except in
22 compliance with the License. You may obtain a copy of the License at
23 http://www.mozilla.org/MPL/
25 Software distributed under the License is distributed on an "AS IS"
26 basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
27 the License for the specific language governing rights and
28 limitations under the License.
31 ======================================================================*/
34 * THIS FILE IS MACHINE GENERATED DO NOT EDIT
38 int icalrestriction_is_parameter_allowed(icalproperty_kind prop,icalparameter_kind param)
48 # split line by whitespace
49 my @v = split(/\s+/,$_);
50 # property is first item on line
52 my $prop_name = $prop;
53 if (substr($prop,0,1) eq "X") { $prop = "X"; }
54 $prop = join("",split(/-/,$prop));
59 case ICAL_${prop}_PROPERTY:
66 $param = join("",split(/-/,$param));
67 print "\t\t\t\tcase ICAL_${param}_PARAMETER:\n";