summaryrefslogtreecommitdiff
path: root/atari/osspec.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-06-30 20:20:27 +0000
committerOle Loots <ole@monochrom.net>2011-06-30 20:20:27 +0000
commit5639e1e04772db96a7772ec8ba4facf5bf5e6d40 (patch)
treee142919bcb59213ac2d1f8be06376bd72cd0d844 /atari/osspec.c
parente9d4b68e2820529b41678173d43815d12f2cd69e (diff)
downloadnetsurf-5639e1e04772db96a7772ec8ba4facf5bf5e6d40.tar.gz
netsurf-5639e1e04772db96a7772ec8ba4facf5bf5e6d40.tar.bz2
removed preparations for frames. (will be handled within the core)
svn path=/trunk/netsurf/; revision=12550
Diffstat (limited to 'atari/osspec.c')
-rw-r--r--atari/osspec.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/atari/osspec.c b/atari/osspec.c
index bbceec144..a82589daa 100644
--- a/atari/osspec.c
+++ b/atari/osspec.c
@@ -189,47 +189,3 @@ char * gemdos_realpath(const char * path, char * rpath)
return( rpath );
}
-char * gemdos_realpathX(const char * path, char * rpath)
-{
- size_t l;
- size_t i;
- char old = '/';
- char fsep = 0x5C;
- if( rpath == NULL ){
- return( NULL );
- }
- if( sys_type() & SYS_MINT ){
- return( realpath(path, rpath) );
- }
-
- if( path[0] != '/' && path[0] != 0x5c && path[1] != ':') {
- /* it is not an absolute path */
- char cwd[PATH_MAX];
- getcwd((char*)&cwd, PATH_MAX);
- //fix_path((char*)&cwd);
- strcpy(rpath, (char*)&cwd);
- l = strlen(rpath);
- /* append path seperator if needed: */
- if(rpath[l-1] != 0x5C && rpath[l-1] != '/') {
- rpath[l] = fsep;
- rpath[l+1] = 0;
- }
- /* check if path is starting with: ./ */
- if( (path[1] == '/' || path[1] == 0x5C ) ) {
- strcat(rpath, &path[2]);
- } else {
- /* otherwise just append it */
- strcat(rpath, path);
- }
- } else {
- strcpy(rpath, path);
- }
- /* convert path seperator to configured value: */
- l = strlen(rpath);
- for( i = 0; i<l-1; i++){
- if( rpath[i] == old ){
- rpath[i] = fsep;
- }
- }
- return( rpath );
-} \ No newline at end of file