Skip to content

Commit

Permalink
doxygen support
Browse files Browse the repository at this point in the history
  • Loading branch information
vscosta committed Sep 15, 2014
1 parent 9caa663 commit 3d7af0e
Show file tree
Hide file tree
Showing 19 changed files with 54 additions and 17 deletions.
4 changes: 2 additions & 2 deletions cgi.pl
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

:- use_foreign_library(foreign(cgi), install_cgi).

/** <module> Read CGI parameters
@ingroup SWILibrary
/** <module> Simple CGI form
@ingroup SWILibrary
Below is a very simple CGI script that prints the passed parameters. To
test it, compile this program using the command below, copy it to your
Expand Down
6 changes: 5 additions & 1 deletion crypt.pl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@

:- use_foreign_library(foreign(crypt), install_crypt).

% crypt(+Passwd, ?Encripted).
/** <module> Encrypt a passsword
@ingroup SWIclib
*/

%% crypt(+Passwd, ?Encripted).
%
% Used to test an encrypted passwd or create one. In the latter
% case, the first 2 letter must be instantiated
2 changes: 1 addition & 1 deletion filesex.pl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
]).

/** <module> Extended operations on files
@ingroup SWILibrary
@ingroup SWILibrary
This module provides additional operations on files. This covers both
more obscure and possible non-portable low-level operations and
Expand Down
4 changes: 4 additions & 0 deletions memfile.pl
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@
:- use_module(library(shlib)).

:- use_foreign_library(foreign(memfile)).

/** <module> Memory File
@ingroup SWIclib
*/
2 changes: 1 addition & 1 deletion mime.pl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
:- license(gpl).

/** <module> Parse MIME documents
@ingroup SWILibrary
@ingroup SWILibrary
This module defines an interface to the rfc2045 (MIME) parsing library
by Double Precision, Inc, part of the maildrop system. This library is
Expand Down
2 changes: 1 addition & 1 deletion process.pl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
]).

/** <module> Create processes and redirect I/O
@ingroup SWILibrary
@ingroup SWIclib
The module library(process) implements interaction with child processes
and unifies older interfaces such as shell/[1,2], open(pipe(command),
Expand Down
4 changes: 4 additions & 0 deletions prolog_server.pl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
:- use_module(library(lists)).
:- use_module(library(socket)).

/** <module> TCP Server
@ingroup socket
*/

%% prolog_server(?Port, +Options)
%
% Create a TCP/IP based server on the given Port, so you can
Expand Down
4 changes: 4 additions & 0 deletions rlimit.pl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
[ rlimit/3 % +Limit, -Old, +New
]).

/** <module> Process Resource Management
* @ingroup SWIclib
*/

% rlimit(+Limit, -Old, +New)
%
% Query and set POSIX resource limits. Provided resources are:
Expand Down
4 changes: 4 additions & 0 deletions sha.pl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@

:- use_foreign_library(foreign(sha4pl)).

/** <module> SHA hash
* @ingroup clib
*/

%% sha_hash(+Data, -Hash, +Options) is det
%
% Hash is the SHA hash of Data, The conversion is controlled
Expand Down
4 changes: 4 additions & 0 deletions socket.pl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
]).
:- use_module(library(shlib)).

/** <module> Socket routines
* @ingroup SWIclib
*/

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
These predicates are documented in the source-distribution of the package
`clib'. See also the SWI-Prolog home-page at http://www.swi-prolog.org
Expand Down
4 changes: 4 additions & 0 deletions streaminfo.pl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
[ stream_info/1 % +Stream
]).

/** <module> Stream Information
* @ingroup SWIclib
*/

:- use_foreign_library(foreign(streaminfo)).

%% stream_info(+Stream) is det.
Expand Down
14 changes: 9 additions & 5 deletions streampool.pl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
:- use_module(library(quintus)).
:- use_module(library(debug)).

/** <module> Stream Pool Management
* @ingroup socket
*/

:- meta_predicate
add_stream_to_pool(+, :).

Expand All @@ -47,7 +51,7 @@
:- dynamic
pool/2. % Stream, Action

% add_stream_to_pool(+Stream :Goal)
%% add_stream_to_pool(+Stream :Goal)
%
% Call Goal whenever there is input on Stream.

Expand All @@ -58,14 +62,14 @@
register_stream(Stream, Goal) :-
assert(pool(Stream, Goal)).

% delete_stream_from_pool(+Stream)
%% delete_stream_from_pool(+Stream)
%
% Retract stream from the pool

delete_stream_from_pool(Stream) :-
retractall(pool(Stream, _)).

% close_stream_pool
%% close_stream_pool

close_stream_pool :-
( retract(pool(Stream, _)),
Expand All @@ -74,7 +78,7 @@
; true
).

% dispatch_stream_pool(+TimeOut)
%% dispatch_stream_pool(+TimeOut)
%
% Wait for input on one or more streams and handle that. Wait for
% at most TimeOut seconds (0 means infinite).
Expand Down Expand Up @@ -105,7 +109,7 @@
goal_failed(Action, stream_pool))
).

% stream_pool_main_loop
%% stream_pool_main_loop
%
% Keep handling input from the streams in the pool until they have
% all died away.
Expand Down
4 changes: 2 additions & 2 deletions syslog.pl
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
closelog/0
]).

/** <module> Unix syslog interface
@ingroup SWILibrary
/** <module> Unix system logger interface
@ingroup SWIclib
This library provides an interface to the Unix syslog() facility. The
interface is an almost direct translation of the POSIX syslog API, with
Expand Down
4 changes: 4 additions & 0 deletions time.pl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
alarm_at(+, 0, -, +),
current_alarm(?, :, ?, ?).

/** <module> SWI-style timer/alarms
@ingroup SWIclib
*/

%% alarm(+Time, :Callable, -Id) is det.
%% alarm(+Time, :Callable, -Id, +Options) is det.
%
Expand Down
1 change: 1 addition & 0 deletions udp_broadcast.pl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
]).

/** <module> A UDP Broadcast Bridge
@ingroup socket
SWI-Prolog's broadcast library provides a means that may be used to
facilitate publish and subscribe communication regimes between anonymous
Expand Down
2 changes: 1 addition & 1 deletion uid.pl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
:- use_foreign_library(foreign(uid)).

/** <module> User and group management on Unix systems
@ingroup SWILibrary
@ingroup SWIclib
This module provides and interface to user and group information on
Posix systems. In addition, it allows for changing user and group ids.
Expand Down
2 changes: 1 addition & 1 deletion unix.pl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
:- use_module(library(shlib)).

/** <module> Unix specific operations
@ingroup SWILibrary
@ingroup SWIclib
The library(unix) library provides the commonly used Unix primitives to
deal with process management. These primitives are useful for many
Expand Down
2 changes: 1 addition & 1 deletion uri.pl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
:- use_foreign_library(foreign(uri)).

/** <module> Process URIs
@ingroup SWILibrary
@ingroup SWIclib
This library provides high-performance C-based primitives for
manipulating URIs. We decided for a C-based implementation for the much
Expand Down
2 changes: 1 addition & 1 deletion uuid.pl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
]).

/** <module> Universally Unique Identifier (UUID) Library
@ingroup SWILibrary
@ingroup SWIclib
The library provides operations on UUIDs. Please consult other sources
for understanding UUIDs and the implications of the different UUID
Expand Down

0 comments on commit 3d7af0e

Please sign in to comment.