minor code cleanup
This commit is contained in:
		@ -3833,7 +3833,7 @@ static int compile_method_pragma (moo_t* moo)
 | 
				
			|||||||
		GET_TOKEN (moo); 
 | 
							GET_TOKEN (moo); 
 | 
				
			||||||
		switch (TOKEN_TYPE(moo))
 | 
							switch (TOKEN_TYPE(moo))
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			case MOO_IOTOK_NUMLIT: /* TODO: allow only an integer */
 | 
								case MOO_IOTOK_NUMLIT:
 | 
				
			||||||
	/*TODO: more checks the validity of the primitive number. support number with radix and so on support more extensive syntax. support primitive name, not number*/
 | 
						/*TODO: more checks the validity of the primitive number. support number with radix and so on support more extensive syntax. support primitive name, not number*/
 | 
				
			||||||
				ptr = TOKEN_NAME_PTR(moo);
 | 
									ptr = TOKEN_NAME_PTR(moo);
 | 
				
			||||||
				end = ptr + TOKEN_NAME_LEN(moo);
 | 
									end = ptr + TOKEN_NAME_LEN(moo);
 | 
				
			||||||
 | 
				
			|||||||
@ -3885,7 +3885,7 @@ static int start_method (moo_t* moo, moo_oop_method_t method, moo_oow_t nargs)
 | 
				
			|||||||
				 *       is not really failure safe without losing integrity???? */
 | 
									 *       is not really failure safe without losing integrity???? */
 | 
				
			||||||
				moo_oop_t tmp;
 | 
									moo_oop_t tmp;
 | 
				
			||||||
				moo_pushtmp (moo, (moo_oop_t*)&method);
 | 
									moo_pushtmp (moo, (moo_oop_t*)&method);
 | 
				
			||||||
				tmp = moo_makestring (moo, moo->errmsg.buf, moo->errmsg.len);
 | 
									tmp = moo_makestring(moo, moo->errmsg.buf, moo->errmsg.len);
 | 
				
			||||||
				moo_poptmp (moo);
 | 
									moo_poptmp (moo);
 | 
				
			||||||
				/* [NOTE] carry on even if instantiation fails */
 | 
									/* [NOTE] carry on even if instantiation fails */
 | 
				
			||||||
				moo->processor->active->perrmsg = tmp? tmp: moo->_nil; /* TODO: set to nil or set to an empty string if instantiation fails? */
 | 
									moo->processor->active->perrmsg = tmp? tmp: moo->_nil; /* TODO: set to nil or set to an empty string if instantiation fails? */
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user