~ubuntu-branches/ubuntu/trusty/vala/trusty

« back to all changes in this revision

Viewing changes to vala/valascanner.vala

  • Committer: Bazaar Package Importer
  • Author(s): Michael Terry
  • Date: 2011-01-18 09:51:15 UTC
  • mfrom: (1.5.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20110118095115-r2jr7c63lr0jzj0y
Tags: 0.11.4-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1367
1367
                        return false;
1368
1368
                }
1369
1369
 
1370
 
                string identifier = ((string) (current - len)).ndup (len);
 
1370
                string identifier = ((string) (current - len)).substring (0, len);
1371
1371
                bool defined;
1372
1372
                if (identifier == "true") {
1373
1373
                        defined = true;
1512
1512
                        }
1513
1513
 
1514
1514
                        if (source_reference != null) {
1515
 
                                push_comment (((string) begin).ndup ((long) (current - begin)), source_reference, file_comment);
 
1515
                                push_comment (((string) begin).substring (0, (long) (current - begin)), source_reference, file_comment);
1516
1516
                        }
1517
1517
                } else {
1518
1518
                        SourceReference source_reference = null;
1544
1544
                        }
1545
1545
 
1546
1546
                        if (source_reference != null) {
1547
 
                                push_comment (((string) begin).ndup ((long) (current - begin)), source_reference, file_comment);
 
1547
                                push_comment (((string) begin).substring (0, (long) (current - begin)), source_reference, file_comment);
1548
1548
                        }
1549
1549
 
1550
1550
                        current += 2;