Mail Archives: djgpp/1999/07/22/14:59:56
Hi,
Rainbow Warrior wrote:
> Did that . It blows up at the end of the get tokens function. It stops at
> the end bracket of the get tokens function.
I think one of your problem is here
if ((line_ptr[7]!=' '))
{************************** add this
if((line_ptr[NAME_LENGTH+OP_LENGTH+8]!=' '))
sscanf(line_ptr,"%s %s %s %s %s %s %s",temp, label_ptr, oper_ptr,
opnd_ptr,
temp1,temp2, temp4);
else
{
sscanf(line_ptr,"%s %s %s %s %s %s",temp, label_ptr, oper_ptr,
temp1,temp2, temp4);
strcpy(opnd_ptr," ");
}
}***********************and this
else
{
sscanf(line_ptr,"%s %s %s %s %s %s", temp, oper_ptr, opnd_ptr,
temp1, temp2, temp4);
strcpy(label_ptr," ");
}
What this it? ambi.......brackets or what?
int dec_hex(char *dec_ptr){...}
int hash(char* name_ptr) {...}
void init(void){...}
void pass2(void){...}
int main()
{
//void init(), pass2();
init();
pass2();
return 0;
// printinfo();
}/* end of main */
Regards
--
Jarmo Tiittanen
Svanströminkuja 5-7 B22
00870 HELSINKI
http://www.dlc.fi/~jacxs
a9800792 AT myy DOT helia DOT fi
j DOT o DOT tiittanen AT dlc DOT fi
- Raw text -