corrected a lot of code using a map in awk

This commit is contained in:
2008-09-27 09:30:49 +00:00
parent ca18186e94
commit 7f9f5b1fc0
5 changed files with 79 additions and 65 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: Awk.hpp 341 2008-08-20 10:58:19Z baconevi $
* $Id: Awk.hpp 390 2008-09-26 15:30:49Z baconevi $
*
* {License}
*/
@ -39,7 +39,7 @@ public:
/** Represents the internal hash table */
typedef ase_map_t map_t;
/** Represents a key/value pair */
typedef ase_pair_t pair_t;
typedef ase_map_pair_t pair_t;
/** Represents an internal awk value */
typedef ase_awk_val_t val_t;

View File

@ -1,5 +1,5 @@
/*
* $Id: map.h 389 2008-09-26 08:01:24Z baconevi $
* $Id: map.h 390 2008-09-26 15:30:49Z baconevi $
*
* {License}
*/
@ -24,6 +24,13 @@
******
*/
/* values that can be returned by ase_map_walker_t */
enum ase_map_walk_t
{
ASE_MAP_WALK_STOP = 0,
ASE_MAP_WALK_FORWARD = 1
};
typedef struct ase_map_t ase_map_t;
typedef struct ase_map_pair_t ase_map_pair_t;
typedef enum ase_map_walk_t ase_map_walk_t;
@ -166,12 +173,6 @@ enum ase_map_id_t
ASE_MAP_VAL = 1
};
/* values that can be returned by ase_map_walker_t */
enum ase_map_walk_t
{
ASE_MAP_WALK_STOP = 0,
ASE_MAP_WALK_FORWARD = 1
};
#define ASE_MAP_COPIER_INLINE ase_map_copyinline