mirror of
				https://github.com/stedolan/jq.git
				synced 2024-05-11 05:55:39 +00:00 
			
		
		
		
	Clean up implementation of builtin functions.
This commit is contained in:
		@@ -149,7 +149,6 @@ void print_error(jv value) {
 | 
			
		||||
 | 
			
		||||
jv jq_next() {
 | 
			
		||||
  jv cfunc_input[MAX_CFUNCTION_ARGS];
 | 
			
		||||
  jv cfunc_output[MAX_CFUNCTION_ARGS];
 | 
			
		||||
 | 
			
		||||
  assert(!forkable_stack_empty(&frame_stk));
 | 
			
		||||
  uint16_t* pc = *frame_current_retaddr(&frame_stk);
 | 
			
		||||
@@ -419,8 +418,7 @@ jv jq_next() {
 | 
			
		||||
        cfunc_input[i] = stack_pop().value;
 | 
			
		||||
      }
 | 
			
		||||
      struct cfunction* func = &frame_current_bytecode(&frame_stk)->globals->cfunctions[*pc++];
 | 
			
		||||
      func->fptr(cfunc_input, cfunc_output);
 | 
			
		||||
      top.value = cfunc_output[0];
 | 
			
		||||
      top.value = cfunction_invoke(func, cfunc_input);
 | 
			
		||||
      if (jv_is_valid(top.value)) {
 | 
			
		||||
        stack_push(top);
 | 
			
		||||
      } else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user