home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / LK_V1.06.LHA / LK V1.06 / HELP / warundef.hlp < prev    next >
Encoding:
INI File  |  1994-11-01  |  1.5 KB  |  47 lines

  1. [LANGUAGE english; PARENT keywords; PAGE 11-121]
  2. [C;6;B]        WARUNDEF
  3. [7]Default: error on undefined
  4. [J;1;N]
  5.   Transforms the error 'Undefined reference "<symbol name>".' \
  6. into a warning. This enables the creation of the resulting \
  7. file, whenever unresolved symbols existent. However, when \
  8. there are unresolved symbol, lk creates a wrong (but not \
  9. automatically invalid) executable, with some long words, \
  10. words and/or bytes which remain undefined.
  11.  
  12.   If lk detects a function call with a missing define, a \
  13. '_stub' function will be defined to handle the call.
  14.  
  15.   You may define your own '_stub' function. It must be defined \
  16. into a CODE hunk. You may save its object file to a file \
  17. named 'stub.o' in your current directory, 'LK:LIB/' or 'LIB:'. \
  18. Otherwise you can use it as a library.
  19.   The internal lk '_stub' function is a very simple code:
  20. [2]
  21.       XREF _stub
  22.   _stub:
  23.       MOVEQ   #$00,D0
  24.       RTS
  25. [1]
  26. lk is also supplied with a nice '_stub' function. The \
  27. declaration of the '_stub' function is:
  28. [2]
  29.     extern void stub(char *function_name);
  30. [1]
  31. The variable 'function_name' is also defined into A0 \
  32. register and is null when no function name is available:
  33.  
  34.   if(function_name == (char *) 0) {
  35.     function_name = "no function name";
  36.   }
  37.  
  38.   Note: lk look for '_stub', '__stub' and '___stub' in this \
  39. order. Any of those may be defined.
  40.  
  41.   See also:
  42. [L;3][LINK askundef]            ASKUNDEF
  43. [LINK maxref]                MAXREF
  44. [LINK validnop]                VALIDNOP
  45. [LINK error; GOTO 003]            Error #003
  46. [5; LINK about; GOTO address]        Become Registred
  47.