*** empty log message ***

This commit is contained in:
hyung-hwan 2006-04-14 11:14:58 +00:00
parent 6dd18f6e07
commit c99641b932

View File

@ -1,5 +1,5 @@
/* /*
* $Id: awk.c,v 1.20 2006-04-14 11:13:06 bacon Exp $ * $Id: awk.c,v 1.21 2006-04-14 11:14:58 bacon Exp $
*/ */
#include <xp/awk/awk.h> #include <xp/awk/awk.h>
@ -47,7 +47,7 @@ static xp_ssize_t process_source (int cmd, void* arg, xp_char_t* data, xp_size_t
#include <mcheck.h> #include <mcheck.h>
#endif #endif
#if defined(_SCO_DS) #if defined(vms) || defined(__vms) || defined(_SCO_DS)
int main (int argc, char* argv[]) int main (int argc, char* argv[])
#else #else
int xp_main (int argc, xp_char_t* argv[]) int xp_main (int argc, xp_char_t* argv[])
@ -59,13 +59,6 @@ int xp_main (int argc, xp_char_t* argv[])
mtrace (); mtrace ();
#endif #endif
#if 0
if (argc != 2) {
xp_printf (XP_TEXT("Usage: %s file\n"), argv[0]);
return -1;
}
#endif
if ((awk = xp_awk_open()) == XP_NULL) if ((awk = xp_awk_open()) == XP_NULL)
{ {
xp_printf (XP_TEXT("Error: cannot open awk\n")); xp_printf (XP_TEXT("Error: cannot open awk\n"));
@ -85,7 +78,7 @@ int xp_main (int argc, xp_char_t* argv[])
if (argc == 2) if (argc == 2)
{ {
#if defined(_SCO_DS) #if defined(vms) || defined(__vms) || defined(_SCO_DS)
if (strcmp(argv[1], "-m") == 0) if (strcmp(argv[1], "-m") == 0)
#else #else
if (xp_strcmp(argv[1], XP_TEXT("-m")) == 0) if (xp_strcmp(argv[1], XP_TEXT("-m")) == 0)