Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clean-ide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
clean-ide
Commits
e2ea2757
Commit
e2ea2757
authored
Aug 23, 2018
by
John van Groningen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
also for macosx implement function FExists and add function GetCurrentDirectory, used by cpm
parent
8f637af4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
4 deletions
+23
-4
MacOSX/UtilIO.dcl
MacOSX/UtilIO.dcl
+3
-2
MacOSX/UtilIO.icl
MacOSX/UtilIO.icl
+20
-2
No files found.
MacOSX/UtilIO.dcl
View file @
e2ea2757
...
...
@@ -5,5 +5,6 @@ from UtilDate import ::DATE
GetFullApplicationPath
::
!*
Files
->
(!{#
Char
},!*
Files
)
GetLongPathName
::
!{#
Char
}
->
{#
Char
}
FModified
::
!
String
!
Files
->
(!
DATE
,
!
Files
);
FExists
::
.
a
FModified
::
!
String
!
Files
->
(!
DATE
,
!
Files
)
FExists
::
!
String
!
Files
->
(!
Bool
,
!
Files
)
GetCurrentDirectory
::
(!
Bool
,!
String
)
MacOSX/UtilIO.icl
View file @
e2ea2757
...
...
@@ -92,5 +92,23 @@ free p = code {
ccall
free
"p:I"
}
FExists
::
.
a
;
FExists
=
abort
"FExists"
;
FExists
::
!
String
!
Files
->
(!
Bool
,
!
Files
);
FExists
name
files
#
s
=
createArray
(
IF_INT_64_OR_32
144
88
)
'\0'
;
#
r
=
stat
(
name
+++
"
\0
"
)
s
;
|
r
<>
0
=
(
False
,
files
);
=
(
True
,
files
);
getcwd
::
!{#
Char
}
!
Int
->
Int
;
getcwd
buffer
buffer_size
=
code {
ccall
getcwd
"sp:p"
}
GetCurrentDirectory
::
(!
Bool
,!
String
);
GetCurrentDirectory
#
p
=
getcwd
(
createArray
512
'\0'
)
512
;
|
p
==
0
=
(
False
,
""
);
#
(
s
,_)
=
c_string_to_clean_string
p
;
=
(
True
,
s
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment