mk_cmds.c revision 004388ebfdfe2ed7dfd2d153a876dfcc22d2c006
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
*
*
* Copyright 1987, 1988 by MIT Student Information Processing Board
*
* For copyright information, see copyright.h.
*/
#include "copyright.h"
#include <stdio.h>
#include <string.h>
#include "ss_internal.h"
static const char copyright[] =
"Copyright 1987 by MIT Student Information Processing Board";
extern char *last_token;
extern FILE *output_file;
#ifndef NO_YYLINENO
extern int yylineno;
#endif
int argc;
char **argv;
{
char c_file[MAXPATHLEN];
int result;
char *path, *p, *q;
if (argc != 2) {
exit(1);
}
if (p == (char *)NULL)
p = path;
else
p++;
p = strrchr(p, '.');
if (!yyin) {
exit(1);
}
*p = '\0';
*p = '.';
if (!output_file) {
exit(1);
}
/* parse it */
/* put file descriptors back where they belong */
return result;
}
yyerror(s)
char *s;
{
#ifdef NO_YYLINENO
#else
#endif
}