~ubuntu-branches/ubuntu/maverick/vala/maverick

« back to all changes in this revision

Viewing changes to ccode/valaccodefunction.vala

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-04-02 10:10:55 UTC
  • mfrom: (1.4.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100402101055-qbx3okzv0tnp3wpp
Tags: 0.8.0-0ubuntu1
* New upstream release:
  - Infer type arguments when calling generic methods.
  - Support `in' operator for arrays.
  - Add experimental support for regular expression literals.
  - Add experimental support for chained relational expressions.
  - Add va_list support.
  - Add clutter-gtk-0.10 bindings (Gordon Allott).
  - Add gdl-1.0 bindings (Nicolas Joseph).
  - Add gstreamer-app-0.10 bindings (Sebastian Dröge).
  - Add gstreamer-cdda-0.10 bindings (Sebastian Dröge).
  - Add gudev-1.0 bindings (Jim Nelson).
  - Add libgda-report-4.0 bindings (Shawn Ferris).
  - Add libgvc (graphviz) bindings (Martin Olsson).
  - Add purple bindings (Adrien Bustany).
  - Many bug fixes and binding updates.
* debian/patches/99_ltmain_as-needed.patch: refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* valaccodefunction.vala
2
2
 *
3
 
 * Copyright (C) 2006-2009  Jürg Billeter
 
3
 * Copyright (C) 2006-2010  Jürg Billeter
4
4
 *
5
5
 * This library is free software; you can redistribute it and/or
6
6
 * modify it under the terms of the GNU Lesser General Public
41
41
         */
42
42
        public string return_type { get; set; }
43
43
 
 
44
        public string attributes { get; set; }
 
45
 
44
46
        /**
45
47
         * The function body.
46
48
         */
70
72
        public CCodeFunction copy () {
71
73
                var func = new CCodeFunction (name, return_type);
72
74
                func.modifiers = modifiers;
 
75
                func.attributes = attributes;
73
76
 
74
77
                /* no deep copy for lists available yet
75
78
                 * func.parameters = parameters.copy ();
109
112
                }
110
113
                
111
114
                writer.write_string (")");
 
115
 
112
116
                if (block == null) {
 
117
                        if (attributes != null) {
 
118
                                writer.write_string (" ");
 
119
                                writer.write_string (attributes);
 
120
                        }
 
121
 
113
122
                        writer.write_string (";");
114
123
                } else {
115
124
                        block.write (writer);