Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Coroutines in C Message-ID: <10861@smoke.BRL.MIL> Date: 28 Aug 89 17:59:55 GMT References: <214@castle.ed.ac.uk> <5899@ficc.uu.net> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 In article <5899@ficc.uu.net> peter@ficc.uu.net (Peter da Silva) writes: >If this implementation is used, it should be possible to create >a fake stack frame and register set in a jmp_buf and tranfer control to it >using longjmp. You need separate (non-overlapping) stacks, not just a stack frame. Otherwise the coroutines will step on each other's .