stubs.c 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /* stubs.c Copyright (C) 1990-2002 Codemist Ltd */
  2. /*
  3. * Placeholder for compiler-generated C code.
  4. * This module is linked in in place of the machine-generated files
  5. * "u01.c" to "u10.c" to create a cold-start, unspecialised version of CSL
  6. */
  7. /*
  8. * This code may be used and modified, and redistributed in binary
  9. * or source form, subject to the "CCL Public License", which should
  10. * accompany it. This license is a variant on the BSD license, and thus
  11. * permits use of code derived from this in either open and commercial
  12. * projects: but it does require that updates to this code be made
  13. * available back to the originators of the package.
  14. * Before merging other code in with this or linking this code
  15. * with other packages or libraries please check that the license terms
  16. * of the other material are compatible with those of this.
  17. */
  18. /* Signature: 0638a0fd 08-Apr-2002 */
  19. #include <stdarg.h>
  20. #include <string.h>
  21. #include <ctype.h>
  22. #include "machine.h"
  23. #include "tags.h"
  24. #include "cslerror.h"
  25. #include "externs.h"
  26. #include "arith.h"
  27. #include "entries.h"
  28. #ifdef TIMEOUT
  29. #include "timeout.h"
  30. #endif
  31. static Lisp_Object Lsample(Lisp_Object nil, Lisp_Object x)
  32. {
  33. CSL_IGNORE(nil);
  34. return onevalue(x);
  35. }
  36. setup_type const u01_setup[] =
  37. {
  38. {"sample", Lsample, too_many_1, wrong_no_1},
  39. {NULL, 0, 0, 0}
  40. };
  41. setup_type const u02_setup[] =
  42. {
  43. {NULL, 0, 0, 0}
  44. };
  45. setup_type const u03_setup[] =
  46. {
  47. {NULL, 0, 0, 0}
  48. };
  49. setup_type const u04_setup[] =
  50. {
  51. {NULL, 0, 0, 0}
  52. };
  53. setup_type const u05_setup[] =
  54. {
  55. {NULL, 0, 0, 0}
  56. };
  57. setup_type const u06_setup[] =
  58. {
  59. {NULL, 0, 0, 0}
  60. };
  61. setup_type const u07_setup[] =
  62. {
  63. {NULL, 0, 0, 0}
  64. };
  65. setup_type const u08_setup[] =
  66. {
  67. {NULL, 0, 0, 0}
  68. };
  69. setup_type const u09_setup[] =
  70. {
  71. {NULL, 0, 0, 0}
  72. };
  73. /*
  74. * A bit of a horrible fudge - but I will use u10_setup[0].name==NULL to
  75. * decide that I have these stubs loaded.
  76. */
  77. setup_type const u10_setup[] =
  78. {
  79. {NULL, 0, 0, 0}
  80. };
  81. setup_type const u11_setup[] =
  82. {
  83. {NULL, 0, 0, 0}
  84. };
  85. setup_type const u12_setup[] =
  86. {
  87. {NULL, 0, 0, 0}
  88. };
  89. /* end of stubs.c */