fix bsearch tables that must be sorted, add comment to all tables that must be sorted
This commit is contained in:
@@ -61,7 +61,8 @@ struct ConverterMapEntry {
|
||||
StrBuf* (*ConvertFunc) (const Bitmap*, const Collection*);
|
||||
};
|
||||
|
||||
/* Converter table, alphabetically sorted */
|
||||
/* Converter table */
|
||||
/* CAUTION: table must be alphabetically sorted for bsearch */
|
||||
static const ConverterMapEntry ConverterMap[] = {
|
||||
{ "geos-bitmap", GenGeosBitmap },
|
||||
{ "geos-icon", GenGeosIcon },
|
||||
|
||||
@@ -69,7 +69,8 @@ static InputFormatDesc InputFormatTable[ifCount] = {
|
||||
{ ReadPCXFile },
|
||||
};
|
||||
|
||||
/* Table that maps extensions to input formats. Must be sorted alphabetically */
|
||||
/* Table that maps extensions to input formats. */
|
||||
/* CAUTION: table must be alphabetically sorted for bsearch */
|
||||
static const FileId FormatTable[] = {
|
||||
/* Upper case stuff for obsolete operating systems */
|
||||
{ "PCX", ifPCX },
|
||||
|
||||
@@ -78,7 +78,8 @@ static OutputFormatDesc OutputFormatTable[ofCount] = {
|
||||
{ WriteCFile },
|
||||
};
|
||||
|
||||
/* Table that maps extensions to Output formats. Must be sorted alphabetically */
|
||||
/* Table that maps extensions to Output formats. */
|
||||
/* CAUTION: table must be alphabetically sorted for bsearch */
|
||||
static const FileId FormatTable[] = {
|
||||
/* Upper case stuff for obsolete operating systems */
|
||||
{ "A", ofAsm },
|
||||
|
||||
@@ -56,7 +56,8 @@ struct PaletteMapEntry {
|
||||
StrBuf* (*PaletteFunc) (const Bitmap*, const Collection*);
|
||||
};
|
||||
|
||||
/* Converter table, alphabetically sorted */
|
||||
/* Converter table */
|
||||
/* CAUTION: table must be alphabetically sorted for bsearch */
|
||||
static const PaletteMapEntry PaletteMap[] = {
|
||||
{ "lynx-palette", GenLynxPalette },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user