Browse Source

Free function signatures in samples.

pull/1/head
Aleksey Demakov 12 years ago
parent
commit
eac85a2bd5
  1. 2
      tutorial/t1.c
  2. 2
      tutorial/t2.c
  3. 1
      tutorial/t3.c
  4. 1
      tutorial/t5.c

2
tutorial/t1.c

@ -41,6 +41,7 @@ int main(int argc, char **argv)
/* Create the function object */
function = jit_function_create(context, signature);
jit_type_free(signature);
/* Construct the function body */
x = jit_value_get_param(function, 0);
@ -68,7 +69,6 @@ int main(int argc, char **argv)
/* Clean up */
jit_context_destroy(context);
jit_type_free(signature);
/* Finished */
return 0;

2
tutorial/t2.c

@ -55,6 +55,7 @@ int main(int argc, char **argv)
/* Create the function object */
function = jit_function_create(context, signature);
jit_type_free(signature);
/* Check the condition "if(x == y)" */
x = jit_value_get_param(function, 0);
@ -105,7 +106,6 @@ int main(int argc, char **argv)
/* Clean up */
jit_context_destroy(context);
jit_type_free(signature);
/* Finished */
return 0;

1
tutorial/t3.c

@ -60,6 +60,7 @@ int main(int argc, char **argv)
/* Create the function object */
function = jit_function_create(context, signature);
jit_type_free(signature);
/* Make the function recompilable */
jit_function_set_recompilable(function);

1
tutorial/t5.c

@ -54,6 +54,7 @@ int main(int argc, char **argv)
/* Create the function object */
function = jit_function_create(context, signature);
jit_type_free(signature);
/* Check the condition "if(x == y)" */
x = jit_value_get_param(function, 0);

Loading…
Cancel
Save