home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / compiler / nasm20b / nasm_src / exprlink.c < prev    next >
C/C++ Source or Header  |  1993-01-19  |  737b  |  25 lines

  1. /* ---------------------------------------------------------------------- */
  2. /*                   Copyright (C) 1991 by Natürlich!                     */
  3. /*                      This file is copyrighted!                         */
  4. /*                Refer to the documentation for details.                 */
  5. /* ---------------------------------------------------------------------- */
  6. #define LINKER 1
  7. #include "defines.h"
  8. #include "nasm.h"
  9. #include "debug.h"
  10.  
  11.  
  12. void refer( l, ex)
  13. label huge  *l;
  14. expr huge   *ex;
  15. {
  16.    register ref huge *p = ref_alloc();
  17.  
  18.    ENTER("refer");
  19.    p->ref   = ex;       /* Note expression that needs fixing  */
  20.    p->next  = l->refs;  /* put it in the first slot...        */
  21.    l->refs  = p;
  22.    LEAVE();
  23. }
  24.  
  25.