~ubuntu-branches/ubuntu/vivid/vala/vivid

« back to all changes in this revision

Viewing changes to vala/valanamespace.vala

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-07-28 07:58:01 UTC
  • mfrom: (1.5.5 upstream) (7.3.14 experimental)
  • Revision ID: james.westby@ubuntu.com-20100728075801-18u9cg5hv5oety6m
Tags: 0.9.4-1
New upstream development release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        private List<string> cprefixes = new ArrayList<string> ();
42
42
        private string lower_case_cprefix;
43
43
        
44
 
        private List<string> cheader_filenames = new ArrayList<string> ();
45
 
 
46
44
        private List<Namespace> namespaces = new ArrayList<Namespace> ();
47
45
 
48
46
        private List<UsingDirective> using_directives = new ArrayList<UsingDirective> ();
517
515
                this.lower_case_cprefix = cprefix;
518
516
        }
519
517
 
520
 
        public override List<string> get_cheader_filenames () {
521
 
                return cheader_filenames;
522
 
        }
523
 
 
524
 
        /**
525
 
         * Sets the C header filename of this namespace to the specified
526
 
         * filename.
527
 
         *
528
 
         * @param cheader_filename header filename
529
 
         */
530
 
        public void set_cheader_filename (string cheader_filename) {
531
 
                cheader_filenames = new ArrayList<string> ();
532
 
                cheader_filenames.add (cheader_filename);
533
 
        }
534
 
        
535
 
        /**
536
 
         * Adds a C header filename of this namespace.
537
 
         *
538
 
         * @param cheader_filename header filename
539
 
         */
540
 
        public void add_cheader_filename (string cheader_filename) {
541
 
                cheader_filenames.add (cheader_filename);
542
 
        }
543
 
 
544
518
        private void process_ccode_attribute (Attribute a) {
545
519
                if (a.has_argument ("cprefix")) {
546
520
                        string value = a.get_string ("cprefix");
559
533
                if (a.has_argument ("cheader_filename")) {
560
534
                        var val = a.get_string ("cheader_filename");
561
535
                        foreach (string filename in val.split (",")) {
562
 
                                cheader_filenames.add (filename);
 
536
                                add_cheader_filename (filename);
563
537
                        }
564
538
                }
565
539
                if (a.has_argument ("gir_namespace")) {