X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FGList.h;fp=pdf2swf%2Fxpdf%2FGList.h;h=e4d8ff8f1c28d13d3918f2b62ec479c8462b0e99;hb=85c46a8011c7fd5e4bda282266006c972ea7606b;hp=4c52489f35db22acd3103d4862cdbb6144fba8db;hpb=b0d012f83219d898e9cd92281d9996bc9ff13b5f;p=swftools.git diff --git a/pdf2swf/xpdf/GList.h b/pdf2swf/xpdf/GList.h index 4c52489..e4d8ff8 100644 --- a/pdf2swf/xpdf/GList.h +++ b/pdf2swf/xpdf/GList.h @@ -58,6 +58,11 @@ public: // Assumes 0 <= i < length. void *del(int i); + // Sort the list accoring to the given comparison function. + // NB: this sorts an array of pointers, so the pointer args need to + // be double-dereferenced. + void sort(int (*cmp)(const void *ptr1, const void *ptr2)); + //----- control // Set allocation increment to . If inc > 0, that many