proto fixes "double" -> "float"

This commit is contained in:
Hartmut Holzgraefe 2001-09-21 21:59:27 +00:00
parent 8f01638bf6
commit 03f7406711
12 changed files with 178 additions and 178 deletions

View File

@ -499,7 +499,7 @@ PHP_FUNCTION(cpdf_close)
/* }}} */
#define BUFFERLEN 40
/* {{{ proto void cpdf_page_init(int pdfdoc, int pagenr, int orientation, int height, int width [, double unit])
/* {{{ proto void cpdf_page_init(int pdfdoc, int pagenr, int orientation, int height, int width [, float unit])
Starts page */
PHP_FUNCTION(cpdf_page_init)
{
@ -679,7 +679,7 @@ PHP_FUNCTION(cpdf_show)
}
/* }}} */
/* {{{ proto void cpdf_show_xy(int pdfdoc, string text, double x-koor, double y-koor [, int mode])
/* {{{ proto void cpdf_show_xy(int pdfdoc, string text, float x-koor, float y-koor [, int mode])
Output text at position */
PHP_FUNCTION(cpdf_show_xy)
{
@ -744,7 +744,7 @@ PHP_FUNCTION(cpdf_continue_text)
}
/* }}} */
/* {{{ proto void cpdf_text(int pdfdoc, string text [, double x-koor, double y-koor [, int mode [, double orientation [, int alignmode]]]])
/* {{{ proto void cpdf_text(int pdfdoc, string text [, float x-koor, float y-koor [, int mode [, float orientation [, int alignmode]]]])
Output text */
PHP_FUNCTION(cpdf_text)
{
@ -834,7 +834,7 @@ PHP_FUNCTION(cpdf_text)
}
/* }}} */
/* {{{ proto void cpdf_set_font(int pdfdoc, string font, double size, string encoding)
/* {{{ proto void cpdf_set_font(int pdfdoc, string font, float size, string encoding)
Select the current font face, size and encoding */
PHP_FUNCTION(cpdf_set_font)
{
@ -923,7 +923,7 @@ PHP_FUNCTION(cpdf_set_font_map_file)
}
/* }}} */
/* {{{ proto void cpdf_set_leading(int pdfdoc, double distance)
/* {{{ proto void cpdf_set_leading(int pdfdoc, float distance)
Sets distance between text lines */
PHP_FUNCTION(cpdf_set_leading)
{
@ -977,7 +977,7 @@ PHP_FUNCTION(cpdf_set_text_rendering)
}
/* }}} */
/* {{{ proto void cpdf_set_horiz_scaling(int pdfdoc, double scale)
/* {{{ proto void cpdf_set_horiz_scaling(int pdfdoc, float scale)
Sets horizontal scaling of text */
PHP_FUNCTION(cpdf_set_horiz_scaling)
{
@ -1004,7 +1004,7 @@ PHP_FUNCTION(cpdf_set_horiz_scaling)
}
/* }}} */
/* {{{ proto void cpdf_set_text_rise(int pdfdoc, double value)
/* {{{ proto void cpdf_set_text_rise(int pdfdoc, float value)
Sets the text rise */
PHP_FUNCTION(cpdf_set_text_rise)
{
@ -1084,7 +1084,7 @@ PHP_FUNCTION(cpdf_set_text_matrix)
}
/* }}} */
/* {{{ proto void cpdf_set_text_pos(int pdfdoc, double x, double y [, int mode])
/* {{{ proto void cpdf_set_text_pos(int pdfdoc, float x, float y [, int mode])
Set the position of text for the next cpdf_show call */
PHP_FUNCTION(cpdf_set_text_pos)
{
@ -1121,7 +1121,7 @@ PHP_FUNCTION(cpdf_set_text_pos)
}
/* }}} */
/* {{{ proto void cpdf_rotate_text(int pdfdoc, double angle)
/* {{{ proto void cpdf_rotate_text(int pdfdoc, float angle)
Sets character spacing */
PHP_FUNCTION(cpdf_rotate_text)
{
@ -1148,7 +1148,7 @@ PHP_FUNCTION(cpdf_rotate_text)
}
/* }}} */
/* {{{ proto void cpdf_set_char_spacing(int pdfdoc, double space)
/* {{{ proto void cpdf_set_char_spacing(int pdfdoc, float space)
Sets character spacing */
PHP_FUNCTION(cpdf_set_char_spacing)
{
@ -1175,7 +1175,7 @@ PHP_FUNCTION(cpdf_set_char_spacing)
}
/* }}} */
/* {{{ proto void cpdf_set_word_spacing(int pdfdoc, double space)
/* {{{ proto void cpdf_set_word_spacing(int pdfdoc, float space)
Sets spacing between words */
PHP_FUNCTION(cpdf_set_word_spacing)
{
@ -1202,7 +1202,7 @@ PHP_FUNCTION(cpdf_set_word_spacing)
}
/* }}} */
/* {{{ proto double cpdf_stringwidth(int pdfdoc, string text)
/* {{{ proto float cpdf_stringwidth(int pdfdoc, string text)
Returns width of text in current font */
PHP_FUNCTION(cpdf_stringwidth)
{
@ -1282,7 +1282,7 @@ PHP_FUNCTION(cpdf_restore)
}
/* }}} */
/* {{{ proto void cpdf_translate(int pdfdoc, double x, double y)
/* {{{ proto void cpdf_translate(int pdfdoc, float x, float y)
Sets origin of coordinate system */
PHP_FUNCTION(cpdf_translate)
{
@ -1310,7 +1310,7 @@ PHP_FUNCTION(cpdf_translate)
}
/* }}} */
/* {{{ proto void cpdf_scale(int pdfdoc, double x-scale, double y-scale)
/* {{{ proto void cpdf_scale(int pdfdoc, float x_scale, float y_scale)
Sets scaling */
PHP_FUNCTION(cpdf_scale)
{
@ -1338,7 +1338,7 @@ PHP_FUNCTION(cpdf_scale)
}
/* }}} */
/* {{{ proto void cpdf_rotate(int pdfdoc, double angle)
/* {{{ proto void cpdf_rotate(int pdfdoc, float angle)
Sets rotation */
PHP_FUNCTION(cpdf_rotate)
{
@ -1365,7 +1365,7 @@ PHP_FUNCTION(cpdf_rotate)
}
/* }}} */
/* {{{ proto void cpdf_setflat(int pdfdoc, double value)
/* {{{ proto void cpdf_setflat(int pdfdoc, float value)
Sets flatness */
PHP_FUNCTION(cpdf_setflat)
{
@ -1461,7 +1461,7 @@ PHP_FUNCTION(cpdf_setlinecap)
}
/* }}} */
/* {{{ proto void cpdf_setmiterlimit(int pdfdoc, double value)
/* {{{ proto void cpdf_setmiterlimit(int pdfdoc, float value)
Sets miter limit */
PHP_FUNCTION(cpdf_setmiterlimit)
{
@ -1493,7 +1493,7 @@ PHP_FUNCTION(cpdf_setmiterlimit)
}
/* }}} */
/* {{{ proto void cpdf_setlinewidth(int pdfdoc, double width)
/* {{{ proto void cpdf_setlinewidth(int pdfdoc, float width)
Sets line width */
PHP_FUNCTION(cpdf_setlinewidth)
{
@ -1552,7 +1552,7 @@ PHP_FUNCTION(cpdf_setdash)
/* }}} */
#undef BUFFERLEN
/* {{{ proto void cpdf_moveto(int pdfdoc, double x, double y [, int mode])
/* {{{ proto void cpdf_moveto(int pdfdoc, float x, float y [, int mode])
Sets current point */
PHP_FUNCTION(cpdf_moveto)
{
@ -1589,7 +1589,7 @@ PHP_FUNCTION(cpdf_moveto)
}
/* }}} */
/* {{{ proto void cpdf_rmoveto(int pdfdoc, double x, double y [, int mode])
/* {{{ proto void cpdf_rmoveto(int pdfdoc, float x, float y [, int mode])
Sets current point */
PHP_FUNCTION(cpdf_rmoveto)
{
@ -1626,7 +1626,7 @@ PHP_FUNCTION(cpdf_rmoveto)
}
/* }}} */
/* {{{ proto void cpdf_curveto(int pdfdoc, double x1, double y1, double x2, double y2, double x3, double y3 [, int mode])
/* {{{ proto void cpdf_curveto(int pdfdoc, float x1, float y1, float x2, float y2, float x3, float y3 [, int mode])
Draws a curve */
PHP_FUNCTION(cpdf_curveto)
{
@ -1677,7 +1677,7 @@ PHP_FUNCTION(cpdf_curveto)
}
/* }}} */
/* {{{ proto void cpdf_lineto(int pdfdoc, double x, double y [, int mode])
/* {{{ proto void cpdf_lineto(int pdfdoc, float x, float y [, int mode])
Draws a line */
PHP_FUNCTION(cpdf_lineto)
{
@ -1714,7 +1714,7 @@ PHP_FUNCTION(cpdf_lineto)
}
/* }}} */
/* {{{ proto void cpdf_rlineto(int pdfdoc, double x, double y [, int mode])
/* {{{ proto void cpdf_rlineto(int pdfdoc, float x, float y [, int mode])
Draws a line relative to current point */
PHP_FUNCTION(cpdf_rlineto)
{
@ -1751,7 +1751,7 @@ PHP_FUNCTION(cpdf_rlineto)
}
/* }}} */
/* {{{ proto void cpdf_circle(int pdfdoc, double x, double y, double radius [, int mode])
/* {{{ proto void cpdf_circle(int pdfdoc, float x, float y, float radius [, int mode])
Draws a circle */
PHP_FUNCTION(cpdf_circle)
{
@ -1789,7 +1789,7 @@ PHP_FUNCTION(cpdf_circle)
}
/* }}} */
/* {{{ proto void cpdf_arc(int pdfdoc, double x, double y, double radius, double start, double end [, int mode])
/* {{{ proto void cpdf_arc(int pdfdoc, float x, float y, float radius, float start, float end [, int mode])
Draws an arc */
PHP_FUNCTION(cpdf_arc)
{
@ -1829,7 +1829,7 @@ PHP_FUNCTION(cpdf_arc)
}
/* }}} */
/* {{{ proto void cpdf_rect(int pdfdoc, double x, double y, double width, double height [, int mode])
/* {{{ proto void cpdf_rect(int pdfdoc, float x, float y, float width, float height [, int mode])
Draws a rectangle */
PHP_FUNCTION(cpdf_rect)
{
@ -2086,7 +2086,7 @@ PHP_FUNCTION(cpdf_clip)
}
/* }}} */
/* {{{ proto void cpdf_setgray_fill(int pdfdoc, double value)
/* {{{ proto void cpdf_setgray_fill(int pdfdoc, float value)
Sets filling color to gray value */
PHP_FUNCTION(cpdf_setgray_fill)
{
@ -2113,7 +2113,7 @@ PHP_FUNCTION(cpdf_setgray_fill)
}
/* }}} */
/* {{{ proto void cpdf_setgray_stroke(int pdfdoc, double value)
/* {{{ proto void cpdf_setgray_stroke(int pdfdoc, float value)
Sets drawing color to gray value */
PHP_FUNCTION(cpdf_setgray_stroke)
{
@ -2140,7 +2140,7 @@ PHP_FUNCTION(cpdf_setgray_stroke)
}
/* }}} */
/* {{{ proto void cpdf_setgray(int pdfdoc, double value)
/* {{{ proto void cpdf_setgray(int pdfdoc, float value)
Sets drawing and filling color to gray value */
PHP_FUNCTION(cpdf_setgray)
{
@ -2167,7 +2167,7 @@ PHP_FUNCTION(cpdf_setgray)
}
/* }}} */
/* {{{ proto void cpdf_setrgbcolor_fill(int pdfdoc, double red, double green, double blue)
/* {{{ proto void cpdf_setrgbcolor_fill(int pdfdoc, float red, float green, float blue)
Sets filling color to rgb color value */
PHP_FUNCTION(cpdf_setrgbcolor_fill)
{
@ -2196,7 +2196,7 @@ PHP_FUNCTION(cpdf_setrgbcolor_fill)
}
/* }}} */
/* {{{ proto void cpdf_setrgbcolor_stroke(int pdfdoc, double red, double green, double blue)
/* {{{ proto void cpdf_setrgbcolor_stroke(int pdfdoc, float red, float green, float blue)
Sets drawing color to rgb color value */
PHP_FUNCTION(cpdf_setrgbcolor_stroke)
{
@ -2225,7 +2225,7 @@ PHP_FUNCTION(cpdf_setrgbcolor_stroke)
}
/* }}} */
/* {{{ proto void cpdf_setrgbcolor(int pdfdoc, double red, double green, double blue)
/* {{{ proto void cpdf_setrgbcolor(int pdfdoc, float red, float green, float blue)
Sets drawing and filling color to rgb color value */
PHP_FUNCTION(cpdf_setrgbcolor)
{
@ -2254,7 +2254,7 @@ PHP_FUNCTION(cpdf_setrgbcolor)
}
/* }}} */
/* {{{ proto void cpdf_set_page_animation(int pdfdoc, int transition, double duration, double direction, int orientation, int inout)
/* {{{ proto void cpdf_set_page_animation(int pdfdoc, int transition, float duration, float direction, int orientation, int inout)
Sets transition between pages */
PHP_FUNCTION(cpdf_set_page_animation)
{
@ -2373,7 +2373,7 @@ PHP_FUNCTION(cpdf_save_to_file)
}
/* }}} */
/* {{{ proto void cpdf_import_jpeg(int pdfdoc, string filename, double x, double y, double angle, double width, double height, double x-scale, double y-scale, int gsave [, int mode])
/* {{{ proto void cpdf_import_jpeg(int pdfdoc, string filename, float x, float y, float angle, float width, float height, float x_scale, float y_scale, int gsave [, int mode])
Includes jpeg image */
PHP_FUNCTION(cpdf_import_jpeg)
{
@ -2441,7 +2441,7 @@ PHP_FUNCTION(cpdf_import_jpeg)
/* }}} */
#if HAVE_LIBGD13
/* {{{ proto void cpdf_place_inline_image(int pdfdoc, int gdimage, double x, double y, double angle, fload width, float height, int gsave [, int mode])
/* {{{ proto void cpdf_place_inline_image(int pdfdoc, int gdimage, float x, float y, float angle, fload width, float height, int gsave [, int mode])
Includes image */
PHP_FUNCTION(cpdf_place_inline_image)
{
@ -2533,7 +2533,7 @@ PHP_FUNCTION(cpdf_place_inline_image)
/* }}} */
#endif
/* {{{ proto void cpdf_add_annotation(int pdfdoc, double xll, double yll, double xur, double xur, string title, string text [, int mode])
/* {{{ proto void cpdf_add_annotation(int pdfdoc, float xll, float yll, float xur, float xur, string title, string text [, int mode])
Sets annotation */
PHP_FUNCTION(cpdf_add_annotation)
{
@ -2593,7 +2593,7 @@ PHP_FUNCTION(cpdf_add_annotation)
}
/* }}} */
/* {{{ proto void cpdf_set_action_url(int pdfdoc, double xll, double yll, double xur, double xur, string url [, int mode])
/* {{{ proto void cpdf_set_action_url(int pdfdoc, float xll, float yll, float xur, float xur, string url [, int mode])
Sets Hyperlink */
PHP_FUNCTION(cpdf_set_action_url)
{

View File

@ -1770,7 +1770,7 @@ PHP_FUNCTION(imagecolorsforindex)
}
/* }}} */
/* {{{ proto int imagegammacorrect(int im, double inputgamma, double outputgamma)
/* {{{ proto int imagegammacorrect(int im, float inputgamma, float outputgamma)
Apply a gamma correction to a GD image */
PHP_FUNCTION(imagegammacorrect)
{
@ -2970,7 +2970,7 @@ PHP_FUNCTION(imagepsencodefont)
}
/* }}} */
/* {{{ proto bool imagepsextendfont(int font_index, double extend)
/* {{{ proto bool imagepsextendfont(int font_index, float extend)
Extend or or condense (if extend < 1) a font */
PHP_FUNCTION(imagepsextendfont)
{
@ -2996,7 +2996,7 @@ PHP_FUNCTION(imagepsextendfont)
}
/* }}} */
/* {{{ proto bool imagepsslantfont(int font_index, double slant)
/* {{{ proto bool imagepsslantfont(int font_index, float slant)
Slant a font */
PHP_FUNCTION(imagepsslantfont)
{
@ -3021,7 +3021,7 @@ PHP_FUNCTION(imagepsslantfont)
}
/* }}} */
/* {{{ proto array imagepstext(int image, string text, int font, int size, int xcoord, int ycoord [, int space, int tightness, double angle, int antialias])
/* {{{ proto array imagepstext(int image, string text, int font, int size, int xcoord, int ycoord [, int space, int tightness, float angle, int antialias])
Rasterize a string over an image */
PHP_FUNCTION(imagepstext)
{

View File

@ -199,7 +199,7 @@ PHP_FUNCTION(imagepsencodefont)
}
/* }}} */
/* {{{ proto bool imagepsextendfont(int font_index, double extend)
/* {{{ proto bool imagepsextendfont(int font_index, float extend)
Extend or or condense (if extend < 1) a font */
PHP_FUNCTION(imagepsextendfont)
{
@ -229,7 +229,7 @@ PHP_FUNCTION(imagepsextendfont)
}
/* }}} */
/* {{{ proto bool imagepsslantfont(int font_index, double slant)
/* {{{ proto bool imagepsslantfont(int font_index, float slant)
Slant a font */
PHP_FUNCTION(imagepsslantfont)
{
@ -256,7 +256,7 @@ PHP_FUNCTION(imagepsslantfont)
}
/* }}} */
/* {{{ proto array imagepstext(int image, string text, int font, int size, int xcoord, int ycoord [, int space, int tightness, double angle, int antialias])
/* {{{ proto array imagepstext(int image, string text, int font, int size, int xcoord, int ycoord [, int space, int tightness, float angle, int antialias])
Rasterize a string over an image */
PHP_FUNCTION(imagepstext)
{

View File

@ -2041,7 +2041,7 @@ PHP_FUNCTION(swfshape_setrightfill)
}
/* }}} */
/* {{{ proto void swfshape_movepento(double x, double y)
/* {{{ proto void swfshape_movepento(float x, float y)
Moves the pen to shape coordinates (x,y) */
PHP_FUNCTION(swfshape_movepento)
@ -2059,7 +2059,7 @@ PHP_FUNCTION(swfshape_movepento)
}
/* }}} */
/* {{{ proto void swfshape_movepen(double x, double y)
/* {{{ proto void swfshape_movepen(float x, float y)
Moves the pen from its current location by vector (x,y) */
PHP_FUNCTION(swfshape_movepen)
@ -2077,7 +2077,7 @@ PHP_FUNCTION(swfshape_movepen)
}
/* }}} */
/* {{{ proto void swfshape_drawlineto(double x, double y)
/* {{{ proto void swfshape_drawlineto(float x, float y)
Draws a line from the current pen position to shape coordinates (x,y)
in the current line style */
@ -2095,7 +2095,7 @@ PHP_FUNCTION(swfshape_drawlineto)
}
/* }}} */
/* {{{ proto void swfshape_drawline(double dx, double dy)
/* {{{ proto void swfshape_drawline(float dx, float dy)
Draws a line from the current pen position (x,y) to the point (x+dx,y+dy)
in the current line style */
@ -2113,7 +2113,7 @@ PHP_FUNCTION(swfshape_drawline)
}
/* }}} */
/* {{{ proto void swfshape_drawcurveto(double ax, double ay, double bx, double by [, double dx, double dy])
/* {{{ proto void swfshape_drawcurveto(float ax, float ay, float bx, float by [, float dx, float dy])
Draws a curve from the current pen position (x,y) to the point (bx,by)
in the current line style, using point (ax,ay) as a control point.
Or draws a cubic bezier to point (dx,dy) with control points (ax,ay) and (bx,by)
@ -2161,7 +2161,7 @@ PHP_FUNCTION(swfshape_drawcurveto)
}
/* }}} */
/* {{{ proto void swfshape_drawcurve(double adx, double ady, double bdx, double bdy [, double cdx, double cdy])
/* {{{ proto void swfshape_drawcurve(float adx, float ady, float bdx, float bdy [, float cdx, float cdy])
Draws a curve from the current pen position (x,y) to the point (x+bdx,y+bdy)
in the current line style, using point (x+adx,y+ady) as a control point
Or draws a cubic bezier to point (x+cdx,x+cdy) with control points
@ -2279,7 +2279,7 @@ PHP_FUNCTION(swfshape_drawarc)
}
/* }}} */
/* {{{ proto void swfshape_drawcubic(double bx, double by, double cx, double cy, double dx, double dy)
/* {{{ proto void swfshape_drawcubic(float bx, float by, float cx, float cy, float dx, float dy)
Draws a cubic bezier curve using the current position and the three given
points as control points */
@ -2305,7 +2305,7 @@ PHP_FUNCTION(swfshape_drawcubic)
}
/* }}} */
/* {{{ proto void swfshape_drawcubic(double bx, double by, double cx, double cy, double dx, double dy)
/* {{{ proto void swfshape_drawcubic(float bx, float by, float cx, float cy, float dx, float dy)
Draws a cubic bezier curve using the current position and the three given
points as control points */
@ -2545,7 +2545,7 @@ PHP_FUNCTION(swftext_setFont)
}
/* }}} */
/* {{{ proto void swftext_setHeight(double height)
/* {{{ proto void swftext_setHeight(float height)
Sets this SWFText object's current height to given height */
PHP_FUNCTION(swftext_setHeight)
@ -2617,7 +2617,7 @@ PHP_FUNCTION(swftext_setColor)
}
/* }}} */
/* {{{ proto void swftext_moveTo(double x, double y)
/* {{{ proto void swftext_moveTo(float x, float y)
Moves this SWFText object's current pen position to (x,y) in text
coordinates */
@ -2654,7 +2654,7 @@ PHP_FUNCTION(swftext_addString)
}
/* }}} */
/* {{{ proto double swftext_getWidth(string)
/* {{{ proto float swftext_getWidth(string)
calculates the width of the given string in this text objects current font and size */
PHP_FUNCTION(swftext_getWidth)
@ -2673,7 +2673,7 @@ PHP_FUNCTION(swftext_getWidth)
}
/* }}} */
/* {{{ proto double swftext_getAscent()
/* {{{ proto float swftext_getAscent()
returns the ascent of the current font at its current size, or 0 if not available */
PHP_FUNCTION(swftext_getAscent)
@ -2685,7 +2685,7 @@ PHP_FUNCTION(swftext_getAscent)
}
/* }}} */
/* {{{ proto double swftext_getDescent()
/* {{{ proto float swftext_getDescent()
returns the descent of the current font at its current size, or 0 if not available */
PHP_FUNCTION(swftext_getDescent)
@ -2697,7 +2697,7 @@ PHP_FUNCTION(swftext_getDescent)
}
/* }}} */
/* {{{ proto double swftext_getLeading()
/* {{{ proto float swftext_getLeading()
returns the leading of the current font at its current size, or 0 if not available */
PHP_FUNCTION(swftext_getLeading)
@ -2791,7 +2791,7 @@ PHP_FUNCTION(swftextfield_setFont)
}
/* }}} */
/* {{{ proto void swftextfield_setBounds(double width, double height)
/* {{{ proto void swftextfield_setBounds(float width, float height)
sets the width and height of this textfield */
PHP_FUNCTION(swftextfield_setBounds)
@ -2826,7 +2826,7 @@ PHP_FUNCTION(swftextfield_align)
}
/* }}} */
/* {{{ proto void swftextfield_setHeight(double height)
/* {{{ proto void swftextfield_setHeight(float height)
sets the font height of this textfield */
PHP_FUNCTION(swftextfield_setHeight)
@ -2843,7 +2843,7 @@ PHP_FUNCTION(swftextfield_setHeight)
}
/* }}} */
/* {{{ proto void swftextfield_setLeftMargin(double)
/* {{{ proto void swftextfield_setLeftMargin(float)
sets the left margin of this textfield */
PHP_FUNCTION(swftextfield_setLeftMargin)
@ -2860,7 +2860,7 @@ PHP_FUNCTION(swftextfield_setLeftMargin)
}
/* }}} */
/* {{{ proto void swftextfield_setRightMargin(double)
/* {{{ proto void swftextfield_setRightMargin(float)
sets the right margin of this textfield */
PHP_FUNCTION(swftextfield_setRightMargin)
@ -2877,7 +2877,7 @@ PHP_FUNCTION(swftextfield_setRightMargin)
}
/* }}} */
/* {{{ proto void swftextfield_setMargins(double left, double right)
/* {{{ proto void swftextfield_setMargins(float left, float right)
sets both margins of this textfield */
PHP_FUNCTION(swftextfield_setMargins)
@ -2897,7 +2897,7 @@ PHP_FUNCTION(swftextfield_setMargins)
}
/* }}} */
/* {{{ proto void swftextfield_setIndentation(double)
/* {{{ proto void swftextfield_setIndentation(float)
sets the indentation of the first line of this textfield */
PHP_FUNCTION(swftextfield_setIndentation)
@ -2914,7 +2914,7 @@ PHP_FUNCTION(swftextfield_setIndentation)
}
/* }}} */
/* {{{ proto void swftextfield_setLineSpacing(double)
/* {{{ proto void swftextfield_setLineSpacing(float)
sets the line spacing of this textfield */
PHP_FUNCTION(swftextfield_setLineSpacing)

