Changeset 11 for abuse/trunk/src/include/lisp.hpp
- Timestamp:
- Nov 10, 2005, 5:28:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/include/lisp.hpp
r2 r11 1 1 #ifndef __LISP_HPP_ 2 2 #define __LISP_HPP_ 3 4 #include <stdint.h> 3 5 4 6 #include "lisp_opt.hpp" … … 35 37 L_FIXED_POINT, L_COLLECTED_OBJECT }; 36 38 37 typedef longltype; // make sure structures aren't packed differently on various compiler39 typedef uint64_t ltype; // make sure structures aren't packed differently on various compiler 38 40 // and sure that word, etc are word alligned 39 41 … … 83 85 ltype type; 84 86 #ifndef NO_LIBS 85 longalist,blist; // id for cached blocks87 intptr_t alist,blist; // id for cached blocks 86 88 #else 87 89 void *arg_list,*block_list; … … 104 106 { 105 107 ltype type; 106 short pad;107 u nsigned short ch;108 int16_t pad; 109 uint16_t ch; 108 110 } ; 109 111 … … 118 120 { 119 121 ltype type; 120 longx;122 int32_t x; 121 123 } ; 122 124 … … 156 158 157 159 void push_onto_list(void *object, void *&list); 158 lisp_symbol *add_c_object(void *symbol, short number);160 lisp_symbol *add_c_object(void *symbol, int16_t number); 159 161 lisp_symbol *add_c_function(char *name, short min_args, short max_args, short number); 160 162 lisp_symbol *add_c_bool_fun(char *name, short min_args, short max_args, short number); … … 167 169 lisp_number *new_lisp_number(long num); 168 170 lisp_pointer *new_lisp_pointer(void *addr); 169 lisp_character *new_lisp_character(u nsigned short ch);171 lisp_character *new_lisp_character(uint16_t ch); 170 172 lisp_string *new_lisp_string(char *string); 171 173 lisp_string *new_lisp_string(char *string, int length); 172 lisp_string *new_lisp_string( longlength);173 lisp_fixed_point *new_lisp_fixed_point( longx);174 lisp_object_var *new_lisp_object_var( short number);175 lisp_1d_array *new_lisp_1d_array( unsigned short size, void *rest);174 lisp_string *new_lisp_string(int length); 175 lisp_fixed_point *new_lisp_fixed_point(int32_t x); 176 lisp_object_var *new_lisp_object_var(int16_t number); 177 lisp_1d_array *new_lisp_1d_array(int size, void *rest); 176 178 lisp_sys_function *new_lisp_sys_function(int min_args, int max_args, int fun_number); 177 179 lisp_sys_function *new_lisp_c_function(int min_args, int max_args, int fun_number); … … 181 183 lisp_user_function *new_lisp_user_function(void *arg_list, void *block_list); 182 184 #else 183 lisp_user_function *new_lisp_user_function( long arg_list, longblock_list);185 lisp_user_function *new_lisp_user_function(intptr_t arg_list, intptr_t block_list); 184 186 #endif 185 187
Note: See TracChangeset
for help on using the changeset viewer.