~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/cmd/cc/lexbody

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
        p = malloc(n);
97
97
        if(p == nil) {
98
98
                print("alloc out of mem\n");
99
 
                exit(1);
 
99
                exits("alloc: out of mem");
100
100
        }
101
101
        memset(p, 0, n);
102
102
        return p;
110
110
        p = realloc(p, n+d);
111
111
        if(p == nil) {
112
112
                print("allocn out of mem\n");
113
 
                exit(1);
 
113
                exits("allocn: out of mem");
114
114
        }
115
115
        if(d > 0)
116
116
                memset((char*)p+n, 0, d);
245
245
                }else
246
246
                        *w++ = *r;
247
247
        }
248
 
        *w++ = '\0';
 
248
        *w = '\0';
249
249
 
250
250
        h = 0;
251
251
        for(p=symb; c = *p; p++)