pike.git / src / modules / Image / encodings / wbf.c

version» Context lines:

pike.git/src/modules/Image/encodings/wbf.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: wbf.c,v 1.17 2004/10/07 22:49:57 nilsson Exp $ + || $Id: wbf.c,v 1.18 2005/01/23 13:30:04 nilsson Exp $   */      #include "global.h"      #include <math.h>   #include <stdio.h>   #include <ctype.h>      #include "stralloc.h"   #include "object.h"
pike.git/src/modules/Image/encodings/wbf.c:421:   }      /*! @endmodule    */      /*! @endmodule    */      void init_image_wbf()   { -  add_function( "encode", image_f_wbf_encode, -  "function(object,void|mapping:string)", 0); -  add_function( "_encode", image_f_wbf_encode, -  "function(object,void|mapping:string)", 0); -  add_function( "decode", image_f_wbf_decode, "function(string:object)", 0); -  add_function( "_decode", image_f_wbf__decode, "function(string:mapping)", 0); -  add_function( "decode_header", image_f_wbf_decode_header, -  "function(string:mapping)", 0); +  ADD_FUNCTION( "encode", image_f_wbf_encode, +  tFunc(tObj tOr(tVoid,tMapping),tStr), 0); +  ADD_FUNCTION( "_encode", image_f_wbf_encode, +  tFunc(tObj tOr(tVoid,tMapping),tStr), 0); +  ADD_FUNCTION( "decode", image_f_wbf_decode, tFunc(tStr,tObj), 0); +  ADD_FUNCTION( "_decode", image_f_wbf__decode, tFunc(tStr,tMapping), 0); +  ADD_FUNCTION( "decode_header", image_f_wbf_decode_header, +  tFunc(tStr,tMapping), 0);   }      void exit_image_wbf()   {   }