Skip to content

Commit cc40c78

Browse files
committed
Added RPN
1 parent f7f3245 commit cc40c78

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

RPN/funс.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
int IsNumber (char *lexem)
1111
{
12-
//FIXME in future -- correctness of number is not checked absolutely
1312
return lexem[0] <= '9' && lexem[0] >= '0';
1413
}
1514

RPN/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ void printHelp()
2727
"Operations: +, -, *, / -- only binary ones.\n");
2828
}
2929

30-
//Ðàáîòàåò òîëüêî åñëè ëåêñåìû ðàçäåëåíû ðîâíî îäíèì ïðîáåëîì!!!
3130
char ** parceLexems(char *line, int *lexems_number)
3231
{
3332
const int max_lexems_number = 10000;

RPN/stackBridge.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ void stackBridge_push (stackBridge *S, int value)
1313
int stackBridge_pop (stackBridge *S)
1414
{
1515
if (stackBridge_is_empty(S))
16-
return -1; //BUG. Need to throw exception here.
16+
return -1;
1717
int value = stackBridge_top(S);
1818

1919
struct List *temp = S->listBegin;
@@ -35,7 +35,7 @@ int stackBridge_is_empty (const stackBridge *S)
3535

3636
int stackBridge_is_full (const stackBridge *S)
3737
{
38-
return 0; //Ñ÷èòàåì, ÷òî íèêîãäà íå ïåðåïîëíÿåòñÿ
38+
return 0;
3939
}
4040

4141
void stackBridge_init (stackBridge *S)

0 commit comments

Comments
 (0)