Skip to content

Commit

Permalink
remove JHANDLE
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed May 31, 2015
1 parent 43af970 commit a013333
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 50 deletions.
4 changes: 1 addition & 3 deletions src/backend/cgcod.c
Original file line number Diff line number Diff line change
Expand Up @@ -2538,9 +2538,7 @@ code *codelem(elem *e,regm_t *pretregs,bool constflag)
case TYuchar:
*pretregs |= BYTEREGS;
break;
#if JHANDLE
case TYjhandle:
#endif

case TYnptr:
#if TARGET_SEGMENTED
case TYsptr:
Expand Down
13 changes: 0 additions & 13 deletions src/backend/cgcv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1803,16 +1803,6 @@ unsigned cv4_typidx(type *t)
typidx = dt;
break;

#if JHANDLE
case TYjhandle:
#if SYMDEB_TDB
if (config.fulltypes == CVTDB) {
attribute |= 20;
goto L2;
}
#endif
goto Lptr;
#endif
case TYnptr:
#if MARS
if (t->Tkey)
Expand Down Expand Up @@ -2609,9 +2599,6 @@ STATIC void cv4_func(Funcsym *s)

case TYint:
case TYuint:
#if JHANDLE
case TYjhandle:
#endif
#if TARGET_SEGMENTED
case TYsptr:
case TYcptr:
Expand Down
6 changes: 0 additions & 6 deletions src/backend/cgelem.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@ int elemisone(elem *e)
case TYllong:
case TYullong:
case TYnullptr:
#if JHANDLE
case TYjhandle:
#endif
#if TARGET_SEGMENTED
case TYsptr:
case TYcptr:
Expand Down Expand Up @@ -198,9 +195,6 @@ int elemisnegone(elem *e)
case TYullong:
case TYnullptr:
case TYnptr:
#if JHANDLE
case TYjhandle:
#endif
#if TARGET_SEGMENTED
case TYsptr:
case TYcptr:
Expand Down
3 changes: 0 additions & 3 deletions src/backend/cod3.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,6 @@ regm_t regmask(tym_t tym, tym_t tyf)
case TYushort:
case TYint:
case TYuint:
#if JHANDLE
case TYjhandle:
#endif
case TYnullptr:
case TYnptr:
case TYnref:
Expand Down
9 changes: 0 additions & 9 deletions src/backend/el.c
Original file line number Diff line number Diff line change
Expand Up @@ -2517,9 +2517,6 @@ int el_match(elem *n1,elem *n2)
else
goto case_long;

#if JHANDLE
case TYjhandle:
#endif
case TYnullptr:
case TYnptr:
case TYnref:
Expand Down Expand Up @@ -2799,9 +2796,6 @@ targ_llong el_tolong(elem *e)
goto L1;
#endif

#if JHANDLE
case TYjhandle:
#endif
#if TARGET_SEGMENTED
case TYsptr:
case TYcptr:
Expand Down Expand Up @@ -3144,9 +3138,6 @@ void elem_print_const(elem *e)
case TYuchar:
dbg_printf("%d ",e->EV.Vuchar);
break;
#if JHANDLE
case TYjhandle:
#endif
#if TARGET_SEGMENTED
case TYsptr:
case TYcptr:
Expand Down
3 changes: 0 additions & 3 deletions src/backend/evalu8.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,6 @@ int boolres(elem *e)
case TYdchar:
case TYllong:
case TYullong:
#if JHANDLE
case TYjhandle:
#endif
#if TARGET_SEGMENTED
case TYsptr:
case TYcptr:
Expand Down
10 changes: 1 addition & 9 deletions src/backend/gloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1923,9 +1923,6 @@ STATIC famlist * newfamlist(tym_t ty)
c.Vldouble = 1;
break;
#if _MSDOS || __OS2__ || _WIN32 // if no byte ordering problems
#if JHANDLE
case TYjhandle:
#endif
#if TARGET_SEGMENTED
case TYsptr:
case TYcptr:
Expand Down Expand Up @@ -1959,9 +1956,7 @@ STATIC famlist * newfamlist(tym_t ty)
case TYwchar_t: // BUG: what about 4 byte wchar_t's?
c.Vshort = 1;
break;
#if JHANDLE
case TYjhandle:
#endif

#if TARGET_SEGMENTED
case TYsptr:
case TYcptr:
Expand Down Expand Up @@ -3253,9 +3248,6 @@ STATIC famlist * flcmp(famlist *f1,famlist *f2)
goto Lf2;
break;

#if JHANDLE
case TYjhandle:
#endif
#if TARGET_SEGMENTED
case TYsptr:
case TYcptr:
Expand Down
4 changes: 0 additions & 4 deletions src/backend/ty.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,7 @@ extern int TYptrdiff, TYsize, TYsize_t;

/* Modifiers to basic types */

#ifdef JHANDLE
#define mTYarrayhandle 0x200
#else
#define mTYarrayhandle 0x0
#endif
#define mTYconst 0x100
#define mTYvolatile 0x200
#define mTYrestrict 0 // BUG: add for C99
Expand Down

0 comments on commit a013333

Please sign in to comment.