Skip to content

Commit a9b9b6f

Browse files
committed
Minor updates prior release.
1 parent ab957b5 commit a9b9b6f

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# fortran-curl
22
A collection of ISO C binding interfaces to
3-
[libcurl](https://curl.haxx.se/libcurl/) for Fortran 2008. At the moment, this
4-
project is just a proof of concept. Compilation has been tested with GNU
5-
Fortran 10 and cURL 7.72.0.
3+
[libcurl](https://curl.haxx.se/libcurl/) for Fortran 2008. Compilation has been
4+
tested with GNU Fortran 10 and cURL 7.74.0.
65

76
## Dependencies
87
Install cURL with development headers. On FreeBSD, run:
@@ -23,7 +22,7 @@ $ make
2322
You can override the default compiler by passing the `FC` argument, for example:
2423

2524
```
26-
$ make FC=gfortran10
25+
$ make FC=ifort
2726
```
2827

2928
On Linux, you may want to change the prefix to `/usr`:
@@ -66,16 +65,17 @@ $ make <name>
6665
| `CURLVERSION_NOW` | `curl_version_now` ||
6766

6867
## Support for fpm
69-
This projects supports the Fortran package manager ([``fpm``](https://github.com/fortran-lang/fpm)).
70-
To build the project with ``fpm`` run
68+
This projects supports the Fortran Package Manager
69+
([fpm](https://github.com/fortran-lang/fpm)). To build the project with *fpm*,
70+
run:
7171

7272
```
73-
fpm build
73+
$ fpm build
7474
```
7575

7676
The example applications are available with the ``fpm run --example`` command.
7777

78-
You can use ``fortran-curl`` in your ``fpm`` projects with
78+
You can use ``fortran-curl`` in your *fpm* projects with
7979

8080
```toml
8181
[dependencies]

examples/gopher/gopher.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
!
55
! Author: Philipp Engel
66
! Licence: ISC
7-
module callback
7+
module callback_gopher
88
use :: curl, only: c_f_str_ptr
99
implicit none
1010
private
@@ -45,7 +45,7 @@ function response_callback(ptr, sze, nmemb, data) bind(c)
4545
deallocate (tmp)
4646
response_callback = nmemb
4747
end function response_callback
48-
end module callback
48+
end module callback_gopher
4949

5050
module gopher
5151
implicit none
@@ -149,8 +149,8 @@ end module gopher
149149

150150
program main
151151
use, intrinsic :: iso_c_binding
152+
use :: callback_gopher
152153
use :: curl
153-
use :: callback
154154
use :: gopher
155155
implicit none
156156

fpm.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name = "fortran-curl"
2+
version = "0.1.0"
23
license = "ISC"
34
author = "Philipp Engel"
45
maintainer = "@interkosmos"

0 commit comments

Comments
 (0)