Results 1 to 2 of 2

Thread: Patch to handle spaces in filenames for slice compilers

  1. #1
    acbell is offline Registered User
    Name: Andrew Bell
    Organization: Iowa State University
    Project: National Resources Inventory
    Join Date
    Jan 2005
    Location
    Ames, IA, USA
    Posts
    89

    Patch to handle spaces in filenames for slice compilers

    Super simple fix for handling embedded spaces in filenames when invoking the slice compilers. You may have a better way of handling this, but this works for us If there are other functions that you pipe stuff to, they probably need to be fixed as well, but I didn't go looking for them.

    Cheers,

    -- Andrew Bell
    andrew.bell.ia@gmail.com

    Ice Version: 2.1.0
    File :src/Slice/Preprocessor.cpp


    --- Preprocessor.cpp Mon Mar 7 08:15:10 2005
    +++ Preprocessor.cpp.save Tue Apr 26 13:59:05 2005
    @@ -71,7 +71,7 @@
    cmd += " -C";
    }

    - cmd += " " + _args + " " + _fileName;
    + cmd += " " + _args + " \"" + _fileName + "\"";

    //
    // Open a pipe for reading to redirect icecpp output to _cppHandle.
    @@ -99,7 +99,7 @@
    return;
    }

    - cmd += " -M " + _args + " " + _fileName;
    + cmd += " -M " + _args + " \"" + _fileName + "\"";

    #ifdef _WIN32
    FILE* cppHandle = _popen(cmd.c_str(), "r");";
    Last edited by acbell; 04-26-2005 at 03:07 PM. Reason: Mention Version #

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Hi Andrew, thanks for the patch! I'll have a look at integrating this.

    Cheers,

    Michil.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mishap in slice compilers
    By grembo in forum Bug Reports
    Replies: 8
    Last Post: 03-30-2011, 04:42 PM
  2. Replies: 3
    Last Post: 03-01-2010, 05:45 PM
  3. Slice compilers unable to parse demo .ice files?
    By asynchronos in forum Help Center
    Replies: 14
    Last Post: 07-17-2008, 07:41 AM
  4. Replies: 2
    Last Post: 01-05-2007, 04:50 AM
  5. How do YOU handle redundant generated slice code?
    By ctennis in forum Help Center
    Replies: 1
    Last Post: 11-10-2006, 03:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •