File: call_external_0.pro

package info (click to toggle)
gnudatalanguage 0.9.5-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,228 kB
  • ctags: 11,455
  • sloc: cpp: 143,352; makefile: 426; sh: 103; ansic: 44; awk: 18; python: 6
file content (17 lines) | stat: -rw-r--r-- 452 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ echo '$ cat libexample.c' 
$ cat libexample.c
$ echo '$ cat CMakeLists.txt'
$ cat CMakeLists.txt 
$ echo '$ cmake .'
$ cmake .|awk '{print (length($0)>50?substr($0,0,50) "...":$0)}'
$ echo
$ echo '$ make' 
$ make
$ echo

img = 'libexample.'+(!VERSION.OS_NAME eq 'darwin'?"dylib":"so")
message, '1d308 vs. a next representable double:', /continue
print, format='(E)', 1d308, $
  call_external(img, 'c_nextafter', 1d308, 2d308, /d_value)

$ make clean