Skip to content

Commit

Permalink
backend: remove __ss
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jun 25, 2015
1 parent 3c47713 commit ce27dca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/backend/cdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,6 @@ typedef int bool;
#define _far
#define __far
#define __cs
#define __ss
#endif

#if _WINDLL
Expand Down
1 change: 0 additions & 1 deletion src/backend/cdeflnx.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#define __pascal
#define __far
#define _far
#define __ss
#define __cs

#if SCPP
Expand Down
11 changes: 7 additions & 4 deletions src/backend/cgobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -1130,13 +1130,16 @@ void Obj::dosseg()

STATIC void obj_comment(unsigned char x, const char *string, size_t len)
{
char __ss *library;
char buf[128];

library = (char __ss *) alloca(2 + len);
char *library = (2 + len <= sizeof(buf)) ? buf : (char *) malloc(2 + len);
assert(library);
library[0] = 0;
library[1] = x;
memcpy(library + 2,string,len);
objrecord(COMENT,library,len + 2);
if (library != buf)
free(library);
}

/*******************************
Expand Down Expand Up @@ -1862,7 +1865,7 @@ int Obj::comdatsize(Symbol *s, targ_size_t symsize)
int Obj::comdat(Symbol *s)
{ char lnames[IDMAX+IDOHD+1]; // +1 to allow room for strcpy() terminating 0
char cextdef[2+2];
char __ss *p;
char *p;
size_t lnamesize;
unsigned ti;
int isfunc;
Expand Down Expand Up @@ -2625,7 +2628,7 @@ void Obj::lidata(int seg,targ_size_t offset,targ_size_t count)
unsigned reclen;
static char zero[20];
char data[20];
char __ss *di;
char *di;

//printf("Obj::lidata(seg = %d, offset = x%x, count = %d)\n", seg, offset, count);

Expand Down
4 changes: 2 additions & 2 deletions src/backend/newman.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ STATIC void cpp_dimension(targ_ullong u)
CHAR('0' + (char)u - 1);
else
{ char buffer[sizeof(u) * 2 + 1];
char __ss *p;
char *p;

buffer[sizeof(buffer) - 1] = 0;
for (p = &buffer[sizeof(buffer) - 1]; u; u >>= 4)
Expand All @@ -812,7 +812,7 @@ STATIC void cpp_dimension_ld(targ_ldouble ld)
CHAR('0' + (char)u - 1);
else
{ char buffer[sizeof(u) * 2 + 1];
char __ss *p;
char *p;

buffer[sizeof(buffer) - 1] = 0;
for (p = &buffer[sizeof(buffer) - 1]; u; u >>= 4)
Expand Down

0 comments on commit ce27dca

Please sign in to comment.