View File

@ -512,7 +512,7 @@ PHP_FUNCTION(pdf_close)
/* }}} */
/* {{{ proto void pdf_begin_page(int pdfdoc, double width, double height)
/* {{{ proto void pdf_begin_page(int pdfdoc, float width, float height)
Starts page */
PHP_FUNCTION(pdf_begin_page)
{
@ -569,7 +569,7 @@ PHP_FUNCTION(pdf_show)
}
/* }}} */
/* {{{ proto void pdf_show_xy(int pdfdoc, string text, double x-koor, double y-koor)
/* {{{ proto void pdf_show_xy(int pdfdoc, string text, float x_koor, float y_koor)
Output text at position */
PHP_FUNCTION(pdf_show_xy)
{
@ -590,7 +590,7 @@ PHP_FUNCTION(pdf_show_xy)
}
/* }}} */
/* {{{ proto int pdf_show_boxed(int pdfdoc, string text, double x-koor, double y-koor, double width, double height, string mode [, string feature])
/* {{{ proto int pdf_show_boxed(int pdfdoc, string text, float x_koor, float y_koor, float width, float height, string mode [, string feature])
Output text formated in a boxed */
PHP_FUNCTION(pdf_show_boxed)
{
@ -632,7 +632,7 @@ PHP_FUNCTION(pdf_show_boxed)
}
/* }}} */
/* {{{ proto void pdf_set_font(int pdfdoc, string font, double size, string encoding [, int embed])
/* {{{ proto void pdf_set_font(int pdfdoc, string font, float size, string encoding [, int embed])
Select the current font face, size and encoding */
PHP_FUNCTION(pdf_set_font)
{
@ -695,7 +695,7 @@ static void _php_pdf_set_value(INTERNAL_FUNCTION_PARAMETERS, char *field)
}
/* }}} */
/* {{{ proto void pdf_set_value(int pdfdoc, string key, double value)
/* {{{ proto void pdf_set_value(int pdfdoc, string key, float value)
Sets arbitrary value */
PHP_FUNCTION(pdf_set_value)
{
@ -716,7 +716,7 @@ PHP_FUNCTION(pdf_set_value)
}
/* }}} */
/* {{{ proto double pdf_get_value(int pdfdoc, string key, double modifier)
/* {{{ proto float pdf_get_value(int pdfdoc, string key, float modifier)
Gets arbitrary value */
PHP_FUNCTION(pdf_get_value)
{
@ -799,7 +799,7 @@ PHP_FUNCTION(pdf_get_fontname)
}
/* }}} */
/* {{{ proto double pdf_get_fontsize(int pdfdoc)
/* {{{ proto float pdf_get_fontsize(int pdfdoc)
Gets the current font size */
PHP_FUNCTION(pdf_get_fontsize)
{
@ -818,7 +818,7 @@ PHP_FUNCTION(pdf_get_fontsize)
}
/* }}} */
/* {{{ proto void pdf_set_leading(int pdfdoc, double distance)
/* {{{ proto void pdf_set_leading(int pdfdoc, float distance)
Sets distance between text lines */
PHP_FUNCTION(pdf_set_leading)
{
@ -834,7 +834,7 @@ PHP_FUNCTION(pdf_set_text_rendering)
}
/* }}} */
/* {{{ proto void pdf_set_horiz_scaling(int pdfdoc, double scale)
/* {{{ proto void pdf_set_horiz_scaling(int pdfdoc, float scale)
Sets horizontal scaling of text */
PHP_FUNCTION(pdf_set_horiz_scaling)
{
@ -842,7 +842,7 @@ PHP_FUNCTION(pdf_set_horiz_scaling)
}
/* }}} */
/* {{{ proto void pdf_set_text_rise(int pdfdoc, double value)
/* {{{ proto void pdf_set_text_rise(int pdfdoc, float value)
Sets the text rise */
PHP_FUNCTION(pdf_set_text_rise)
{
@ -850,7 +850,7 @@ PHP_FUNCTION(pdf_set_text_rise)
}
/* }}} */
/* {{{ proto void pdf_set_char_spacing(int pdfdoc, double space)
/* {{{ proto void pdf_set_char_spacing(int pdfdoc, float space)
Sets character spacing */
PHP_FUNCTION(pdf_set_char_spacing)
{
@ -858,7 +858,7 @@ PHP_FUNCTION(pdf_set_char_spacing)
}
/* }}} */
/* {{{ proto void pdf_set_word_spacing(int pdfdoc, double space)
/* {{{ proto void pdf_set_word_spacing(int pdfdoc, float space)
Sets spacing between words */
PHP_FUNCTION(pdf_set_word_spacing)
{
@ -866,7 +866,7 @@ PHP_FUNCTION(pdf_set_word_spacing)
}
/* }}} */
/* {{{ proto void pdf_set_text_pos(int pdfdoc, double x, double y)
/* {{{ proto void pdf_set_text_pos(int pdfdoc, float x, float y)
Sets the position of text for the next pdf_show call */
PHP_FUNCTION(pdf_set_text_pos)
{
@ -905,7 +905,7 @@ PHP_FUNCTION(pdf_continue_text)
}
/* }}} */
/* {{{ proto double pdf_stringwidth(int pdfdoc, string text [, int font, double size])
/* {{{ proto float pdf_stringwidth(int pdfdoc, string text [, int font, float size])
Returns width of text in current font */
PHP_FUNCTION(pdf_stringwidth)
{
@ -986,7 +986,7 @@ PHP_FUNCTION(pdf_restore)
}
/* }}} */
/* {{{ proto void pdf_translate(int pdfdoc, double x, double y)
/* {{{ proto void pdf_translate(int pdfdoc, float x, float y)
Sets origin of coordinate system */
PHP_FUNCTION(pdf_translate)
{
@ -1006,7 +1006,7 @@ PHP_FUNCTION(pdf_translate)
}
/* }}} */
/* {{{ proto void pdf_scale(int pdfdoc, double x-scale, double y-scale)
/* {{{ proto void pdf_scale(int pdfdoc, float x_scale, float y_scale)
Sets scaling */
PHP_FUNCTION(pdf_scale)
{
@ -1026,7 +1026,7 @@ PHP_FUNCTION(pdf_scale)
}
/* }}} */
/* {{{ proto void pdf_rotate(int pdfdoc, double angle)
/* {{{ proto void pdf_rotate(int pdfdoc, float angle)
Sets rotation */
PHP_FUNCTION(pdf_rotate)
{
@ -1045,7 +1045,7 @@ PHP_FUNCTION(pdf_rotate)
}
/* }}} */
/* {{{ proto void pdf_skew(int pdfdoc, double xangle, double yangle)
/* {{{ proto void pdf_skew(int pdfdoc, float xangle, float yangle)
Skew the coordinate system */
PHP_FUNCTION(pdf_skew)
{
@ -1065,7 +1065,7 @@ PHP_FUNCTION(pdf_skew)
}
/* }}} */
/* {{{ proto void pdf_setflat(int pdfdoc, double value)
/* {{{ proto void pdf_setflat(int pdfdoc, float value)
Sets flatness */
PHP_FUNCTION(pdf_setflat)
{
@ -1143,7 +1143,7 @@ PHP_FUNCTION(pdf_setlinecap)
}
/* }}} */
/* {{{ proto void pdf_setmiterlimit(int pdfdoc, double value)
/* {{{ proto void pdf_setmiterlimit(int pdfdoc, float value)
Sets miter limit */
PHP_FUNCTION(pdf_setmiterlimit)
{
@ -1169,7 +1169,7 @@ PHP_FUNCTION(pdf_setmiterlimit)
}
/* }}} */
/* {{{ proto void pdf_setlinewidth(int pdfdoc, double width)
/* {{{ proto void pdf_setlinewidth(int pdfdoc, float width)
Sets line width */
PHP_FUNCTION(pdf_setlinewidth)
{
@ -1188,7 +1188,7 @@ PHP_FUNCTION(pdf_setlinewidth)
}
/* }}} */
/* {{{ proto void pdf_setdash(int pdfdoc, double black, double white)
/* {{{ proto void pdf_setdash(int pdfdoc, float black, float white)
Sets dash pattern */
PHP_FUNCTION(pdf_setdash)
{
@ -1208,7 +1208,7 @@ PHP_FUNCTION(pdf_setdash)
}
/* }}} */
/* {{{ proto void pdf_moveto(int pdfdoc, double x, double y)
/* {{{ proto void pdf_moveto(int pdfdoc, float x, float y)
Sets current point */
PHP_FUNCTION(pdf_moveto)
{
@ -1228,7 +1228,7 @@ PHP_FUNCTION(pdf_moveto)
}
/* }}} */
/* {{{ proto void pdf_curveto(int pdfdoc, double x1, double y1, double x2, double y2, double x3, double y3)
/* {{{ proto void pdf_curveto(int pdfdoc, float x1, float y1, float x2, float y2, float x3, float y3)
Draws a curve */
PHP_FUNCTION(pdf_curveto)
{
@ -1259,7 +1259,7 @@ PHP_FUNCTION(pdf_curveto)
}
/* }}} */
/* {{{ proto void pdf_lineto(int pdfdoc, double x, double y)
/* {{{ proto void pdf_lineto(int pdfdoc, float x, float y)
Draws a line */
PHP_FUNCTION(pdf_lineto)
{
@ -1279,7 +1279,7 @@ PHP_FUNCTION(pdf_lineto)
}
/* }}} */
/* {{{ proto void pdf_circle(int pdfdoc, double x, double y, double radius)
/* {{{ proto void pdf_circle(int pdfdoc, float x, float y, float radius)
Draws a circle */
PHP_FUNCTION(pdf_circle)
{
@ -1300,7 +1300,7 @@ PHP_FUNCTION(pdf_circle)
}
/* }}} */
/* {{{ proto void pdf_arc(int pdfdoc, double x, double y, double radius, double start, double end)
/* {{{ proto void pdf_arc(int pdfdoc, float x, float y, float radius, float start, float end)
Draws an arc */
PHP_FUNCTION(pdf_arc)
{
@ -1329,7 +1329,7 @@ PHP_FUNCTION(pdf_arc)
}
/* }}} */
/* {{{ proto void pdf_rect(int pdfdoc, double x, double y, double width, double height)
/* {{{ proto void pdf_rect(int pdfdoc, float x, float y, float width, float height)
Draws a rectangle */
PHP_FUNCTION(pdf_rect)
{
@ -1548,7 +1548,7 @@ PHP_FUNCTION(pdf_get_parameter)
}
/* }}} */
/* {{{ proto void pdf_setgray_fill(int pdfdoc, double value)
/* {{{ proto void pdf_setgray_fill(int pdfdoc, float value)
Sets filling color to gray value */
PHP_FUNCTION(pdf_setgray_fill)
{
@ -1571,7 +1571,7 @@ PHP_FUNCTION(pdf_setgray_fill)
}
/* }}} */
/* {{{ proto void pdf_setgray_stroke(int pdfdoc, double value)
/* {{{ proto void pdf_setgray_stroke(int pdfdoc, float value)
Sets drawing color to gray value */
PHP_FUNCTION(pdf_setgray_stroke)
{
@ -1594,7 +1594,7 @@ PHP_FUNCTION(pdf_setgray_stroke)
}
/* }}} */
/* {{{ proto void pdf_setgray(int pdfdoc, double value)
/* {{{ proto void pdf_setgray(int pdfdoc, float value)
Sets drawing and filling color to gray value */
PHP_FUNCTION(pdf_setgray)
{
@ -1617,7 +1617,7 @@ PHP_FUNCTION(pdf_setgray)
}
/* }}} */
/* {{{ proto void pdf_setrgbcolor_fill(int pdfdoc, double red, double green, double blue)
/* {{{ proto void pdf_setrgbcolor_fill(int pdfdoc, float red, float green, float blue)
Sets filling color to RGB color value */
PHP_FUNCTION(pdf_setrgbcolor_fill)
{
@ -1642,7 +1642,7 @@ PHP_FUNCTION(pdf_setrgbcolor_fill)
}
/* }}} */
/* {{{ proto void pdf_setrgbcolor_stroke(int pdfdoc, double red, double green, double blue)
/* {{{ proto void pdf_setrgbcolor_stroke(int pdfdoc, float red, float green, float blue)
Sets drawing color to RGB color value */
PHP_FUNCTION(pdf_setrgbcolor_stroke)
{
@ -1667,7 +1667,7 @@ PHP_FUNCTION(pdf_setrgbcolor_stroke)
}
/* }}} */
/* {{{ proto void pdf_setrgbcolor(int pdfdoc, double red, double green, double blue)
/* {{{ proto void pdf_setrgbcolor(int pdfdoc, float red, float green, float blue)
Sets drawing and filling color to RGB color value */
PHP_FUNCTION(pdf_setrgbcolor)
{
@ -1794,7 +1794,7 @@ PHP_FUNCTION(pdf_set_transition)
}
/* }}} */
/* {{{ proto void pdf_set_duration(int pdfdoc, double duration)
/* {{{ proto void pdf_set_duration(int pdfdoc, float duration)
Sets duration between pages */
PHP_FUNCTION(pdf_set_duration)
{
@ -2009,7 +2009,7 @@ PHP_FUNCTION(pdf_close_image)
}
/* }}} */
/* {{{ proto void pdf_place_image(int pdf, int pdfimage, double x, double y, double scale)
/* {{{ proto void pdf_place_image(int pdf, int pdfimage, float x, float y, float scale)
Places image in the PDF document */
PHP_FUNCTION(pdf_place_image)
{
@ -2072,7 +2072,7 @@ PHP_FUNCTION(pdf_get_image_height)
}
/* }}} */
/* {{{ proto void pdf_add_weblink(int pdfdoc, double llx, double lly, double urx, double ury, string url)
/* {{{ proto void pdf_add_weblink(int pdfdoc, float llx, float lly, float urx, float ury, string url)
Adds link to web resource */
PHP_FUNCTION(pdf_add_weblink)
{
@ -2099,7 +2099,7 @@ PHP_FUNCTION(pdf_add_weblink)
}
/* }}} */
/* {{{ proto void pdf_add_pdflink(int pdfdoc, double llx, double lly, double urx, double ury, string filename, int page, string dest)
/* {{{ proto void pdf_add_pdflink(int pdfdoc, float llx, float lly, float urx, float ury, string filename, int page, string dest)
Adds link to PDF document */
PHP_FUNCTION(pdf_add_pdflink)
{
@ -2131,7 +2131,7 @@ PHP_FUNCTION(pdf_add_pdflink)
}
/* }}} */
/* {{{ proto void pdf_set_border_style(int pdfdoc, string style, double width)
/* {{{ proto void pdf_set_border_style(int pdfdoc, string style, float width)
Sets style of box surounding all kinds of annotations and link */
PHP_FUNCTION(pdf_set_border_style)
{
@ -2151,7 +2151,7 @@ PHP_FUNCTION(pdf_set_border_style)
}
/* }}} */
/* {{{ proto void pdf_set_border_color(int pdfdoc, double red, double green, double blue)
/* {{{ proto void pdf_set_border_color(int pdfdoc, float red, float green, float blue)
Sets color of box surounded all kinds of annotations and links */
PHP_FUNCTION(pdf_set_border_color)
{
@ -2172,7 +2172,7 @@ PHP_FUNCTION(pdf_set_border_color)
}
/* }}} */
/* {{{ proto void pdf_set_border_dash(int pdfdoc, double black, double white)
/* {{{ proto void pdf_set_border_dash(int pdfdoc, float black, float white)
Sets the border dash style of all kinds of annotations and links */
PHP_FUNCTION(pdf_set_border_dash)
{
@ -2192,7 +2192,7 @@ PHP_FUNCTION(pdf_set_border_dash)
}
/* }}} */
/* {{{ proto void pdf_add_annotation(int pdfdoc, double xll, double yll, double xur, double xur, string title, string text)
/* {{{ proto void pdf_add_annotation(int pdfdoc, float xll, float yll, float xur, float xur, string title, string text)
Sets annotation (depreciated use pdf_add_note instead) */
PHP_FUNCTION(pdf_add_annotation)
{
@ -2423,7 +2423,7 @@ PHP_FUNCTION(pdf_setfont)
}
/* }}} */
/* {{{ proto void pdf_setpolydash(int pdfdoc, double darray)
/* {{{ proto void pdf_setpolydash(int pdfdoc, float darray)
Sets more complicated dash pattern */
PHP_FUNCTION(pdf_setpolydash)
@ -2470,7 +2470,7 @@ PHP_FUNCTION(pdf_setpolydash)
}
/* }}} */
/* {{{ proto void pdf_concat(int pdf, double a, double b, double c, double d, double e, double f)
/* {{{ proto void pdf_concat(int pdf, float a, float b, float c, float d, float e, float f)
Concatenates a matrix to the current transformation matrix for text and graphics */
PHP_FUNCTION(pdf_concat)
{
@ -2588,7 +2588,7 @@ PHP_FUNCTION(pdf_open_image)
}
/* }}} */
/* {{{ proto void pdf_attach_file(int pdf, double lly, double lly, double urx, double ury, string filename, string description, string author, string mimetype, string icon)
/* {{{ proto void pdf_attach_file(int pdf, float lly, float lly, float urx, float ury, string filename, string description, string author, string mimetype, string icon)
Adds a file attachment annotation at the rectangle specified by his lower left and upper right corners */
PHP_FUNCTION(pdf_attach_file)
{
@ -2626,7 +2626,7 @@ PHP_FUNCTION(pdf_attach_file)
}
/* }}} */
/* {{{ proto void pdf_add_note(int pdfdoc, double llx, double lly, double urx, double ury, string contents, string title, string icon, int open)
/* {{{ proto void pdf_add_note(int pdfdoc, float llx, float lly, float urx, float ury, string contents, string title, string icon, int open)
Sets annotation */
PHP_FUNCTION(pdf_add_note)
{
@ -2662,7 +2662,7 @@ PHP_FUNCTION(pdf_add_note)
}
/* }}} */
/* {{{ proto void pdf_add_locallink(int pdfdoc, double llx, double lly, double urx, double ury, int page, string dest)
/* {{{ proto void pdf_add_locallink(int pdfdoc, float llx, float lly, float urx, float ury, int page, string dest)
Adds link to web resource */
PHP_FUNCTION(pdf_add_locallink)
{
@ -2694,7 +2694,7 @@ PHP_FUNCTION(pdf_add_locallink)
}
/* }}} */
/* {{{ proto void pdf_add_launchlink(int pdfdoc, double llx, double lly, double urx, double ury, string filename)
/* {{{ proto void pdf_add_launchlink(int pdfdoc, float llx, float lly, float urx, float ury, string filename)
Adds link to web resource */
PHP_FUNCTION(pdf_add_launchlink)
{
@ -2809,7 +2809,7 @@ PHP_FUNCTION(pdf_open_pdi_page)
}
/* }}} */
/* {{{ proto void pdf_place_pdi_page(int pdf, int page, double x, double y, double sx, double sy)
/* {{{ proto void pdf_place_pdi_page(int pdf, int page, float x, float y, float sx, float sy)
* Place a PDF page with the lower left corner at (x, y), and scale it. */
PHP_FUNCTION(pdf_place_pdi_page)
{
@ -2892,7 +2892,7 @@ PHP_FUNCTION(pdf_get_pdi_parameter)
}
/* }}} */
/* {{{ proto double pdf_get_pdi_value(int pdf, string key, int doc, int page, int index);
/* {{{ proto float pdf_get_pdi_value(int pdf, string key, int doc, int page, int index);
* Get the contents of some PDI document parameter with numerical type. */
PHP_FUNCTION(pdf_get_pdi_value)
{
@ -2921,7 +2921,7 @@ PHP_FUNCTION(pdf_get_pdi_value)
}
/* }}} */
/* {{{ proto int pdf_begin_pattern(int pdf, double width, double height, double xstep, double ystep, int painttype);
/* {{{ proto int pdf_begin_pattern(int pdf, float width, float height, float xstep, float ystep, int painttype);
* Start a new pattern definition. */
PHP_FUNCTION(pdf_begin_pattern)
{
@ -2971,7 +2971,7 @@ PHP_FUNCTION(pdf_end_pattern)
}
/* }}} */
/* {{{ proto int pdf_begin_template(int pdf, double width, double height);
/* {{{ proto int pdf_begin_template(int pdf, float width, float height);
* Start a new template definition. */
PHP_FUNCTION(pdf_begin_template)
{
@ -3016,7 +3016,7 @@ PHP_FUNCTION(pdf_end_template)
}
/* }}} */
/* {{{ proto void pdf_setcolor(int pdf, string type, string colorspace, double c1 [, double c2 [, double c3 [, double c4]]]);
/* {{{ proto void pdf_setcolor(int pdf, string type, string colorspace, float c1 [, float c2 [, float c3 [, float c4]]]);
* Set the current color space and color. */
PHP_FUNCTION(pdf_setcolor)
{
@ -3104,7 +3104,7 @@ PHP_FUNCTION(pdf_makespotcolor)
}
/* }}} */
/* {{{ proto void pdf_arcn(int pdf, double x, double y, double r, double alpha, double beta);
/* {{{ proto void pdf_arcn(int pdf, float x, float y, float r, float alpha, float beta);
* Draw a clockwise circular arc from alpha to beta degrees. */
PHP_FUNCTION(pdf_arcn)
{
@ -3175,7 +3175,7 @@ PHP_FUNCTION(pdf_add_thumbnail)
}
/* }}} */
/* {{{ proto void pdf_setmatrix(int pdf, double a, double b, double c, double d, double e, double f)
/* {{{ proto void pdf_setmatrix(int pdf, float a, float b, float c, float d, float e, float f)
Explicitly set the current transformation matrix. */
PHP_FUNCTION(pdf_setmatrix)
{

View File

@ -1296,7 +1296,7 @@ PHP_FUNCTION(intval)
}
/* }}} */
/* {{{ proto double floatval(mixed var)
/* {{{ proto float floatval(mixed var)
Get the float value of a variable */
PHP_FUNCTION(floatval)
{

View File

@ -125,7 +125,7 @@ PHP_RSHUTDOWN_FUNCTION(filestat) {
return SUCCESS;
}
/* {{{ proto double disk_total_space(string path)
/* {{{ proto float disk_total_space(string path)
Get total disk space for filesystem that path is on */
PHP_FUNCTION(disk_total_space)
{
@ -228,7 +228,7 @@ PHP_FUNCTION(disk_total_space)
}
/* }}} */
/* {{{ proto double disk_free_space(string path)
/* {{{ proto float disk_free_space(string path)
Get free disk space for filesystem that path is on */
PHP_FUNCTION(disk_free_space)
{

View File

@ -284,14 +284,14 @@ static void php_fsockopen(INTERNAL_FUNCTION_PARAMETERS, int persistent) {
}
/* }}} */
/* {{{ proto int fsockopen(string hostname, int port [, int errno [, string errstr [, double timeout]]])
/* {{{ proto int fsockopen(string hostname, int port [, int errno [, string errstr [, float timeout]]])
Open Internet or Unix domain socket connection */
PHP_FUNCTION(fsockopen)
{
php_fsockopen(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
}
/* }}} */
/* {{{ proto int pfsockopen(string hostname, int port [, int errno [, string errstr [, double timeout]]])
/* {{{ proto int pfsockopen(string hostname, int port [, int errno [, string errstr [, float timeout]]])
Open persistent Internet or Unix domain socket connection */
PHP_FUNCTION(pfsockopen)
{

View File

@ -108,7 +108,7 @@ PHP_RINIT_FUNCTION(lcg)
return SUCCESS;
}
/* {{{ proto double lcg_value()
/* {{{ proto float lcg_value()
Returns a value from the combined linear congruential generator */
PHP_FUNCTION(lcg_value)
{

View File

@ -61,7 +61,7 @@ PHP_FUNCTION(abs)
}
/* }}} */
/* {{{ proto double ceil(double number)
/* {{{ proto float ceil(float number)
Returns the next highest integer value of the number */
PHP_FUNCTION(ceil)
{
@ -83,7 +83,7 @@ PHP_FUNCTION(ceil)
}
/* }}} */
/* {{{ proto double floor(double number)
/* {{{ proto float floor(float number)
Returns the next lowest integer value from the number */
PHP_FUNCTION(floor)
@ -108,7 +108,7 @@ PHP_FUNCTION(floor)
/* }}} */
/* {{{ proto double round(double number [, int precision])
/* {{{ proto float round(float number [, int precision])
Returns the number rounded to specified precision. */
PHP_FUNCTION(round)
{
@ -158,7 +158,7 @@ PHP_FUNCTION(round)
}
}
/* }}} */
/* {{{ proto double sin(double number)
/* {{{ proto float sin(float number)
Returns the sine of the number in radians */
PHP_FUNCTION(sin)
@ -174,7 +174,7 @@ PHP_FUNCTION(sin)
}
/* }}} */
/* {{{ proto double cos(double number)
/* {{{ proto float cos(float number)
Returns the cosine of the number in radians */
PHP_FUNCTION(cos)
@ -189,7 +189,7 @@ PHP_FUNCTION(cos)
Z_TYPE_P(return_value) = IS_DOUBLE;
}
/* }}} */
/* {{{ proto double tan(double number)
/* {{{ proto float tan(float number)
Returns the tangent of the number in radians */
PHP_FUNCTION(tan)
{
@ -204,7 +204,7 @@ PHP_FUNCTION(tan)
}
/* }}} */
/* {{{ proto double asin(double number)
/* {{{ proto float asin(float number)
Returns the arc sine of the number in radians */
PHP_FUNCTION(asin)
@ -220,7 +220,7 @@ PHP_FUNCTION(asin)
}
/* }}} */
/* {{{ proto double acos(double number)
/* {{{ proto float acos(float number)
Return the arc cosine of the number in radians */
PHP_FUNCTION(acos)
@ -236,7 +236,7 @@ PHP_FUNCTION(acos)
}
/* }}} */
/* {{{ proto double atan(double number)
/* {{{ proto float atan(float number)
Returns the arc tangent of the number in radians */
PHP_FUNCTION(atan)
@ -252,7 +252,7 @@ PHP_FUNCTION(atan)
}
/* }}} */
/* {{{ proto double atan2(double y, double x)
/* {{{ proto float atan2(float y, float x)
Returns the arc tangent of y/x, with the resulting quadrant determined by the signs of y and x */
PHP_FUNCTION(atan2)
@ -269,7 +269,7 @@ PHP_FUNCTION(atan2)
}
/* }}} */
/* {{{ proto double sinh(double number)
/* {{{ proto float sinh(float number)
Returns the hyperbolic sine of the number,
defined as (exp(number) - exp(-number))/2 */
@ -286,7 +286,7 @@ PHP_FUNCTION(sinh)
}
/* }}} */
/* {{{ proto double cosh(double number)
/* {{{ proto float cosh(float number)
Returns the hyperbolic cosine of the number,
defined as (exp(number) + exp(-number))/2 */
@ -302,7 +302,7 @@ PHP_FUNCTION(cosh)
Z_TYPE_P(return_value) = IS_DOUBLE;
}
/* }}} */
/* {{{ proto double tanh(double number)
/* {{{ proto float tanh(float number)
Returns the hyperbolic tangent of the number,
defined as sinh(number)/cosh(number) */
PHP_FUNCTION(tanh)
@ -320,7 +320,7 @@ PHP_FUNCTION(tanh)
/* }}} */
#ifndef PHP_WIN32
/* {{{ proto double asinh(double number)
/* {{{ proto float asinh(float number)
Returns the inverse hyperbolic sine of the number,
i.e. the value whose hyperbolic sine is number */
@ -337,7 +337,7 @@ PHP_FUNCTION(asinh)
}
/* }}} */
/* {{{ proto double acosh(double number)
/* {{{ proto float acosh(float number)
Returns the inverse hyperbolic cosine of the number,
i.e. the value whose hyperbolic cosine is number */
@ -354,7 +354,7 @@ PHP_FUNCTION(acosh)
}
/* }}} */
/* {{{ proto double atanh(double number)
/* {{{ proto float atanh(float number)
Returns the inverse hyperbolic tangent of the number,
i.e. the value whose hyperbolic tangent is number */
@ -373,7 +373,7 @@ PHP_FUNCTION(atanh)
/* }}} */
#endif
/* {{{ proto double pi(void)
/* {{{ proto float pi(void)
Returns an approximation of pi */
PHP_FUNCTION(pi)
@ -495,7 +495,7 @@ PHP_FUNCTION(pow)
}
/* }}} */
/* {{{ proto double exp(double number)
/* {{{ proto float exp(float number)
Returns e raised to the power of the number */
PHP_FUNCTION(exp)
@ -514,7 +514,7 @@ PHP_FUNCTION(exp)
#ifndef PHP_WIN32
/* {{{ proto double expm1(double number)
/* {{{ proto float expm1(float number)
Returns exp(number) - 1, computed in a way that accurate even when
the value of number is close to zero
WARNING: this function is expermental: it could change its name or
@ -534,7 +534,7 @@ PHP_FUNCTION(expm1)
}
/* }}} */
/* {{{ proto double log1p(double number)
/* {{{ proto float log1p(float number)
Returns log(1 + number), computed in a way that accurate even when
the value of number is close to zero
WARNING: this function is expermental: it could change its name or
@ -556,7 +556,7 @@ PHP_FUNCTION(log1p)
/* }}} */
#endif
/* {{{ proto double log(double number)
/* {{{ proto float log(float number)
Returns the natural logarithm of the number */
PHP_FUNCTION(log)
@ -572,7 +572,7 @@ PHP_FUNCTION(log)
}
/* }}} */
/* {{{ proto double log10(double number)
/* {{{ proto float log10(float number)
Returns the base-10 logarithm of the number */
PHP_FUNCTION(log10)
@ -588,7 +588,7 @@ PHP_FUNCTION(log10)
}
/* }}} */
/* {{{ proto double sqrt(double number)
/* {{{ proto float sqrt(float number)
Returns the square root of the number */
PHP_FUNCTION(sqrt)
@ -606,7 +606,7 @@ PHP_FUNCTION(sqrt)
/* }}} */
/* {{{ proto double hypot(double num1, double num2)
/* {{{ proto float hypot(float num1, float num2)
Returns sqrt( num1*num1 + num2*num2)
WARNING: this function is expermental: it could change its name or
disappear in the next version of PHP!
@ -627,7 +627,7 @@ PHP_FUNCTION(hypot)
/* }}} */
/* {{{ proto double deg2rad(double number)
/* {{{ proto float deg2rad(float number)
Converts the number in degrees to the radian equivalent */
PHP_FUNCTION(deg2rad)
@ -642,7 +642,7 @@ PHP_FUNCTION(deg2rad)
}
/* }}} */
/* {{{ proto double rad2deg(double number)
/* {{{ proto float rad2deg(float number)
Converts the radian number to the equivalent number in degrees */
PHP_FUNCTION(rad2deg)
@ -1034,7 +1034,7 @@ char *_php_math_number_format(double d, int dec, char dec_point, char thousand_s
}
/* }}} */
/* {{{ proto string number_format(double number [, int num_decimal_places [, string dec_seperator, string thousands_seperator]])
/* {{{ proto string number_format(float number [, int num_decimal_places [, string dec_seperator, string thousands_seperator]])
Formats a number with grouped thousands */
PHP_FUNCTION(number_format)

