Loading

Vala issue

  1. /* main.c generated by valac 0.45.2.2-8f86b, the Vala compiler
  2.  * generated from main.vala, do not modify */
  3.  
  4. #include <glib.h>
  5. #include <stdarg.h>
  6. #include <glib-object.h>
  7. #include <stdlib.h>
  8. #include <string.h>
  9.  
  10. void problem (gint x,
  11.               ...);
  12. gint _vala_main (gchar** args,
  13.                  gint args_length1);
  14.  
  15. void
  16. problem (gint x,
  17.          ...)
  18. {
  19.     va_list l = {0};
  20.     GValue val = {0};
  21.     GValue _tmp0_ = {0};
  22.     const gchar* _tmp1_;
  23. #line 2 "main.vala"
  24.     va_start (l, x);
  25. #line 3 "main.vala"
  26.     if (G_IS_VALUE (&va_arg (l, GValue))) {
  27. #line 3 "main.vala"
  28.         g_value_init (&_tmp0_, G_VALUE_TYPE (&va_arg (l, GValue)));
  29. #line 3 "main.vala"
  30.         g_value_copy (&va_arg (l, GValue), &_tmp0_);
  31. #line 32 "main.c"
  32.     } else {
  33. #line 3 "main.vala"
  34.         _tmp0_ = va_arg (l, GValue);
  35. #line 36 "main.c"
  36.     }
  37. #line 3 "main.vala"
  38.     val = _tmp0_;
  39. #line 4 "main.vala"
  40.     _tmp1_ = g_value_get_string (&val);
  41. #line 4 "main.vala"
  42.     g_print ("%s", _tmp1_);
  43. #line 1 "main.vala"
  44.     G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
  45. #line 1 "main.vala"
  46.     va_end (l);
  47. #line 48 "main.c"
  48. }
  49.  
  50. gint
  51. _vala_main (gchar** args,
  52.             gint args_length1)
  53. {
  54.     gint result = 0;
  55.     GValue val = {0};
  56.     GValue _tmp0_ = {0};
  57.     GValue _tmp1_;
  58. #line 8 "main.vala"
  59.     g_value_init (&_tmp0_, G_TYPE_STRING);
  60. #line 8 "main.vala"
  61.     val = _tmp0_;
  62. #line 9 "main.vala"
  63.     g_value_set_string (&val, "Hello, world!");
  64. #line 11 "main.vala"
  65.     _tmp1_ = val;
  66. #line 11 "main.vala"
  67.     problem (0, &_tmp1_, NULL);
  68. #line 12 "main.vala"
  69.     result = 0;
  70. #line 12 "main.vala"
  71.     G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
  72. #line 12 "main.vala"
  73.     return result;
  74. #line 75 "main.c"
  75. }
  76.  
  77. int
  78. main (int argc,
  79.       char ** argv)
  80. {
  81. #line 7 "main.vala"
  82.     return _vala_main (argv, argc);
  83. #line 84 "main.c"
  84. }