home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / System / MorphOS / Developer / emultools / fd2inline / tests / test1.c < prev   
Encoding:
C/C++ Source or Header  |  2000-11-02  |  812 b   |  39 lines

  1. ;/*
  2. delete test1.s 
  3. ;gcc -Iinclude: -I../include/ -I./include/ -v -O2 -S -E -C -dM test1.c >test1.err
  4. gcc -Iinclude: -I../include/ -I./include/ -v -O2 -S test1.c
  5. delete test1.o
  6. gas  test1.s -o test1.o
  7. ld -r test1.o -o test1
  8. objdump --section-headers --full-contents --all-headers --disassemble-all test
  9. quit
  10. */
  11.  
  12. #include    <exec/lists.h>
  13. #include    <exec/ports.h>
  14. #include    <exec/memory.h>
  15. #include    <inline/exec.h>
  16.  
  17. struct MsgPort*    main(void)
  18. {
  19. struct List    *MyList;
  20. struct Node    *MyNode;
  21. struct MsgPort    *MyPort;
  22. struct MsgPort    *MyPort2;
  23. struct Library    *SysBase;
  24. struct MemList    *MyMemList=NULL;
  25. struct MemList    *MyMemList1;
  26.  
  27.   SysBase    =(struct Library*) *((ULONG*) 4);
  28.  
  29.   MyMemList1        =    AllocEntry(MyMemList);
  30.   MyPort        =    CreateMsgPort();
  31.   MyPort2        =    CreateMsgPort();
  32.  
  33.   
  34.  
  35. //AddHead(MyList,MyNode);
  36.   return(MyPort);
  37. }
  38.  
  39.