Skip to content
Permalink
Browse files

Remove comments that used to have value

  • Loading branch information...
aaronryank committed Jan 7, 2017
1 parent e384cdd commit b4476319dec5a3731435004c72bfe89d7373f408
Showing with 1 addition and 27 deletions.
  1. +0 −6 equation.c
  2. +0 −2 fileops.c
  3. +0 −3 jump.c
  4. +1 −6 logic.c
  5. +0 −4 rk-func.c
  6. +0 −6 variable.c
@@ -9,7 +9,6 @@
enum { NOTHING, MULT, DIV, MOD, PLUS, MINUS, AND, OR, XOR };
// x / % + - & | ^

// jump add_op
struct eq_keyword add_op(int type, int chrval)
{
struct eq_keyword temp;
@@ -20,7 +19,6 @@ struct eq_keyword add_op(int type, int chrval)
return temp;
}

// jump assign_eq
void assign_eq(void)
{
/* shorten, since they're used so much */
@@ -92,7 +90,6 @@ void assign_eq(void)
}
}

// jump reset_eq
/* reset eq variables */
void reset_eq(void)
{
@@ -103,7 +100,6 @@ void reset_eq(void)
eq.in = eq.last = eq.idx = 0;
}

// jump geteq
int geteq(char *val)
{
if (chr_eq(*val, "x/%+-&|^") && (*(val+1) == 0)) {
@@ -151,7 +147,6 @@ void mod_eq_op(int (*op)[], int idx, int order)
}
}

// jump compute_eq
int compute_eq(void)
{
int i, j, s, val;
@@ -194,7 +189,6 @@ int compute_eq(void)
return op[0];
}

// jump add_eq
int add_eq(char *buf)
{
#ifdef EQ_DEBUG
@@ -8,7 +8,6 @@

int breaklevel = 0;

// jump wait_for_character
void wait_for_character(FILE *f, int delim, int print)
{
static int escape = 0;
@@ -20,7 +19,6 @@ void wait_for_character(FILE *f, int delim, int print)
}

// this is kinda bad but I don't know how to improve it.
// jump break_from
void break_from(FILE *f, char *open, char *close)
{
#ifdef WHILE_DEBUG
3 jump.c
@@ -6,7 +6,6 @@

#pragma GCC diagnostic ignored "-Wpointer-to-int-cast"

// jump add_jump
void add_jump(FILE *src, char *name)
{
int i = jump_count;
@@ -26,7 +25,6 @@ void add_jump(FILE *src, char *name)
jump_count++;
}

// jump jump * oh crap *
/* I will be using goto statements in this function
that implements gotos. Deal with it. */
void jump(FILE *src, char *jump_name)
@@ -41,7 +39,6 @@ void jump(FILE *src, char *jump_name)
fseek(src, jumps[i].offset, SEEK_SET);
}

// jump existing_jump
int existing_jump(char *name)
{
int i;
@@ -9,8 +9,6 @@
enum { UNDEF, LT, GT, LEQ, GEQ, EQ, NEQ, AND, OR };
/* < > <= >= == != && || */


// jump reset_logic reset logic variables
void reset_logic(void)
{
int i;
@@ -23,7 +21,7 @@ void reset_logic(void)
memset(logic.keyword, 0, MAXWORD);
}

// jump getop get operator index from val
/* get operator index from val */
int getop(char *val)
{
enum {
@@ -78,7 +76,6 @@ void mod_logic_op(int (*op)[], int idx, int order)
}
}

// jump compute_logic
int compute_logic(void)
{
int op[100] = {0};
@@ -124,7 +121,6 @@ int compute_logic(void)
return op[0];
}

// jump add_logic
void add_logic(char *buf)
{
if ((!strcmp(buf, "then") && !strcmp(logic.keyword, "if")) ||
@@ -147,7 +143,6 @@ void add_logic(char *buf)
}
}

// jump set_logic
void set_logic(char *buf)
{
logic.in = 1;
@@ -9,7 +9,6 @@

char escape_code[100];

// jump rkread
void rkread(int idx)
{
char *buf;
@@ -50,7 +49,6 @@ void rkread(int idx)
free(buf);
}

// jump remove_int
/* remove count integers from arr, starting at index idx */
void remove_int(int (*arr)[], int idx, int count)
{
@@ -61,7 +59,6 @@ void remove_int(int (*arr)[], int idx, int count)
(*arr)[j] = (*arr)[j+1];
}

// jump rkprint
void rkprint(int idx)
{
int i = 0;
@@ -98,7 +95,6 @@ void rkprint(int idx)
free(str);
}

// jump rkputchar
void rkputchar(char c)
{
static volatile int escape = 0;
@@ -6,7 +6,6 @@

#pragma GCC diagnostic ignored "-Wpointer-to-int-cast"

// jump set_next_variable
int set_next_variable(char *buf)
{
if (!strcmp(buf, "var")) {
@@ -36,7 +35,6 @@ int set_next_variable(char *buf)
return 1;
}

// jump create_variable
void create_variable(char *name)
{
#ifdef VAR_DEBUG
@@ -68,7 +66,6 @@ void create_variable(char *name)
#endif
}

// jump destroy_variable
void destroy_variable(int idx)
{
if ((idx < 0) || (idx >= 100))
@@ -92,7 +89,6 @@ void destroy_variable(int idx)
variable_count--;
}

// jump function
void function(signed int idx, char *val)
{
int m = 0;
@@ -125,7 +121,6 @@ void function(signed int idx, char *val)
destroy_variable(idx);
}

// jump getval
/* get value from variable or magic number stored in val */
int getval(char *val)
{
@@ -152,7 +147,6 @@ int getval(char *val)
return 0;
}

// jump existing_variable
int existing_variable(char *name)
{
int i;

0 comments on commit b447631

Please sign in to comment.
You can’t perform that action at this time.