*** empty log message ***
This commit is contained in:
parent
f02f75b381
commit
87491fe43d
@ -1,4 +1,6 @@
|
|||||||
/* * $Id: awk.c,v 1.24 2006-03-02 15:10:59 bacon Exp $ */
|
/*
|
||||||
|
* $Id: awk.c,v 1.25 2006-03-02 15:36:30 bacon Exp $
|
||||||
|
*/
|
||||||
|
|
||||||
#include <xp/awk/awk.h>
|
#include <xp/awk/awk.h>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: map.c,v 1.1 2006-03-02 15:10:59 bacon Exp $
|
* $Id: map.c,v 1.2 2006-03-02 15:36:30 bacon Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <xp/awk/map.h>
|
#include <xp/awk/map.h>
|
||||||
@ -27,13 +27,14 @@ xp_awk_map_t* xp_awk_map_open (
|
|||||||
xp_awk_map_t* map, xp_size_t capa, void (*free_value) (void*))
|
xp_awk_map_t* map, xp_size_t capa, void (*free_value) (void*))
|
||||||
{
|
{
|
||||||
if (map == XP_NULL) {
|
if (map == XP_NULL) {
|
||||||
map = (xp_awk_map_t*) xp_malloc (xp_sizeof(xp_awk_map_t));
|
map = (xp_awk_map_t*) xp_malloc (xp_sizeof(xp_awk_map_t));
|
||||||
if (map == XP_NULL) return XP_NULL;
|
if (map == XP_NULL) return XP_NULL;
|
||||||
map->__dynamic = xp_true;
|
map->__dynamic = xp_true;
|
||||||
}
|
}
|
||||||
else map->__dynamic = xp_false;
|
else map->__dynamic = xp_false;
|
||||||
|
|
||||||
map->buck = (xp_awk_pair_t**) xp_malloc (xp_sizeof(xp_awk_pair_t*) * capa);
|
map->buck = (xp_awk_pair_t**)
|
||||||
|
xp_malloc (xp_sizeof(xp_awk_pair_t*) * capa);
|
||||||
if (map->buck == XP_NULL) {
|
if (map->buck == XP_NULL) {
|
||||||
if (map->__dynamic) xp_free (map);
|
if (map->__dynamic) xp_free (map);
|
||||||
return XP_NULL;
|
return XP_NULL;
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: run.c,v 1.3 2006-03-02 15:10:59 bacon Exp $
|
* $Id: run.c,v 1.4 2006-03-02 15:36:30 bacon Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <xp/awk/awk.h>
|
#include <xp/awk/awk.h>
|
||||||
|
|
||||||
#ifndef __STAND_ALONE
|
#ifndef __STAND_ALONE
|
||||||
#include <xp/bas/assert.h>
|
#include <xp/bas/assert.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user