Changeset 617
- Timestamp:
- 07/31/10 01:44:18 (18 months ago)
- Location:
- interpreter/trunk
- Files:
-
- 4 edited
-
apps/kite.c (modified) (1 diff)
-
backend/common/kite_lexer.l (modified) (7 diffs)
-
modules/System/object.c (modified) (1 diff)
-
objs/kite_object.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
interpreter/trunk/apps/kite.c
r594 r617 102 102 103 103 kite_app_init(); 104 104 /*printf("sizeof(kite_basic_object_t) = %d\n", sizeof(kite_basic_object_t)); 105 printf("sizeof(kite_object_t) = %d\n", sizeof(kite_object_t));*/ 106 105 107 /* Parse command arguments first */ 106 108 #ifdef __linux -
interpreter/trunk/backend/common/kite_lexer.l
r594 r617 178 178 BEGIN(INITIAL); 179 179 yylval->stringValue = compiler->curStr; 180 compiler->currentCol += 2; 180 181 return DOCSTRING; 181 182 } … … 186 187 BEGIN(INITIAL); 187 188 yylval->stringValue = compiler->curStr; 189 compiler->currentCol++; 188 190 return STRING_VALUE; 189 191 } … … 191 193 kite_compiler_t *compiler = (kite_compiler_t*)yyextra; 192 194 APPEND_STRING("\n"); 193 compiler->currentCol ++;195 compiler->currentCol += 2; 194 196 } 195 197 <str>\\t { 196 198 kite_compiler_t *compiler = (kite_compiler_t*)yyextra; 197 199 APPEND_STRING("\t"); 198 compiler->currentCol ++;200 compiler->currentCol += 2; 199 201 } 200 202 <str>\\r { 201 203 kite_compiler_t *compiler = (kite_compiler_t*)yyextra; 202 204 APPEND_STRING("\r"); 203 compiler->currentCol ++;205 compiler->currentCol += 2; 204 206 } 205 207 <str>\\b { 206 208 kite_compiler_t *compiler = (kite_compiler_t*)yyextra; 207 209 APPEND_STRING("\b"); 208 compiler->currentCol ++;210 compiler->currentCol += 2; 209 211 } 210 212 <str>\\f { 211 213 kite_compiler_t *compiler = (kite_compiler_t*)yyextra; 212 214 APPEND_STRING("\f"); 213 compiler->currentCol ++;215 compiler->currentCol += 2; 214 216 } 215 217 <str>\\[0-7]{1,3} { … … 238 240 kite_compiler_t *compiler = (kite_compiler_t*)yyextra; 239 241 APPEND_STRING(yytext); 242 compiler->currentCol += strlen(yytext); 240 243 } 241 244 <str>\r?\n { … … 255 258 BEGIN(INITIAL); 256 259 yylval->stringValue = compiler->curStr; 260 compiler->currentCol++; 257 261 return STRING_VALUE; 258 262 } … … 260 264 kite_compiler_t *compiler = (kite_compiler_t*)yyextra; 261 265 APPEND_STRING("\n"); 262 compiler->currentCol ++;266 compiler->currentCol += 2; 263 267 } 264 268 <str2>\\t { 265 269 kite_compiler_t *compiler = (kite_compiler_t*)yyextra; 266 270 APPEND_STRING("\t"); 267 compiler->currentCol ++;271 compiler->currentCol += 2; 268 272 } 269 273 <str2>\\r { 270 274 kite_compiler_t *compiler = (kite_compiler_t*)yyextra; 271 275 APPEND_STRING("\r"); 272 compiler->currentCol ++;276 compiler->currentCol += 2; 273 277 } 274 278 <str2>\\b { 275 279 kite_compiler_t *compiler = (kite_compiler_t*)yyextra; 276 280 APPEND_STRING("\b"); 277 compiler->currentCol ++;281 compiler->currentCol += 2; 278 282 } 279 283 <str2>\\f { 280 284 kite_compiler_t *compiler = (kite_compiler_t*)yyextra; 281 285 APPEND_STRING("\f"); 282 compiler->currentCol ++;286 compiler->currentCol += 2; 283 287 } 284 288 <str2>\\[0-7]{1,3} { … … 307 311 kite_compiler_t *compiler = (kite_compiler_t*)yyextra; 308 312 APPEND_STRING(yytext); 313 compiler->currentCol += strlen(yytext); 309 314 } 310 315 <str2>\r?\n { -
interpreter/trunk/modules/System/object.c
r596 r617 951 951 "glb", "Whether this is a global property (true/false).")); 952 952 kite_add_method(thread, newclass, "remove_method", 953 kite_new_method_compiled_with_docs(thread, Object_ addMethod,953 kite_new_method_compiled_with_docs(thread, Object_removeMethod, 954 954 "Remove a method from the given object.", 2, 955 955 "name", "Name of the method.", -
interpreter/trunk/objs/kite_object.h
r600 r617 164 164 */ 165 165 typedef struct kite_basic_object_t { 166 kite_thread_t *owner_thread /*! Owner thread \private */; 167 struct kite_object_t *parent /*! Parent object. \private */; 166 168 enum kite_object_type_t type /*! The object's type. */; 167 kite_thread_t *owner_thread /*! Owner thread \private */;168 169 int shareable /*! Can be shared with other threads. \private */; 169 struct kite_object_t *parent /*! Parent object. \private */;170 170 union { 171 171 long intvalue /*! Associated integer value. */; … … 185 185 kite_list_t *gc_entry /*! GC entry (not intended to be used by user code) \private */; 186 186 #endif /* HAVE_GC_H */ 187 kite_thread_t *owner_thread /*! Owner thread \private */; 188 struct kite_object_t *parent /*! Parent object. \private */; 187 189 enum kite_object_type_t type /*! The object's type. */; 188 kite_thread_t *owner_thread /*! Owner thread \private */;189 190 int shareable /*! Can be shared with other threads. \private */; 190 struct kite_object_t *parent /*! Parent object. \private */;191 191 union { 192 192 long intvalue /*! Associated integer value. */;
Note: See TracChangeset
for help on using the changeset viewer.
