Ticket #24041: patch-src-texture.diff

File patch-src-texture.diff, 1.2 KB (added by adfernandes (Andrew Fernandes), 15 years ago)
  • src/texture.c

     
    3939
    4040/*
    4141 This variable is used as a temporary global value which
    42  is used to communicate with qsort and psort since we have no
     42 is used to communicate with qsort and p_sort since we have no
    4343 provision from textur to pass additional arguments.
    4444
    4545 In a multi-threaded version, we would need to protect this.
    4646*/
    4747static ggobid *CurrentGGobi;
    4848gint
    49 psort (const void *arg1, const void *arg2)
     49p_sort (const void *arg1, const void *arg2)
    5050{
    5151  ggobid *gg = CurrentGGobi;
    5252
     
    195195
    196196  indx = (gint *) g_malloc (ny * sizeof (gint));
    197197/*
    198  * gy is needed solely for the psort routine:  psort is used by
     198 * gy is needed solely for the p_sort routine:  p_sort is used by
    199199 * qsort to put an index vector in the order that yy will assume.
    200200*/
    201201  gg->p1d.gy = (gfloat *) g_malloc (ny * sizeof (gfloat));
     
    208208
    209209  CurrentGGobi = gg;
    210210
    211   qsort ((void *) indx, (gsize) ny, sizeof (gint), psort);
     211  qsort ((void *) indx, (gsize) ny, sizeof (gint), p_sort);
    212212  qsort ((void *) yy, (gsize) ny, sizeof (gfloat), fcompare);
    213213  CurrentGGobi = NULL;
    214214/*