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

« back to all changes in this revision

Viewing changes to src/cmd/cc/lex.c

  • 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:
28
28
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29
29
// THE SOFTWARE.
30
30
 
 
31
#include        <u.h>
 
32
#include        <ctype.h>
31
33
#include        "cc.h"
32
34
#include        "y.tab.h"
33
35
 
384
386
                }else
385
387
                        *w++ = *r;
386
388
        }
387
 
        *w++ = '\0';
 
389
        *w = '\0';
388
390
 
389
391
        h = 0;
390
392
        for(p=symb; *p;) {
1524
1526
        p = malloc(n);
1525
1527
        if(p == nil) {
1526
1528
                print("alloc out of mem\n");
1527
 
                exit(1);
 
1529
                exits("alloc: out of mem");
1528
1530
        }
1529
1531
        memset(p, 0, n);
1530
1532
        return p;
1538
1540
        p = realloc(p, n+d);
1539
1541
        if(p == nil) {
1540
1542
                print("allocn out of mem\n");
1541
 
                exit(1);
 
1543
                exits("allocn: out of mem");
1542
1544
        }
1543
1545
        if(d > 0)
1544
1546
                memset((char*)p+n, 0, d);