X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FGList.h;h=e4d8ff8f1c28d13d3918f2b62ec479c8462b0e99;hb=eb361a0f099d689011066b71a9d5e5d9fd94b913;hp=0ef4fd78168905cb557c4dead52422bd6042f498;hpb=3df3a8d12d7a516579a4eae276b077c015df0f70;p=swftools.git diff --git a/pdf2swf/xpdf/GList.h b/pdf2swf/xpdf/GList.h index 0ef4fd7..e4d8ff8 100644 --- a/pdf2swf/xpdf/GList.h +++ b/pdf2swf/xpdf/GList.h @@ -2,14 +2,16 @@ // // GList.h // -// Copyright 2001-2002 Glyph & Cog, LLC +// Copyright 2001-2003 Glyph & Cog, LLC // //======================================================================== #ifndef GLIST_H #define GLIST_H -#ifdef __GNUC__ +#include + +#ifdef USE_GCC_PRAGMAS #pragma interface #endif @@ -56,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