Skip to content

Commit f2a19b6

Browse files
committed
[rename] make source directory
1 parent e333a10 commit f2a19b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vipc.c renamed to src/vipc.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <stdio.h>
77
#include <string.h>
88
#include <stdlib.h>
9-
#include <unistd.h>
9+
#include <getopt.h>
1010
#define VERSION "VIP language Compiler Version 0.0.1\n"
1111

1212
void usage(char *cmd);
@@ -19,9 +19,10 @@ int main(int argc, char** argv)
1919
FILE *infp,*outfp;
2020
char *inputFileName,*outputFileName;
2121
void (*compile[])(FILE *,FILE *)={VIPtoBinary,BinarytoVIP};
22-
int opt,idx;
22+
int opt;
2323
int decompile=0;
2424
outputFileName = "a.out";
25+
inputFileName=NULL;
2526
while ((opt=getopt(argc,argv,"dho:v")) != -1)
2627
{
2728
switch(opt)

0 commit comments

Comments
 (0)