From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: dynamic gotos possible with djgpp? Date: 21 Dec 2002 15:13:37 GMT Organization: Cornell University Lines: 35 Sender: asu1 AT cornell DOT invalid (on pool-141-149-208-142.syr.east.verizon.net) Message-ID: References: NNTP-Posting-Host: pool-141-149-208-142.syr.east.verizon.net X-Trace: news01.cit.cornell.edu 1040483617 26501 141.149.208.142 (21 Dec 2002 15:13:37 GMT) X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu NNTP-Posting-Date: 21 Dec 2002 15:13:37 GMT User-Agent: Xnews/5.04.25 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Lars O. Hansen" wrote in news:au1u53$vdj$1 AT news DOT online DOT de: > void *x; /* or long *x as addresses are just integers (but may > conflict with C type checking) */ > > x=label1; /* label1 a label like a label for static gotos */ > > goto x; > > possible? info gcc "c extensions" #include int main(void) { void *f = &&mylabel; goto *f; printf("hello\n"); mylabel: return 0; } do consider using a switch before jumping into this, though. it is nonstandard, and can easily get very messy. -- A. Sinan Unur asu1 AT c-o-r-n-e-l-l DOT edu Remove dashes for address Spam bait: mailto:uce AT ftc DOT gov