[Mapserver-dev] change to mapservers hash tables

Steve Spicklemire steve at spvi.com
Wed Jun 23 07:48:16 EDT 2004


'nuther one. Looks like this reference was not really used?

-steve

Index: shp2pdf.c
===================================================================
RCS file: /data2/cvsroot/mapserver/shp2pdf.c,v
retrieving revision 1.2
diff -c -r1.2 shp2pdf.c
*** shp2pdf.c   4 Oct 2002 21:16:00 -0000       1.2
--- shp2pdf.c   23 Jun 2004 11:43:45 -0000
***************
*** 51,57 ****
     int PagePixelMargin = 50;
     int MapScaleFactor = 1;
     int MapPixelSize = 500;
-   hashTableObj FontHash=NULL;

     if(argc > 1 && strcmp(argv[1], "-v") == 0) {
       printf("%s\n", msGetVersion());
--- 51,56 ----


On Jun 23, 2004, at 1:45 AM, Mladen Turk wrote:

>
> Hi,
> mapswf.c
>
> Line 2180:
> msLayerWhichItems(layerPtr, MS_TRUE, MS_FALSE,
> 	msLookupHashTable(&(layerPtr->metadata)),
>       "SWFDUMPATTRIBUTES"));
> Should be:
>       msLayerWhichItems(layerPtr, MS_TRUE, MS_FALSE,
>       	msLookupHashTable(&(layerPtr->metadata),
>             "SWFDUMPATTRIBUTES"));
>
>
> Just delete an extra brace :)
>
> MT.
>
>> -----Original Message-----
>> From: mapserver-dev-admin at lists.gis.umn.edu [mailto:mapserver-dev-
>> admin at lists.gis.umn.edu] On Behalf Of Sean Gillies
>> Sent: Wednesday, June 23, 2004 1:51 AM
>> To: MapServer-Dev
>> Subject: [Mapserver-dev] change to mapservers hash tables
>>
>> Hi all,
>>
>> I recently finished work to expose Map, Layer, and Class
>> metadata in SWIG mapscript as instances of a new hash table
>> class.  This required changing mapserver's hash table from
>>
>>    typedef struct hashObj ** hashTableObj;
>>
>> to
>>
>>    typedef struct {
>>        struct hashObj **items;  /* the hash table */
>>        int              numitems;  /* number of items */
>>    } hashTableObj;
>>
>> Accordingly, I've changed the several hash table functions.
>> See maphash.h for the new prototypes.  The only real change
>> is that the functions now take a reference to hashTableObj.
>>
>> I've combed through the entire code and think I've found
>> every occurrence.  Tested it well and there shouldn't be
>> any problems, but if you run into any hash table related
>> problems let me know right away and I'll make sure it gets
>> fixed immediately.
>>
>> cheers,
>> Sean
>>
>>
>> _______________________________________________
>> Mapserver-dev mailing list
>> Mapserver-dev at lists.gis.umn.edu
>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev




More information about the mapserver-dev mailing list