Skip to content

Commit

Permalink
map for <
Browse files Browse the repository at this point in the history
  • Loading branch information
jweinst1 committed Jun 10, 2018
1 parent e78c4bb commit 6ec8602
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/flow/WindComp.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,11 @@ int WindComp_check_lt(unsigned char** arg)
}

/*Applies series of operations to item in comp*/
// THROWS with return of 0
int WindComp_map(unsigned char* ins, const unsigned char* insEnd)
{
unsigned moveChecker = 0;
int boolResult = 0;
while(ins != insEnd)
{
switch(*ins)
Expand Down Expand Up @@ -244,6 +246,14 @@ int WindComp_map(unsigned char* ins, const unsigned char* insEnd)
ins++;
WindComp_clear();
return 1;
case WindType_Lt:
ins++;
// todo: refactor
boolResult = WindComp_check_lt(&ins);
WindComp_BUF[0] = WindType_Bool;
WindComp_BUF[1] = boolResult;
WindComp_ITEM_LEN = sizeof(unsigned char) + sizeof(unsigned char);
break;
case WindType_Sep:
ins++;
break;
Expand All @@ -254,6 +264,7 @@ int WindComp_map(unsigned char* ins, const unsigned char* insEnd)
return 1;
}

// todo: throw or not?
int WindComp_filter(unsigned char* ins, const unsigned char* insEnd)
{
//unsigned moveChecker = 0;
Expand Down

0 comments on commit 6ec8602

Please sign in to comment.