diff --git a/Makefile b/Makefile index 049cfc8..fa070b8 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,11 @@ debug:clean $(CC) $(CFLAGS) -g -o $(DST)/rep $(SRC)/main.c $(SRC)/about.c $(SRC)/escape.c $(SRC)/info.c $(SRC)/parser.c $(SRC)/pipe.c $(SRC)/tools.c $(SRC)/envvar.c stable:clean $(CC) $(CFLAGS) -g -o $(DST)/rep $(SRC)/main.c $(SRC)/about.c $(SRC)/escape.c $(SRC)/info.c $(SRC)/parser.c $(SRC)/pipe.c $(SRC)/tools.c $(SRC)/envvar.c +win:cleanwin + $(ZIGCC) $(WIN) $(CFLAGS) -g -o $(DST)/rep.exe $(SRC)/main.c $(SRC)/about.c $(SRC)/escape.c $(SRC)/info.c $(SRC)/parser.c $(SRC)/pipe.c $(SRC)/tools.c $(SRC)/envvar.c clean: rm -vfr *~ build/bin/rep +cleanwin: rm -vfr *~ build/bin/rep.exe rm -vfr *~ build/bin/rep.pdp install: diff --git a/build/bin/rep b/build/bin/rep index 03f473b..5635b8c 100755 Binary files a/build/bin/rep and b/build/bin/rep differ diff --git a/build/bin/rep.pdb b/build/bin/rep.pdb index c485c6b..54bc62a 100644 Binary files a/build/bin/rep.pdb and b/build/bin/rep.pdb differ diff --git a/src/rep/envvar.c b/src/rep/envvar.c index 62044bc..0a335dd 100644 --- a/src/rep/envvar.c +++ b/src/rep/envvar.c @@ -28,7 +28,7 @@ UI32 readEnv(OPTS *envv){ val=readVar(vars[i]); if (val != NULL){ *aenv[i] = val; - printf("%s: %s\n", vars[i],*aenv[i]); + // printf("%s: %s\n", vars[i],*aenv[i]); Flag(set,E+i); } } diff --git a/src/rep/parser.c b/src/rep/parser.c index e4012c9..9e39d7a 100644 --- a/src/rep/parser.c +++ b/src/rep/parser.c @@ -77,7 +77,7 @@ UI32 check_Opts(UI32 argc, char **argv ,UI32 pOpts[8],UI32 pArgs[2]) { Flag(set,A+Repeat); } else if (Flag(get,A+Number)+Flag(get,O+Number)==0){ char first=argv[i][0]; - if ((first>48)&(first<57)){ + if ((first>47)&(first<58)){ pArgs[1] = i; Flag(set,A+Number); }else{ @@ -88,7 +88,6 @@ UI32 check_Opts(UI32 argc, char **argv ,UI32 pOpts[8],UI32 pArgs[2]) { }//fi }//done - printbin(STATUS); return status; } //Opts diff --git a/src/rep/tools.c b/src/rep/tools.c index 7bca40c..4aea947 100644 --- a/src/rep/tools.c +++ b/src/rep/tools.c @@ -2,7 +2,6 @@ #include "headers/tools.h" void printbin(UI32 var){ - int bit=0; for (int i =31; i>=0; i--){ printf("%s" ,(var&(1<