We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e333a10 commit f2a19b6Copy full SHA for f2a19b6
vipc.c renamed to src/vipc.c
@@ -6,7 +6,7 @@
6
#include <stdio.h>
7
#include <string.h>
8
#include <stdlib.h>
9
-#include <unistd.h>
+#include <getopt.h>
10
#define VERSION "VIP language Compiler Version 0.0.1\n"
11
12
void usage(char *cmd);
@@ -19,9 +19,10 @@ int main(int argc, char** argv)
19
FILE *infp,*outfp;
20
char *inputFileName,*outputFileName;
21
void (*compile[])(FILE *,FILE *)={VIPtoBinary,BinarytoVIP};
22
- int opt,idx;
+ int opt;
23
int decompile=0;
24
outputFileName = "a.out";
25
+ inputFileName=NULL;
26
while ((opt=getopt(argc,argv,"dho:v")) != -1)
27
{
28
switch(opt)
0 commit comments