pike.git / lib / modules / Graphics.pmod / Graph.pmod / create_pie.pike

version» Context lines:

pike.git/lib/modules/Graphics.pmod/Graph.pmod/create_pie.pike:3:   #include "graph.h"      // import Image;   import Array;   import Stdio;      inherit "polyline.pike";   inherit "create_graph.pike";   inherit "create_bars.pike";    - constant cvs_version = "$Id: create_pie.pike,v 1.1 1999/09/30 13:04:05 hedda Exp $"; + constant cvs_version = "$Id: create_pie.pike,v 1.2 2000/08/28 03:07:27 hedda Exp $";      /*    * name = "BG: Create pies";    * doc = "Business Graphics sub-module for drawing pie-charts.";    */      /*   These functions were written by Henrik "Hedda" Wallin (hedda@idonex.se)   Create_pie can draw pie charts in different forms.   
pike.git/lib/modules/Graphics.pmod/Graph.pmod/create_pie.pike:63:    numbers[i]*=-1.0;                //////////////////////             -  object* text; +  array(object) text;    object notext;    int ymaxtext;    int xmaxtext;       int imysize;    int imxsize; -  float *arr=allocate(802); -  float *arr2=allocate(802); -  float *arr3=allocate(802); -  float *arrplus=allocate(802); -  float *arrpp=allocate(802); +  array(float) arr=allocate(802); +  array(float) arr2=allocate(802); +  array(float) arr3=allocate(802); +  array(float) arrplus=allocate(802); +  array(float) arrpp=allocate(802);       int yc;    int xc;    int xr;    int yr;       mixed sum;    int sum2;    -  int* pnumbers=allocate(sizeof(numbers)); -  int* order=indices(numbers); +  array(int) pnumbers=allocate(sizeof(numbers)); +  array(int) order=indices(numbers);       int edge_nr=0;             //create the text objects    if (names)    text=allocate(sizeof(names));       if (diagram_data["3Ddepth"]>diagram_data["ysize"]/5)
pike.git/lib/modules/Graphics.pmod/Graph.pmod/create_pie.pike:387:    piediagram->polygone(arr[400..]    +arr3[..401]);    }       piediagram->setcolor(255,255,255);       //And now some shading!    if (!twoD)    {    object below; -  int *b=({70,70,70}); -  int *a=({0,0,0}); +  array(int) b=({70,70,70}); +  array(int) a=({0,0,0});          object tbild;       int imxsize=piediagram->xsize(); //diagram_data["xsize"];    int imysize=piediagram->ysize(); //diagram_data["ysize"]+diagram_data["legendsize"];       if(tone)    {