Skip to content

Commit

Permalink
remove anachronistic HINT and UHINT typedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jan 17, 2013
1 parent 56b6293 commit 730602c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
2 changes: 0 additions & 2 deletions src/backend/cdef.h
Expand Up @@ -320,8 +320,6 @@ typedef long double longdouble;
// For Shared Code Base
#define TARGET_INLINEFUNC_NAMES
#define PASCAL pascal
#define HINT int
#define UHINT unsigned int
#if _WINDLL
#define dbg_printf dll_printf
#else
Expand Down
10 changes: 5 additions & 5 deletions src/backend/cgelem.c
Expand Up @@ -27,7 +27,7 @@ static char __file__[] = __FILE__; /* for tassert.h */

extern void error(const char *filename, unsigned linnum, const char *format, ...);

STATIC elem * optelem(elem *,HINT);
STATIC elem * optelem(elem *,int);
STATIC elem * elarray(elem *e);
STATIC elem * eldiv(elem *);

Expand Down Expand Up @@ -4415,7 +4415,7 @@ STATIC elem * elparam(elem *e)
* we care about the result.
*/

STATIC elem * optelem(elem *e,HINT goal)
STATIC elem * optelem(elem *e,int goal)
{ elem *e1,*e2;
unsigned op;
#include "elxxx.c" /* jump table */
Expand Down Expand Up @@ -4455,8 +4455,8 @@ STATIC elem * optelem(elem *e,HINT goal)
}
}
else if (OTbinary(op)) // if binary operator
{ HINT leftgoal = 1;
HINT rightgoal;
{ int leftgoal = 1;
int rightgoal;

/* Determine goals for left and right subtrees */
rightgoal = (goal || OTsideff(op));
Expand Down Expand Up @@ -4813,7 +4813,7 @@ STATIC elem * optelem(elem *e,HINT goal)
* e1 op v e1 op &v
*/

elem *doptelem(elem *e,HINT goal)
elem *doptelem(elem *e,int goal)
{
//printf("doptelem(e = %p, goal = %d)\n", e, goal);
cgelem_goal = goal;
Expand Down
2 changes: 1 addition & 1 deletion src/backend/el.c
Expand Up @@ -1756,7 +1756,7 @@ elem * el_ptr_offset(symbol *s,targ_size_t offset)
* 0 elem evaluates left-to-right
*/

HINT ERTOL(elem *e)
int ERTOL(elem *e)
{
elem_debug(e);
assert(!PARSER);
Expand Down
6 changes: 3 additions & 3 deletions src/backend/evalu8.c
Expand Up @@ -148,7 +148,7 @@ longdouble _modulo(longdouble x, longdouble y)
* Return boolean result of constant elem.
*/

HINT boolres(elem *e)
int boolres(elem *e)
{ int b;

//printf("boolres()\n");
Expand Down Expand Up @@ -289,7 +289,7 @@ HINT boolres(elem *e)
* Return TRUE if expression will always evaluate to TRUE.
*/

HINT iftrue(elem *e)
int iftrue(elem *e)
{
while (1)
{
Expand All @@ -314,7 +314,7 @@ HINT iftrue(elem *e)
* Return TRUE if expression will always evaluate to FALSE.
*/

HINT iffalse(elem *e)
int iffalse(elem *e)
{
while (1)
{ assert(e);
Expand Down
4 changes: 2 additions & 2 deletions src/backend/util2.c
Expand Up @@ -6,7 +6,7 @@
* Written by Walter Bright
*
* This source file is made available for personal use
* only. The license is in /dmd/src/dmd/backendlicense.txt
* only. The license is in backendlicense.txt
* For any other uses, please contact Digital Mars.
*/

Expand Down Expand Up @@ -136,7 +136,7 @@ void util_progress(int linnum)

#endif

#if linux || __APPLE__ || __FreeBSD__ || __OpenBSD__ || __sun&&__SVR4 || _MSC_VER
#if linux || __APPLE__ || __FreeBSD__ || __OpenBSD__ || __sun || _MSC_VER
void util_progress()
{
}
Expand Down

0 comments on commit 730602c

Please sign in to comment.