~ubuntu-branches/ubuntu/lucid/cmake/lucid

« back to all changes in this revision

Viewing changes to Source/cmListFileLexer.c

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2009-12-16 11:11:54 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091216111154-6accvv6yq86h2hkc
Tags: 2.8.0-5ubuntu1
* Merge from debian testing (LP: #497349). Remaining changes:
  - Keep the Replaces: on cmake-data to cover the Kubuntu version from
    Jaunty in case someone decides to do an (unsupported) Jaunty->Lucid
    upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
473
473
#define YY_RESTORE_YY_MORE_OFFSET
474
474
#line 1 "cmListFileLexer.in.l"
475
475
#line 2 "cmListFileLexer.in.l"
476
 
/*=========================================================================
477
 
 
478
 
  Program:   CMake - Cross-Platform Makefile Generator
479
 
  Module:    $RCSfile: cmListFileLexer.c,v $
480
 
  Language:  C++
481
 
  Date:      $Date: 2006-08-09 13:45:04 $
482
 
  Version:   $Revision: 1.15 $
483
 
 
484
 
  Copyright (c) 2002 Kitware, Inc., Insight Consortium.  All rights reserved.
485
 
  See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
486
 
 
487
 
     This software is distributed WITHOUT ANY WARRANTY; without even
488
 
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
489
 
     PURPOSE.  See the above copyright notices for more information.
490
 
 
491
 
=========================================================================*/
 
476
/*============================================================================
 
477
  CMake - Cross Platform Makefile Generator
 
478
  Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
 
479
 
 
480
  Distributed under the OSI-approved BSD License (the "License");
 
481
  see accompanying file Copyright.txt for details.
 
482
 
 
483
  This software is distributed WITHOUT ANY WARRANTY; without even the
 
484
  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
485
  See the License for more information.
 
486
============================================================================*/
492
487
/*
493
488
 
494
489
This file must be translated to C and modified to build everywhere.
2127
2122
    }
2128
2123
 
2129
2124
  /* We need to extend the buffer.  */
2130
 
  temp = malloc(newSize);
 
2125
  temp = (char*)malloc(newSize);
2131
2126
  if(lexer->token.text)
2132
2127
    {
2133
2128
    memcpy(temp, lexer->token.text, lexer->token.length);