delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/22/14:59:56

From: Jarmo Tiittanen <j DOT o DOT tiittanen AT dlc DOT fi>
Newsgroups: comp.lang.c,comp.os.msdos.djgpp
Subject: Re: HELP-General Protection Exception
Date: Thu, 22 Jul 1999 19:20:04 +0300
Organization: JOTWWW
Lines: 59
Message-ID: <379744B4.943D1DBB@dlc.fi>
References: <3794EC05 DOT 3461D8A2 AT earthlink DOT net> <3795E8BB DOT 657B78AA AT ix DOT netcom DOT com> <7n5k0p$h8q$1 AT fir DOT prod DOT itd DOT earthlink DOT net> <7n5lbn$f2r$1 AT uni00nw DOT unity DOT ncsu DOT edu> <7n64bf$ciu$1 AT oak DOT prod DOT itd DOT earthlink DOT net>
NNTP-Posting-Host: mmcc.hdyn.saunalahti.fi
Mime-Version: 1.0
X-Mailer: Mozilla 4.6 [en] (Win95; I)
X-Accept-Language: fi
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019