expr.c (544e433a9e2a8771b8281ac58acb5c794613e705) expr.c (4356f4890792a678936c93c9196e8f7742e04535)
1/*
2 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
3 * Released under the terms of the GNU GPL v2.0.
4 */
5
6#include <stdio.h>
7#include <stdlib.h>
8#include <string.h>

--- 334 unchanged lines hidden (view full) ---

343 ;
344 }
345 return e;
346}
347
348/*
349 * e1 || e2 -> ?
350 */
1/*
2 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
3 * Released under the terms of the GNU GPL v2.0.
4 */
5
6#include <stdio.h>
7#include <stdlib.h>
8#include <string.h>

--- 334 unchanged lines hidden (view full) ---

343 ;
344 }
345 return e;
346}
347
348/*
349 * e1 || e2 -> ?
350 */
351struct expr *expr_join_or(struct expr *e1, struct expr *e2)
351static struct expr *expr_join_or(struct expr *e1, struct expr *e2)
352{
353 struct expr *tmp;
354 struct symbol *sym1, *sym2;
355
356 if (expr_eq(e1, e2))
357 return expr_copy(e1);
358 if (e1->type != E_EQUAL && e1->type != E_UNEQUAL && e1->type != E_SYMBOL && e1->type != E_NOT)
359 return NULL;

--- 47 unchanged lines hidden (view full) ---

407 expr_fprint(e1, stdout);
408 printf(") || (");
409 expr_fprint(e2, stdout);
410 printf(")?\n");
411 }
412 return NULL;
413}
414
352{
353 struct expr *tmp;
354 struct symbol *sym1, *sym2;
355
356 if (expr_eq(e1, e2))
357 return expr_copy(e1);
358 if (e1->type != E_EQUAL && e1->type != E_UNEQUAL && e1->type != E_SYMBOL && e1->type != E_NOT)
359 return NULL;

--- 47 unchanged lines hidden (view full) ---

407 expr_fprint(e1, stdout);
408 printf(") || (");
409 expr_fprint(e2, stdout);
410 printf(")?\n");
411 }
412 return NULL;
413}
414
415struct expr *expr_join_and(struct expr *e1, struct expr *e2)
415static struct expr *expr_join_and(struct expr *e1, struct expr *e2)
416{
417 struct expr *tmp;
418 struct symbol *sym1, *sym2;
419
420 if (expr_eq(e1, e2))
421 return expr_copy(e1);
422 if (e1->type != E_EQUAL && e1->type != E_UNEQUAL && e1->type != E_SYMBOL && e1->type != E_NOT)
423 return NULL;

--- 685 unchanged lines hidden ---
416{
417 struct expr *tmp;
418 struct symbol *sym1, *sym2;
419
420 if (expr_eq(e1, e2))
421 return expr_copy(e1);
422 if (e1->type != E_EQUAL && e1->type != E_UNEQUAL && e1->type != E_SYMBOL && e1->type != E_NOT)
423 return NULL;

--- 685 unchanged lines hidden ---