Ignore:
Timestamp:
Mar 6, 2008, 2:10:10 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of nonexistent macify_name() function. According to the original source tree, this function simply replaced slashes with underscores in filenames.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/specs.cpp

    r56 r86  
    2727#include "jmalloc.hpp"
    2828#include "dprint.hpp"
    29 
    30 #if (defined(__APPLE__) && !defined(__MACH__))
    31 extern char *macify_name(char *s);
    32 #endif
    3329
    3430char const *spec_types[] =
     
    296292void fast_load_start_recording(char *filename)
    297293{
    298 #if (defined(__APPLE__) && !defined(__MACH__))
    299   fast_load_fd = ::open(macify_name(filename),O_BINARY|O_CREAT|O_RDWR);
    300 #else
    301   fast_load_fd = ::open(filename,O_CREAT|O_RDWR,S_IRWXU | S_IRWXG | S_IRWXO);
    302 #endif
    303         fast_load_mode = 1;
     294    fast_load_fd = ::open(filename,O_CREAT|O_RDWR,S_IRWXU | S_IRWXG | S_IRWXO);
     295    fast_load_mode = 1;
    304296}
    305297
    306298void fast_load_stop_recording()
    307299{
    308         fast_load_mode = 0;
     300    fast_load_mode = 0;
    309301}
    310302
    311303void fast_load_start_reloading(char *filename)
    312304{
    313 #if (defined(__APPLE__) && !defined(__MACH__))
    314   fast_load_fd = ::open(macify_name(filename),O_BINARY|O_RDONLY);
    315 #else
    316   fast_load_fd = ::open(filename,O_RDONLY);
    317 #endif
    318         fast_load_mode = 2;
     305    fast_load_fd = ::open(filename,O_RDONLY);
     306    fast_load_mode = 2;
    319307}
    320308
    321309void fast_load_stop_reloading()
    322310{
    323         fast_load_mode = 0;
     311    fast_load_mode = 0;
    324312}
    325313
     
    356344    flags|=O_CREAT|O_RDWR;
    357345
    358 #if (defined(__APPLE__) && !defined(__MACH__))
    359     fd=open(macify_name(tmp_name),flags);
    360 #else
    361346    fd=open(tmp_name,flags,S_IRWXU | S_IRWXG | S_IRWXO);
    362 #endif
    363347  } else
    364 #if (defined(__APPLE__) && !defined(__MACH__))
    365     fd=open(macify_name(tmp_name),flags);
    366 #else
    367348    fd=open(tmp_name,flags);
    368 #endif
    369349
    370350//  umask(old_mask);
Note: See TracChangeset for help on using the changeset viewer.