ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/OpenCL/gengetinfo
(Generate patch)

Comparing OpenCL/gengetinfo (file contents):
Revision 1.1 by root, Sun Nov 20 10:21:27 2011 UTC vs.
Revision 1.2 by root, Sun Nov 20 10:25:17 2011 UTC

151 $perltype = "\@${perltype}s"; 151 $perltype = "\@${perltype}s";
152 } else { 152 } else {
153 $perltype = "\$$perltype"; 153 $perltype = "\$$perltype";
154 } 154 }
155 155
156 $POD .= "\n=item $perltype = \$$real_class->$perl_name$extra_perl_args\n\nCalls C<clGet${cbase}Info> with C<$name> and returns the result(s).\n"; 156 $POD .= "=item $perltype = \$$real_class->$perl_name$extra_perl_args\n\nCalls C<clGet${cbase}Info> with C<$name> and returns the result(s).\n\n";
157 157
158 $XS .= "void\n" 158 $XS .= "void\n"
159 . "$perl_name (OpenCL::$classmap{$real_class} this$extra_xs_args)\n" 159 . "$perl_name (OpenCL::$classmap{$real_class} this$extra_xs_args)\n"
160 . " PPCODE:\n"; 160 . " PPCODE:\n";
161 161
192 } 192 }
193 193
194 $XS .= "\n"; 194 $XS .= "\n";
195 } 195 }
196 196
197 print $XS;
198
199 patch "OpenCL.xs", "#BEGIN:$CLASS" , "#END:$CLASS" , $XS; 197 patch "OpenCL.xs", "#BEGIN:$CLASS" , "#END:$CLASS" , $XS;
200 patch "OpenCL.pm", "=for gengetinfo begin $CLASS", "=for gengetinfo end $CLASS", "$POD\n"; 198 patch "OpenCL.pm", "=for gengetinfo begin $CLASS", "=for gengetinfo end $CLASS", $POD;
201} 199}
202 200

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines