*** empty log message ***
This commit is contained in:
parent
d1990ba8c7
commit
af6626d66a
@ -1,4 +1,4 @@
|
||||
SRCS = awk.c tree.c parse.c run.c sa.c
|
||||
SRCS = awk.c tree.c tab.c hash.c parse.c run.c sa.c
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
OUT = libxpawk.a
|
||||
|
||||
|
@ -1,29 +0,0 @@
|
||||
/*
|
||||
* $Id: prog.h,v 1.1 2005-12-28 15:57:27 bacon Exp $
|
||||
*/
|
||||
|
||||
#ifndef _XP_AWK_PROG_H_
|
||||
#define _XP_AWK_PROG_H_
|
||||
|
||||
|
||||
struct
|
||||
{
|
||||
/* line number */
|
||||
xp_size_t linenum;
|
||||
|
||||
union
|
||||
{
|
||||
const xp_char_t* func_name;
|
||||
} ptn;
|
||||
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
unsigned short nargs;
|
||||
xp_awk_body_t body;
|
||||
} func;
|
||||
} act;
|
||||
};
|
||||
|
||||
#endif
|
@ -48,10 +48,18 @@ static xp_ssize_t process_source (int cmd, void* arg, xp_char_t* data, xp_size_t
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __linux
|
||||
#include <mcheck.h>
|
||||
#endif
|
||||
|
||||
int xp_main (int argc, xp_char_t* argv[])
|
||||
{
|
||||
xp_awk_t awk;
|
||||
|
||||
#ifdef __linux
|
||||
mtrace ();
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
if (argc != 2) {
|
||||
xp_printf (XP_TEXT("Usage: %s file\n"), argv[0]);
|
||||
@ -77,5 +85,9 @@ int xp_main (int argc, xp_char_t* argv[])
|
||||
}
|
||||
|
||||
xp_awk_close (&awk);
|
||||
|
||||
#ifdef __linux
|
||||
muntrace ();
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user