View File

@ -2108,7 +2108,7 @@ static int php_similar_char(const char *txt1, int len1,
}
/* }}} */
/* {{{ proto int similar_text(string str1, string str2 [, double percent])
/* {{{ proto int similar_text(string str1, string str2 [, float percent])
Calculates the similarity between two strings */
PHP_FUNCTION(similar_text)
{

View File

@ -173,7 +173,7 @@ PHP_RINIT_FUNCTION(swf)
}
/* }}} */
/* {{{ proto void swf_openfile(string name, double xsize, double ysize, double framerate, double r, double g, double b)
/* {{{ proto void swf_openfile(string name, float xsize, float ysize, float framerate, float r, float g, float b)
Create a Shockwave Flash file given by name, with width xsize and height ysize at a frame rate of framerate and a background color specified by a red value of r, green value of g and a blue value of b */
PHP_FUNCTION(swf_openfile)
{
@ -329,7 +329,7 @@ void col_swf(INTERNAL_FUNCTION_PARAMETERS, int opt) {
}
/* }}} */
/* {{{ proto void swf_mulcolor(double r, double g, double b, double a)
/* {{{ proto void swf_mulcolor(float r, float g, float b, float a)
Sets the global multiply color to the rgba value specified */
PHP_FUNCTION(swf_mulcolor)
{
@ -337,7 +337,7 @@ PHP_FUNCTION(swf_mulcolor)
}
/* }}} */
/* {{{ proto void swf_addcolor(double r, double g, double b, double a)
/* {{{ proto void swf_addcolor(float r, float g, float b, float a)
Set the global add color to the rgba value specified */
PHP_FUNCTION(swf_addcolor)
{
@ -559,7 +559,7 @@ void php_swf_define(INTERNAL_FUNCTION_PARAMETERS, int opt)
}
/* }}} */
/* {{{ proto void swf_defineline(int objid, double x1, double y1, double x2, double y2, double width)
/* {{{ proto void swf_defineline(int objid, float x1, float y1, float x2, float y2, float width)
Create a line with object id, objid, starting from x1, y1 and going to x2, y2 with width, width */
PHP_FUNCTION(swf_defineline)
{
@ -567,7 +567,7 @@ PHP_FUNCTION(swf_defineline)
}
/* }}} */
/* {{{ proto void swf_definerect(int objid, double x1, double y1, double x2, double y2, double width)
/* {{{ proto void swf_definerect(int objid, float x1, float y1, float x2, float y2, float width)
Create a rectangle with object id, objid, the upper lefthand coordinate is given by x1, y1 the bottom right coordinate is x2, y2 and with is the width of the line */
PHP_FUNCTION(swf_definerect)
{
@ -575,7 +575,7 @@ PHP_FUNCTION(swf_definerect)
}
/* }}} */
/* {{{ proto void swf_definepoly(int obj_id, array coords, int npoints, double width)
/* {{{ proto void swf_definepoly(int obj_id, array coords, int npoints, float width)
Define a Polygon from an array of x,y coordinates, coords. */
PHP_FUNCTION(swf_definepoly)
{
@ -630,7 +630,7 @@ PHP_FUNCTION(swf_startshape)
}
/* }}} */
/* {{{ proto void swf_shapelinesolid(double r, double g, double b, double a, double width)
/* {{{ proto void swf_shapelinesolid(float r, float g, float b, float a, float width)
Create a line with color defined by rgba, and a width of width */
PHP_FUNCTION(swf_shapelinesolid)
{
@ -657,7 +657,7 @@ PHP_FUNCTION(swf_shapefilloff)
}
/* }}} */
/* {{{ proto void swf_shapefillsolid(double r, double g, double b, double a)
/* {{{ proto void swf_shapefillsolid(float r, float g, float b, float a)
Sets the current fill style to a solid fill with the specified rgba color */
PHP_FUNCTION(swf_shapefillsolid)
{
@ -731,7 +731,7 @@ void php_swf_shape(INTERNAL_FUNCTION_PARAMETERS, int opt)
}
/* }}} */
/* {{{ proto void swf_shapemoveto(double x, double y)
/* {{{ proto void swf_shapemoveto(float x, float y)
swf_shapemoveto moves the current position to the given x,y. */
PHP_FUNCTION(swf_shapemoveto)
{
@ -739,7 +739,7 @@ PHP_FUNCTION(swf_shapemoveto)
}
/* }}} */
/* {{{ proto void swf_shapelineto(double x, double y)
/* {{{ proto void swf_shapelineto(float x, float y)
Draws a line from the current position to x,y, the current position is then set to x,y */
PHP_FUNCTION(swf_shapelineto)
{
@ -747,7 +747,7 @@ PHP_FUNCTION(swf_shapelineto)
}
/* }}} */
/* {{{ proto void swf_shapecurveto(double x1, double y1, double x2, double y2)
/* {{{ proto void swf_shapecurveto(float x1, float y1, float x2, float y2)
Draws a quadratic bezier curve starting at the current position using x1, y1 as an off curve control point and using x2, y2 as the end point. The current position is then set to x2, y2. */
PHP_FUNCTION(swf_shapecurveto)
{
@ -765,7 +765,7 @@ PHP_FUNCTION(swf_shapecurveto)
}
/* }}} */
/* {{{ proto void swf_shapecurveto3(double x1, double y1, double x2, double y2, double x3, double y3)
/* {{{ proto void swf_shapecurveto3(float x1, float y1, float x2, float y2, float x3, float y3)
Draws a cubic bezier curve starting at the current position using x1, y1 and x2, y2 as off curve control points and using x3,y3 as the end point. The current position is then sent to x3, y3 */
PHP_FUNCTION(swf_shapecurveto3)
{
@ -786,7 +786,7 @@ PHP_FUNCTION(swf_shapecurveto3)
}
/* }}} */
/* {{{ proto void swf_shapearc(double x, double y, double r, double ang1, double ang2)
/* {{{ proto void swf_shapearc(float x, float y, float r, float ang1, float ang2)
Draws a circular arc from ang1 to ang2. The center of the circle is given by x, and y. r specifies the radius of the arc */
PHP_FUNCTION(swf_shapearc)
{
@ -844,7 +844,7 @@ PHP_FUNCTION(swf_setfont)
}
/* }}} */
/* {{{ proto void swf_fontsize(double height)
/* {{{ proto void swf_fontsize(float height)
Sets the current font's height to the value specified by height */
PHP_FUNCTION(swf_fontsize)
{
@ -859,7 +859,7 @@ PHP_FUNCTION(swf_fontsize)
}
/* }}} */
/* {{{ proto void swf_fontslant(double slant)
/* {{{ proto void swf_fontslant(float slant)
Set the current font slant to the angle indicated by slant */
PHP_FUNCTION(swf_fontslant)
{
@ -1084,7 +1084,7 @@ void php_swf_geo_same(INTERNAL_FUNCTION_PARAMETERS, int opt)
}
/* }}} */
/* {{{ proto void swf_viewport(double xmin, double xmax, double ymin, double ymax)
/* {{{ proto void swf_viewport(float xmin, float xmax, float ymin, float ymax)
Selects an area on the drawing surface for future drawing */
PHP_FUNCTION(swf_viewport)
{
@ -1092,7 +1092,7 @@ PHP_FUNCTION(swf_viewport)
}
/* }}} */
/* {{{ proto void swf_ortho2(double xmin, double xmax, double ymin, double ymax)
/* {{{ proto void swf_ortho2(float xmin, float xmax, float ymin, float ymax)
Defines a 2-D orthographic mapping of user coordinates onto the current viewport */
PHP_FUNCTION(swf_ortho2)
{
@ -1100,7 +1100,7 @@ PHP_FUNCTION(swf_ortho2)
}
/* }}} */
/* {{{ proto void swf_ortho(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
/* {{{ proto void swf_ortho(float xmin, float xmax, float ymin, float ymax, float zmin, float zmax)
Defines an orthographic mapping of user coordinates onto the current viewport */
PHP_FUNCTION(swf_ortho)
{
@ -1122,7 +1122,7 @@ PHP_FUNCTION(swf_ortho)
}
/* }}} */
/* {{{ proto void swf_polarview(double dist, double azimuth, double incidence, double twist)
/* {{{ proto void swf_polarview(float dist, float azimuth, float incidence, float twist)
Defines he viewer's position in polar coordinates */
PHP_FUNCTION(swf_polarview)
{
@ -1130,7 +1130,7 @@ PHP_FUNCTION(swf_polarview)
}
/* }}} */
/* {{{ proto void swf_perspective(double fovy, double aspect, double near, double far)
/* {{{ proto void swf_perspective(float fovy, float aspect, float near, float far)
Define a perspective projection transformation. */
PHP_FUNCTION(swf_perspective)
{
@ -1138,7 +1138,7 @@ PHP_FUNCTION(swf_perspective)
}
/* }}} */
/* {{{ proto void swf_lookat(double vx, double vy, double vz, double px, double py, double pz, double twist)
/* {{{ proto void swf_lookat(float vx, float vy, float vz, float px, float py, float pz, float twist)
Defines a viewing transformation by giving the view position vx, vy, vz, and the coordinates of a reference point in the scene at px, py, pz. Twist controls a rotation along the viewer's z axis */
PHP_FUNCTION(swf_lookat)
{
@ -1176,7 +1176,7 @@ PHP_FUNCTION(swf_popmatrix)
}
/* }}} */
/* {{{ proto void swf_scale(double x, double y, double z)
/* {{{ proto void swf_scale(float x, float y, float z)
Scale the current transformation */
PHP_FUNCTION(swf_scale)
{
@ -1193,7 +1193,7 @@ PHP_FUNCTION(swf_scale)
}
/* }}} */
/* {{{ proto void swf_translate(double x, double y, double z)
/* {{{ proto void swf_translate(float x, float y, float z)
Translate the current transformation */
PHP_FUNCTION(swf_translate)
{
@ -1210,7 +1210,7 @@ PHP_FUNCTION(swf_translate)
}
/* }}} */
/* {{{ proto void swf_rotate(double angle, string axis)
/* {{{ proto void swf_rotate(float angle, string axis)
Rotate the current transformation by the given angle about x, y, or z axis. The axis may be 'x', 'y', or 'z' */
PHP_FUNCTION(swf_rotate)
{