Skip to content

Commit

Permalink
Update Makefile, rep, and 4 more files...
Browse files Browse the repository at this point in the history
  • Loading branch information
hoefkensj committed Jan 13, 2024
1 parent b7d3703 commit efcf353
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Binary file modified build/bin/rep
Binary file not shown.
Binary file modified build/bin/rep.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion src/rep/envvar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/rep/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -88,7 +88,6 @@ UI32 check_Opts(UI32 argc, char **argv ,UI32 pOpts[8],UI32 pArgs[2]) {
}//fi
}//done

printbin(STATUS);

return status;
} //Opts
Expand Down
1 change: 0 additions & 1 deletion src/rep/tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -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<<i))?"1":"0");
}
Expand Down

0 comments on commit efcf353

Please sign in to comment.