home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2031 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  53 lines

  1. Path: informatik.tu-muenchen.de!fischerj
  2. From: fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ADDTOF()
  5. Date: 26 Jan 1996 02:46:46 GMT
  6. Organization: Technische Universitaet Muenchen, Germany
  7. Distribution: world
  8. Message-ID: <4e9fam$ron@sunsystem5.informatik.tu-muenchen.de>
  9. References: <4d5cac$orr@ulke.hiMolde.no>
  10. NNTP-Posting-Host: hphalle5.informatik.tu-muenchen.de
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Espen Berntsen (espen@hai.hiMolde.no) wrote:
  14. : When you make a VBL interrupt in C, you can use ADDTof() to add it to the 
  15. : sustem, but they say you need to pass an initialized Isrvstr. How do you 
  16. : initializa this?
  17.  
  18. struct Isrvstr
  19. {
  20.     struct Node is_Node;
  21.     struct Isrvstr *Iptr;   /* passed to srvr by os */
  22.     int (*code)();
  23.     int (*ccode)();
  24.     int Carg;
  25. };
  26.  
  27. well, that's all I know, RKM says nothing about how to init it :\ grrrrr.
  28. int (*code)() ? huh ? all they talk about is C code....
  29.  
  30. try just allocating a zerofilled part of mem that can hold this struct.
  31. you however should only use this if somebody knowing confirms this method.
  32. the fact that you give the int(*ccode)() already in the other parameter
  33. lets me guess you only need a zerofilled one. but who knows....
  34.  
  35. size of struct node is 14 ?
  36.  
  37. struct Node {
  38.     struct  Node *ln_Succ; 
  39.     struct  Node *ln_Pred; 
  40.     UBYTE   ln_Type;
  41.     BYTE    ln_Pri;     
  42.     char    *ln_Name;      
  43. }; /* Note: word aligned */
  44.  
  45. mhm is word aligning something extraordinary about structures ? funny.
  46.  
  47.  
  48. : --
  49.  
  50. : Espen.Berntsen@hiMolde.no  <> irc: Nameless <> http://www.himolde.no/~espen
  51. : ===========================================================================
  52. : Fighting for peace is like fucking for virginity.
  53.