aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/ARGOT_SETUP.3 (renamed from doc/GRECS_SETUP.3)38
-rw-r--r--doc/Makefile.am32
-rw-r--r--doc/argot-syntax.texi (renamed from doc/grecs-syntax.texi)8
-rw-r--r--doc/argot_asprintf.3 (renamed from doc/grecs_asprintf.3)28
-rw-r--r--doc/argot_config.5 (renamed from doc/grecs_config.5)20
-rw-r--r--doc/argot_error.3 (renamed from doc/grecs_error.3)48
-rw-r--r--doc/argot_format_locus.3 (renamed from doc/grecs_format_locus.3)32
-rw-r--r--doc/argot_format_node.3 (renamed from doc/grecs_format_node.3)56
-rw-r--r--doc/argot_format_node_path.3 (renamed from doc/grecs_format_node_path.3)36
-rw-r--r--doc/argot_format_value.3 (renamed from doc/grecs_format_value.3)30
-rw-r--r--doc/argot_include_path_setup.3 (renamed from doc/grecs_include_path_setup.3)26
-rw-r--r--doc/argot_malloc.3 (renamed from doc/grecs_malloc.3)72
-rw-r--r--doc/argot_node_free.3 (renamed from doc/grecs_node_free.3)20
-rw-r--r--doc/argot_parse.3 (renamed from doc/grecs_parse.3)92
-rw-r--r--doc/argot_stmt_path.5 (renamed from doc/grecs_stmt_path.5)12
-rw-r--r--doc/argot_strdup.3 (renamed from doc/grecs_strdup.3)24
-rw-r--r--doc/argot_tree_free.3 (renamed from doc/grecs_tree_free.3)20
-rw-r--r--doc/tmpl.310
-rw-r--r--doc/wordsplit.36
19 files changed, 305 insertions, 305 deletions
diff --git a/doc/GRECS_SETUP.3 b/doc/ARGOT_SETUP.3
index 8aa086a..3c18d1e 100644
--- a/doc/GRECS_SETUP.3
+++ b/doc/ARGOT_SETUP.3
@@ -1,4 +1,4 @@
-.\" This file is part of grecs -*- nroff -*-
+.\" This file is part of argot -*- nroff -*-
.\" Copyright (C) 2007-2016 Sergey Poznyakoff
.\"
.\" Grecs is free software; you can redistribute it and/or modify
@@ -14,14 +14,14 @@
.\" You should have received a copy of the GNU General Public License
.\" along with Grecs. If not, see <http://www.gnu.org/licenses/>.
.\"
-.TH GRECS_SETUP 3 "August 13, 2012" "GRECS" "Grecs User Reference"
+.TH ARGOT_SETUP 3 "August 13, 2012" "ARGOT" "Grecs User Reference"
.SH NAME
-GRECS_SETUP \- Initialize \fBgrecs\fR submodule.
+ARGOT_SETUP \- Initialize \fBargot\fR submodule.
.SH SYNOPSIS
-.BI "GRECS_SETUP(" "dir" ", " "options" ", " "pp-setup-file" )
+.BI "ARGOT_SETUP(" "dir" ", " "options" ", " "pp-setup-file" )
.SH DESCRIPTION
-The \fBGRECS_SETUP\fR macro is invoked from the host project's
-\fBconfigure.ac\fR. It initializes the \fBgrecs\fR submodule
+The \fBARGOT_SETUP\fR macro is invoked from the host project's
+\fBconfigure.ac\fR. It initializes the \fBargot\fR submodule
variables for compilation within that project.
.PP
All arguments are optional.
@@ -29,15 +29,15 @@ All arguments are optional.
The
.I dir
argument specifies the directory, relative to the source tree top,
-where \fBgrecs\fR has been cloned. If omitted, \fBgrecs\fR is assumed.
+where \fBargot\fR has been cloned. If omitted, \fBargot\fR is assumed.
.sp
-For example, if \fBgrecs\fR was cloned using the following command:
+For example, if \fBargot\fR was cloned using the following command:
.sp
.nf
- git clone ssh://git.gnu.org.ua/gitroot/grecs.git lib/grecs
+ git clone ssh://git.gnu.org.ua/gitroot/argot.git lib/argot
.fi
.sp
-then the \fIdir\fR argument must be \fBlib/grecs\fR.
+then the \fIdir\fR argument must be \fBlib/argot\fR.
.PP
The
.I options
@@ -63,19 +63,19 @@ Build the parser for MeTA1 configuration files.
Disable the use of preprocessor.
.TP
.B install
-Create and install shared library \fBlibgrecs.so\fR. Install the
+Create and install shared library \fBlibargot.so\fR. Install the
documentation as well.
.TP
.B shared
Create a shared convenience library. By default, a static library is
-created. Use this option if you want to incorporate grecs into another
+created. Use this option if you want to incorporate argot into another
shared library.
.TP
.B install-header
Install header files. This option is valid only when used together
with \fBshared\fR. Header files will be installed in
\fBpkgincludedir\fR. To select another installation directory, define
-the variable \fBGRECS_INCLUDE_DIR\fR to the name of that directory.
+the variable \fBARGOT_INCLUDE_DIR\fR to the name of that directory.
.TP
.B std-pp-setup
Install the standard \fBpp-setup\fR file.
@@ -98,7 +98,7 @@ Add \fBgit2chg.awk\fR to the distributed tarball. The file is located
in \fIdir\fR/build-aux.
.TP
.B syntax-doc
-Add \fBdoc/grecs-syntax.texi\fR file to the distributed tarball. Use this
+Add \fBdoc/argot-syntax.texi\fR file to the distributed tarball. Use this
if your texinfo documentation includes that file.
.PP
The
@@ -117,17 +117,17 @@ parameter are supplied, no preprocessor setup file is installed.
.SS "Default setup"
.RS 4
.nf
-GRECS_SETUP
+ARGOT_SETUP
.fi
.RE
.SS "Complex setup"
-The library sources are in \fBlib/grecs\fR. Configure the testsuite
+The library sources are in \fBlib/argot\fR. Configure the testsuite
and add the \fBgetopt.m4\fR file to the distribution. Install
preprocessor setup file from \fBsrc/pp-setup\fR:
.sp
.RS 4
.nf
-GRECS_SETUP(lib/grecs, [tests getopt], [$(top_srcdir)/src/pp-setup])
+ARGOT_SETUP(lib/argot, [tests getopt], [$(top_srcdir)/src/pp-setup])
.RE
.SH "SEE ALSO"
.BR getopt.m4 (5),
@@ -135,11 +135,11 @@ GRECS_SETUP(lib/grecs, [tests getopt], [$(top_srcdir)/src/pp-setup])
.SH AUTHORS
Sergey Poznyakoff
.SH "BUG REPORTS"
-Report bugs to <gray+grecs@gnu.org.ua>.
+Report bugs to <gray+argot@gnu.org.ua>.
.SH COLOPHON
The \fBGrecs\fR library is constantly changing, so this manual page
may be incorrect or out-of-date. For the latest copy of \fBGrecs\fR
-documentation, visit <http://www.gnu.org.ua/software/grecs>.
+documentation, visit <http://www.gnu.org.ua/software/argot>.
.SH COPYRIGHT
Copyright \(co 2011 Sergey Poznyakoff
.br
diff --git a/doc/Makefile.am b/doc/Makefile.am
index a646367..ac32a36 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,4 +1,4 @@
-# This file is part of grecs - Gray's Extensible Configuration System
+# This file is part of argot - Gray's Extensible Configuration System
# Copyright (C) 2007-2016 Sergey Poznyakoff
#
# Grecs is free software; you can redistribute it and/or modify
@@ -15,19 +15,19 @@
# along with Grecs. If not, see <http://www.gnu.org/licenses/>.
dist_man_MANS = \
- GRECS_SETUP.3\
- grecs_asprintf.3\
- grecs_config.5\
- grecs_error.3\
- grecs_format_locus.3\
- grecs_format_node_path.3\
- grecs_format_node.3\
- grecs_format_value.3\
- grecs_include_path_setup.3\
- grecs_malloc.3\
- grecs_node_free.3\
- grecs_parse.3\
- grecs_stmt_path.5\
- grecs_strdup.3\
- grecs_tree_free.3
+ ARGOT_SETUP.3\
+ argot_asprintf.3\
+ argot_config.5\
+ argot_error.3\
+ argot_format_locus.3\
+ argot_format_node_path.3\
+ argot_format_node.3\
+ argot_format_value.3\
+ argot_include_path_setup.3\
+ argot_malloc.3\
+ argot_node_free.3\
+ argot_parse.3\
+ argot_stmt_path.5\
+ argot_strdup.3\
+ argot_tree_free.3
diff --git a/doc/grecs-syntax.texi b/doc/argot-syntax.texi
index 2ddedea..db81133 100644
--- a/doc/grecs-syntax.texi
+++ b/doc/argot-syntax.texi
@@ -1,4 +1,4 @@
-@c This file is part of grecs - Gray's Extensible Configuration System
+@c This file is part of argot - Gray's Extensible Configuration System
@c Copyright (C) 2007-2016 Sergey Poznyakoff
@c
@c Grecs is free software; you can redistribute it and/or modify
@@ -20,7 +20,7 @@
@c @lowersections:
@c
@c @raisesections
-@c @include grecs-syntax.texi
+@c @include argot-syntax.texi
@c @lowersections
@c
@c 2. This texinfo source refers to the following values:
@@ -219,8 +219,8 @@ physical lines, e.g.:
If the character following a backslash is not one of those specified
above, the backslash is ignored and a warning is issued.
-@c FIXME: If grecs_parser_options variable has
-@c FIXME: GRECS_OPTION_QUOTED_STRING_CONCAT bit set, then the
+@c FIXME: If argot_parser_options variable has
+@c FIXME: ARGOT_OPTION_QUOTED_STRING_CONCAT bit set, then the
@c FIXME: following holds:
@ignore
diff --git a/doc/grecs_asprintf.3 b/doc/argot_asprintf.3
index 25279be..fa86190 100644
--- a/doc/grecs_asprintf.3
+++ b/doc/argot_asprintf.3
@@ -1,4 +1,4 @@
-.\" This file is part of grecs -*- nroff -*-
+.\" This file is part of argot -*- nroff -*-
.\" Copyright (C) 2007-2016 Sergey Poznyakoff
.\"
.\" Grecs is free software; you can redistribute it and/or modify
@@ -14,25 +14,25 @@
.\" You should have received a copy of the GNU General Public License
.\" along with Grecs. If not, see <http://www.gnu.org/licenses/>.
.\"
-.TH GRECS_ASPRINTF 3 "May 4, 2011" "GRECS" "Grecs User Reference"
+.TH ARGOT_ASPRINTF 3 "May 4, 2011" "ARGOT" "Grecs User Reference"
.SH NAME
-grecs_asprintf, grecs_vasprintf \- print to allocated string
+argot_asprintf, argot_vasprintf \- print to allocated string
.SH SYNOPSIS
.nf
-.B #include <grecs.h>
+.B #include <argot.h>
.sp
-.BI "int grecs_vasprintf(char " "**pbuf" ", size_t " "*psize" \
+.BI "int argot_vasprintf(char " "**pbuf" ", size_t " "*psize" \
", const char " "*format" ", "
.ti +17
.BI "va_list " "ap" );
.br
-.BI "int grecs_asprintf(char " "**pbuf" ", size_t " "*psize" \
+.BI "int argot_asprintf(char " "**pbuf" ", size_t " "*psize" \
", const char *" "format" ", ...);"
.SH DESCRIPTION
The functions
-.BI grecs_asprintf ()
+.BI argot_asprintf ()
and
-.BI grecs_vasprintf ()
+.BI argot_vasprintf ()
are analogs of
.BR sprintf (3)
and
@@ -52,23 +52,23 @@ In both cases, if the buffer has been reallocated, on return
\fBpbuf\fR will contain its new address and \fBpsize\fR its new size.
.PP
For initial allocation,
-.BR grecs_malloc (3)
+.BR argot_malloc (3)
is used. To reallocate memory, both functions use
-.BR grecs_realloc (3).
+.BR argot_realloc (3).
.SH RETURN VALUE
None. If memory allocation fails, a diagnostics is output and the
program is terminated.
.SH "SEE ALSO"
-.BR grecs_malloc (3),
-.BR grecs_realloc (3).
+.BR argot_malloc (3),
+.BR argot_realloc (3).
.SH AUTHORS
Sergey Poznyakoff
.SH "BUG REPORTS"
-Report bugs to <gray+grecs@gnu.org.ua>.
+Report bugs to <gray+argot@gnu.org.ua>.
.SH COLOPHON
The \fBGrecs\fR library is constantly changing, so this manual page
may be incorrect or out-of-date. For the latest copy of \fBGrecs\fR
-documentation, visit <http://www.gnu.org.ua/software/grecs>.
+documentation, visit <http://www.gnu.org.ua/software/argot>.
.SH COPYRIGHT
Copyright \(co 2011 Sergey Poznyakoff
.br
diff --git a/doc/grecs_config.5 b/doc/argot_config.5
index 5fdaed4..abd6420 100644
--- a/doc/grecs_config.5
+++ b/doc/argot_config.5
@@ -1,4 +1,4 @@
-.\" This file is part of grecs -*- nroff -*-
+.\" This file is part of argot -*- nroff -*-
.\" Copyright (C) 2007-2016 Sergey Poznyakoff
.\"
.\" Grecs is free software; you can redistribute it and/or modify
@@ -14,7 +14,7 @@
.\" You should have received a copy of the GNU General Public License
.\" along with Grecs. If not, see <http://www.gnu.org/licenses/>.
.\"
-.TH GRECS_CONFIG 3 "December 25, 2014" "GRECS" "Grecs User Reference"
+.TH ARGOT_CONFIG 3 "December 25, 2014" "ARGOT" "Grecs User Reference"
.SH NAME
\fBGrecs\fR configuration file syntax
.SH DESCRIPTION
@@ -94,11 +94,11 @@ the program which uses the configuration file, and \fIVERSION\fR for
its version number.
.sp
The include search path can be modified using the
-.BI grecs_include_path_setup ()
+.BI argot_include_path_setup ()
and
-.BI grecs_include_path_setup_v ()
+.BI argot_include_path_setup_v ()
functions. Refer to
-.BR grecs_include_path_setup (3),
+.BR argot_include_path_setup (3),
for a detailed discussion.
.TP
.BR "#include_once <" "file" >
@@ -323,17 +323,17 @@ advantage that it works with non-GNU m4 implementations as
well.
.SH "SEE ALSO"
.BR m4 (1),
-.BR grecs_parse (3),
-.BR grecs_include_path_setup (3),
-.BR grecs_tree_process (3).
+.BR argot_parse (3),
+.BR argot_include_path_setup (3),
+.BR argot_tree_process (3).
.SH AUTHORS
Sergey Poznyakoff
.SH "BUG REPORTS"
-Report bugs to <gray+grecs@gnu.org.ua>.
+Report bugs to <gray+argot@gnu.org.ua>.
.SH COLOPHON
The \fBGrecs\fR library is constantly changing, so this manual page
may be incorrect or out-of-date. For the latest copy of \fBGrecs\fR
-documentation, visit <http://www.gnu.org.ua/software/grecs>.
+documentation, visit <http://www.gnu.org.ua/software/argot>.
.SH COPYRIGHT
Copyright \(co 2011 Sergey Poznyakoff
.br
diff --git a/doc/grecs_error.3 b/doc/argot_error.3
index a020d36..ab623dc 100644
--- a/doc/grecs_error.3
+++ b/doc/argot_error.3
@@ -1,4 +1,4 @@
-.\" This file is part of grecs -*- nroff -*-
+.\" This file is part of argot -*- nroff -*-
.\" Copyright (C) 2007-2016 Sergey Poznyakoff
.\"
.\" Grecs is free software; you can redistribute it and/or modify
@@ -14,29 +14,29 @@
.\" You should have received a copy of the GNU General Public License
.\" along with Grecs. If not, see <http://www.gnu.org/licenses/>.
.\"
-.TH GRECS_ERROR 3 "July 1, 2011" "GRECS" "Grecs User Reference"
+.TH ARGOT_ERROR 3 "July 1, 2011" "ARGOT" "Grecs User Reference"
.SH NAME
-grecs_error, grecs_warning \- grecs error reporting functions
+argot_error, argot_warning \- argot error reporting functions
.SH SYNOPSIS
.nf
-.B #include <grecs.h>
+.B #include <argot.h>
.sp
-.BI "void grecs_error(grecs_locus_t " "*locus" ", int " "errnum" ", "
+.BI "void argot_error(argot_locus_t " "*locus" ", int " "errnum" ", "
.ti +17
.BI "const char " "*format" ", ...);"
.br
-.BI "void grecs_warning(grecs_locus_t " "*locus" ", int " "errnum" ", "
+.BI "void argot_warning(argot_locus_t " "*locus" ", int " "errnum" ", "
.ti +17
.BI "const char " "*format" ", ...);"
.sp
-.BI "void (*grecs_print_diag_fun)(grecs_locus_t " "*locus" ", "
+.BI "void (*argot_print_diag_fun)(argot_locus_t " "*locus" ", "
.ti +17
.BI "int " "err" ", int " "errnum" ", const char " "*msg" );
.sp
-.B extern int grecs_error_count;
+.B extern int argot_error_count;
.SH DESCRIPTION
-.BI grecs_error ()
-is a error reporting function for \fBgrecs\fR library. It flushes
+.BI argot_error ()
+is a error reporting function for \fBargot\fR library. It flushes
stdout, and outputs to stderr the file name and line number, as
supplied by the
.BI locus
@@ -52,22 +52,22 @@ If \fIlocus\fR is \fBNULL\fR, it is ignored and no file location is
printed.
.PP
Each call to
-.BI grecs_error ()
+.BI argot_error ()
increments the value of the
-.BI grecs_error_count
+.BI argot_error_count
global variable.
The
-.BI grecs_warning ()
+.BI argot_warning ()
function works the same as
-.BI grecs_error (),
+.BI argot_error (),
except that it outputs, before the formatted message and after the
file location, the word \fBwarning\fR, followed by a semicolon
and a space character. It does not modify the
-.BI grecs_error_count
+.BI argot_error_count
variable.
.PP
Calling program can modify the behavior of both functions by setting
-.BI grecs_print_diag_fun
+.BI argot_print_diag_fun
to the address of a custom error-reporting function. This function is
called with the following arguments:
.TP
@@ -86,21 +86,21 @@ System error code, or \fB0\fR, if no system error occurred.
.I msg
Formatted message.
.PP
-The \fBgrecs_locus_t\fR structure consists of two \fBpoints\fR, each
+The \fBargot_locus_t\fR structure consists of two \fBpoints\fR, each
point describing the beginning and the end of the input fragment in
question:
.sp
.nf
.in +5
-struct grecs_locus_point {
+struct argot_locus_point {
char *file;
unsigned line;
unsigned col;
};
typedef struct {
- struct grecs_locus_point beg;
- struct grecs_locus_point end;
-} grecs_locus_t;
+ struct argot_locus_point beg;
+ struct argot_locus_point end;
+} argot_locus_t;
.in
.fi
.PP
@@ -109,7 +109,7 @@ member contains the input line number and the \fBcol\fR member
contains the column number. Both lines and columns are numbered from
1.
.PP
-On output, the \fBgrecs_locus_t\fR structure is formatted as follows:
+On output, the \fBargot_locus_t\fR structure is formatted as follows:
.sp
.nf
.in +5
@@ -160,11 +160,11 @@ None.
.SH AUTHORS
Sergey Poznyakoff
.SH "BUG REPORTS"
-Report bugs to <gray+grecs@gnu.org.ua>.
+Report bugs to <gray+argot@gnu.org.ua>.
.SH COLOPHON
The \fBGrecs\fR library is constantly changing, so this manual page
may be incorrect or out-of-date. For the latest copy of \fBGrecs\fR
-documentation, visit <http://www.gnu.org.ua/software/grecs>.
+documentation, visit <http://www.gnu.org.ua/software/argot>.
.SH COPYRIGHT
Copyright \(co 2011 Sergey Poznyakoff
.br
diff --git a/doc/grecs_format_locus.3 b/doc/argot_format_locus.3
index 5ab3542..52bfc3d 100644
--- a/doc/grecs_format_locus.3
+++ b/doc/argot_format_locus.3
@@ -1,4 +1,4 @@
-.\" This file is part of grecs -*- nroff -*-
+.\" This file is part of argot -*- nroff -*-
.\" Copyright (C) 2007-2016 Sergey Poznyakoff
.\"
.\" Grecs is free software; you can redistribute it and/or modify
@@ -14,27 +14,27 @@
.\" You should have received a copy of the GNU General Public License
.\" along with Grecs. If not, see <http://www.gnu.org/licenses/>.
.\"
-.TH GRECS_FORMAT_LOCUS 3 "May 19, 2011" "GRECS" "Grecs User Reference"
+.TH ARGOT_FORMAT_LOCUS 3 "May 19, 2011" "ARGOT" "Grecs User Reference"
.SH NAME
-grecs_format_locus \- format and output source file location
+argot_format_locus \- format and output source file location
.SH SYNOPSIS
.nf
-.B #include <grecs.h>
+.B #include <argot.h>
.sp
-.BI "void grecs_format_locus(grecs_locus_t " "*locus" ","
+.BI "void argot_format_locus(argot_locus_t " "*locus" ","
.ti +17
-.BI "struct grecs_format_closure " "*clos" );
+.BI "struct argot_format_closure " "*clos" );
.sp
-.BI "void grecs_print_locus(grecs_locus_t " "*locus" ", FILE " "*fp" );
+.BI "void argot_print_locus(argot_locus_t " "*locus" ", FILE " "*fp" );
.SH DESCRIPTION
-\fBgrecs_print_locus\fR formats the location from \fIlocus\fR in the
+\fBargot_print_locus\fR formats the location from \fIlocus\fR in the
human-readable form and outputs it using the format closure
\fIclos\fR. The closure is defined as:
.sp
.nf
.in +5
-struct grecs_format_closure
+struct argot_format_closure
{
int (*fmtfun)(const char *str, void *data);
void *data;
@@ -47,7 +47,7 @@ be called one or more times. On each invocation, it is supplied with
the string to be output as its first argument, and pointer to
\fBdata\fR as the second one.
.PP
-\fBgrecs_print_locus\fR is an alternative interface, which formats the
+\fBargot_print_locus\fR is an alternative interface, which formats the
location from \fIlocus\fR in the human-readable form and outputs it to
file \fBfp\fR.
.PP
@@ -60,21 +60,21 @@ doing anything.
None.
.SH NOTES
This are auxiliary functions used by
-.BR grecs_format_node (3)
+.BR argot_format_node (3)
and
-.BR grecs_print_node (3),
+.BR argot_print_node (3),
correspondingly. They are is seldom needed in user programs.
.SH "SEE ALSO"
-.BR grecs_format_node (3),
-.BR grecs_print_node (3).
+.BR argot_format_node (3),
+.BR argot_print_node (3).
.SH AUTHORS
Sergey Poznyakoff
.SH "BUG REPORTS"
-Report bugs to <gray+grecs@gnu.org.ua>.
+Report bugs to <gray+argot@gnu.org.ua>.
.SH COLOPHON
The \fBGrecs\fR library is constantly changing, so this manual page
may be incorrect or out-of-date. For the latest copy of \fBGrecs\fR
-documentation, visit <http://www.gnu.org.ua/software/grecs>.
+documentation, visit <http://www.gnu.org.ua/software/argot>.
.SH COPYRIGHT
Copyright \(co 2011 Sergey Poznyakoff
.br
diff --git a/doc/grecs_format_node.3 b/doc/argot_format_node.3
index bf2b8db..3e0a9fb 100644
--- a/doc/grecs_format_node.3
+++ b/doc/argot_format_node.3
@@ -1,4 +1,4 @@
-.\" This file is part of grecs -*- nroff -*-
+.\" This file is part of argot -*- nroff -*-
.\" Copyright (C) 2007-2016 Sergey Poznyakoff
.\"
.\" Grecs is free software; you can redistribute it and/or modify
@@ -14,26 +14,26 @@
.\" You should have received a copy of the GNU General Public License
.\" along with Grecs. If not, see <http://www.gnu.org/licenses/>.
.\"
-.TH GRECS_FORMAT_NODE 3 "May 19, 2011" "GRECS" "Grecs User Reference"
+.TH ARGOT_FORMAT_NODE 3 "May 19, 2011" "ARGOT" "Grecs User Reference"
.SH NAME
-grecs_format_node \- format and print a single node from a syntax tree
+argot_format_node \- format and print a single node from a syntax tree
.SH SYNOPSIS
.nf
-.B #include <grecs.h>
+.B #include <argot.h>
.sp
-.BI "void grecs_format_node(struct grecs_node *" "node" ", int " \
+.BI "void argot_format_node(struct argot_node *" "node" ", int " \
"flags" ","
.ti +17
-.BI "struct grecs_format_closure " "*clos" );
+.BI "struct argot_format_closure " "*clos" );
.sp
-.BI "void grecs_print_node(struct grecs_node *" "node" ", int " \
+.BI "void argot_print_node(struct argot_node *" "node" ", int " \
"flags" ", FILE " "*fp" );
.SH DESCRIPTION
-\fBgrecs_format_node\fR formats the contents of a parse tree node
+\fBargot_format_node\fR formats the contents of a parse tree node
\fInode\fR, according to formatting options, given by \fIflags\fR. The
formatter closure \fIclos\fR is used for actual output.
.PP
-\fBgrecs_print_node\fR is an alternative entry point, which formats
+\fBargot_print_node\fR is an alternative entry point, which formats
the node to the given file.
.PP
The \fBflags\fR argument is a bitwise \fBOR\fR of one or more of the
@@ -43,49 +43,49 @@ following options:
This character will be used as pathname component separator, instead
of the default dot.
.TP
-.B GRECS_NODE_FLAG_LOCUS
+.B ARGOT_NODE_FLAG_LOCUS
Print the source location. The location is printed as the file name,
followed by a semicolon, followed by the line number and another
semicolon. Locations are separated from the rest of output by a single
space character.
.TP
-.B GRECS_NODE_FLAG_PATH
+.B ARGOT_NODE_FLAG_PATH
Print the \fInode path\fR. See
-.BR grecs_stmt_path (5),
+.BR argot_stmt_path (5),
for a description. If printed, the path is separated from the
remaining output on its right by a semicolon and a space.
.TP
-.B GRECS_NODE_FLAG_VALUE
+.B ARGOT_NODE_FLAG_VALUE
Print the node value.
.TP
-.B GRECS_NODE_FLAG_QUOTE
+.B ARGOT_NODE_FLAG_QUOTE
Always quote the value. By default, the value will be quoted only
when necessary, i.e. if it contains white space, quotes or special
characters. This option is useful only together with
-\fBGRECS_NODE_FLAG_VALUE\fR.
+\fBARGOT_NODE_FLAG_VALUE\fR.
.TP
-.B GRECS_NODE_FLAG_NOQUOTE
-Never quote values. If both \fBGRECS_NODE_FLAG_QUOTE\fR and
-\fBGRECS_NODE_FLAG_NOQUOTE\fR are given, the former takes precedence
+.B ARGOT_NODE_FLAG_NOQUOTE
+Never quote values. If both \fBARGOT_NODE_FLAG_QUOTE\fR and
+\fBARGOT_NODE_FLAG_NOQUOTE\fR are given, the former takes precedence
over the latter.
.TP
-.B GRECS_NODE_FLAG_QUOTE_HEX
+.B ARGOT_NODE_FLAG_QUOTE_HEX
Print non-printable characters as C hex escapets. This option is
-ignored if \fBGRECS_NODE_FLAG_NOQUOTE\fR is set.
+ignored if \fBARGOT_NODE_FLAG_NOQUOTE\fR is set.
.TP
-.B GRECS_NODE_FLAG_DEFAULT
+.B ARGOT_NODE_FLAG_DEFAULT
Same as
.sp
.nf
-GRECS_NODE_FLAG_PATH|GRECS_NODE_FLAG_VALUE|GRECS_NODE_FLAG_QUOTE
+ARGOT_NODE_FLAG_PATH|ARGOT_NODE_FLAG_VALUE|ARGOT_NODE_FLAG_QUOTE
.PP
-If \fBflag\fR is 0, \fBGRECS_NODE_FLAG_DEFAULT\fR is assumed.
+If \fBflag\fR is 0, \fBARGOT_NODE_FLAG_DEFAULT\fR is assumed.
.SH CLOSURE
The format closure is defined as:
.sp
.nf
.in +5
-struct grecs_format_closure
+struct argot_format_closure
{
int (*fmtfun)(const char *str, void *data);
void *data;
@@ -100,16 +100,16 @@ the string to be output as its first argument, and pointer to
.SH "RETURN VALUE"
None.
.SH "SEE ALSO"
-.BR grecs_config (5),
-.BR grecs_stmt_path (5).
+.BR argot_config (5),
+.BR argot_stmt_path (5).
.SH AUTHORS
Sergey Poznyakoff
.SH "BUG REPORTS"
-Report bugs to <gray+grecs@gnu.org.ua>.
+Report bugs to <gray+argot@gnu.org.ua>.
.SH COLOPHON
The \fBGrecs\fR library is constantly changing, so this manual page
may be incorrect or out-of-date. For the latest copy of \fBGrecs\fR
-documentation, visit <http://www.gnu.org.ua/software/grecs>.
+documentation, visit <http://www.gnu.org.ua/software/argot>.
.SH COPYRIGHT
Copyright \(co 2011 Sergey Poznyakoff
.br
diff --git a/doc/grecs_format_node_path.3 b/doc/argot_format_node_path.3
index 0d4fa85..e85e2bb 100644
--- a/doc/grecs_format_node_path.3
+++ b/doc/argot_format_node_path.3
@@ -1,4 +1,4 @@
-.\" This file is part of grecs -*- nroff -*-
+.\" This file is part of argot -*- nroff -*-
.\" Copyright (C) 2007-2016 Sergey Poznyakoff
.\"
.\" Grecs is free software; you can redistribute it and/or modify
@@ -14,55 +14,55 @@
.\" You should have received a copy of the GNU General Public License
.\" along with Grecs. If not, see <http://www.gnu.org/licenses/>.
.\"
-.TH GRECS_FORMAT_NODE_PATH 3 "May 19, 2011" "GRECS" "Grecs User Reference"
+.TH ARGOT_FORMAT_NODE_PATH 3 "May 19, 2011" "ARGOT" "Grecs User Reference"
.SH NAME
-grecs_format_node_path \- format and output statement pathname for the
+argot_format_node_path \- format and output statement pathname for the
node
.SH SYNOPSIS
.nf
-.B #include <grecs.h>
+.B #include <argot.h>
.sp
-.BI "void grecs_format_node_path(struct grecs_node " "*node" ", int " \
+.BI "void argot_format_node_path(struct argot_node " "*node" ", int " \
"flag" ", "
.ti +17
-.BI "struct grecs_format_closure " "*clos" );
+.BI "struct argot_format_closure " "*clos" );
.sp
-.BI "void grecs_print_node_path(struct grecs_node " "*node" ", int " \
+.BI "void argot_print_node_path(struct argot_node " "*node" ", int " \
"flag" ", FILE " "*fp" );
.SH DESCRIPTION
-\fBgrecs_format_node_path\fR computes the \fIstatement pathname\fR for
+\fBargot_format_node_path\fR computes the \fIstatement pathname\fR for
the \fInode\fR, and outputs it using the closure \fIclos\fR. See
section \fBCLOSURE\fR in
-.BR grecs_format_node (3),
-for a description of struct grecs_format_closure.
+.BR argot_format_node (3),
+for a description of struct argot_format_closure.
.PP
-\fBgrecs_print_node_path\fR is an alternative interface that outputs
+\fBargot_print_node_path\fR is an alternative interface that outputs
the formatted data to the file.
.PP
The \fIflags\fR argument describes what character to use as a pathname
component separator and how to format the statement tag, if \fInode\fR
refers to a block statement. See
-.BR grecs_format_node (3),
+.BR argot_format_node (3),
for a discussion of available flags.
.SH "RETURN VALUE"
None.
.SH NOTES
This are auxiliary functions used by
-.BR grecs_format_node (3)
+.BR argot_format_node (3)
and
-.BR grecs_print_node (3),
+.BR argot_print_node (3),
correspondingly. They are is seldom needed in user programs.
.SH "SEE ALSO"
-.BR grecs_format_node (3),
-.BR grecs_stmt_path (5).
+.BR argot_format_node (3),
+.BR argot_stmt_path (5).
.SH AUTHORS
Sergey Poznyakoff
.SH "BUG REPORTS"
-Report bugs to <gray+grecs@gnu.org.ua>.
+Report bugs to <gray+argot@gnu.org.ua>.
.SH COLOPHON
The \fBGrecs\fR library is constantly changing, so this manual page
may be incorrect or out-of-date. For the latest copy of \fBGrecs\fR
-documentation, visit <http://www.gnu.org.ua/software/grecs>.
+documentation, visit <http://www.gnu.org.ua/software/argot>.
.SH COPYRIGHT
Copyright \(co 2011 Sergey Poznyakoff
.br
diff --git a/doc/grecs_format_value.3 b/doc/argot_format_value.3
index bfd90a2..73a667c 100644
--- a/doc/grecs_format_value.3
+++ b/doc/argot_format_value.3
@@ -1,4 +1,4 @@
-.\" This file is part of grecs -*- nroff -*-
+.\" This file is part of argot -*- nroff -*-
.\" Copyright (C) 2007-2016 Sergey Poznyakoff
.\"
.\" Grecs is free software; you can redistribute it and/or modify
@@ -14,47 +14,47 @@
.\" You should have received a copy of the GNU General Public License
.\" along with Grecs. If not, see <http://www.gnu.org/licenses/>.
.\"
-.TH GRECS_FORMAT_VALUE 3 "May 19, 2011" "GRECS" "Grecs User Reference"
+.TH ARGOT_FORMAT_VALUE 3 "May 19, 2011" "ARGOT" "Grecs User Reference"
.SH NAME
-grecs_format_value \- format and output a configuration value
+argot_format_value \- format and output a configuration value
.SH SYNOPSIS
.nf
-.B #include <grecs.h>
+.B #include <argot.h>
.sp
-.BI "void grecs_format_value(struct grecs_value *" "val" ", int " \
+.BI "void argot_format_value(struct argot_value *" "val" ", int " \
"flags" ", "
.ti +17
-.BI "struct grecs_format_closure " "*clos" );
+.BI "struct argot_format_closure " "*clos" );
.sp
-.BI "void grecs_print_value(struct grecs_value *" "val" ", int " \
+.BI "void argot_print_value(struct argot_value *" "val" ", int " \
"flags" ", FILE " "*fp" );
.SH DESCRIPTION
-\fBgrecs_format_value\fR formats the value \fIval\fR and outputs it
+\fBargot_format_value\fR formats the value \fIval\fR and outputs it
using the formatting closure \fIclos\fR. The \fIflags\fR argument
describes how to format the value. See
-.BR grecs_format_node (3),
+.BR argot_format_node (3),
for a discussion of available flags.
.PP
-\fBgrecs_print_value\fR is an alternative interface that outputs the
+\fBargot_print_value\fR is an alternative interface that outputs the
formatted data to a file.
.SH "RETURN VALUE"
None.
.SH NOTES
This are auxiliary functions used by
-.BR grecs_format_node (3)
+.BR argot_format_node (3)
and
-.BR grecs_print_node (3),
+.BR argot_print_node (3),
correspondingly. They are is seldom needed in user programs.
.SH "SEE ALSO"
-.BR grecs_format_node (3).
+.BR argot_format_node (3).
.SH AUTHORS
Sergey Poznyakoff
.SH "BUG REPORTS"
-Report bugs to <gray+grecs@gnu.org.ua>.
+Report bugs to <gray+argot@gnu.org.ua>.
.SH COLOPHON
The \fBGrecs\fR library is constantly changing, so this manual page
may be incorrect or out-of-date. For the latest copy of \fBGrecs\fR
-documentation, visit <http://www.gnu.org.ua/software/grecs>.
+documentation, visit <http://www.gnu.org.ua/software/argot>.
.SH COPYRIGHT
Copyright \(co 2011 Sergey Poznyakoff
.br
diff --git a/doc/grecs_include_path_setup.3 b/doc/argot_include_path_setup.3
index 6e61ec9..49ce06f 100644
--- a/doc/grecs_include_path_setup.3
+++ b/doc/argot_include_path_setup.3
@@ -1,4 +1,4 @@
-.\" This file is part of grecs -*- nroff -*-
+.\" This file is part of argot -*- nroff -*-
.\" Copyright (C) 2007-2016 Sergey Poznyakoff
.\"
.\" Grecs is free software; you can redistribute it and/or modify
@@ -14,39 +14,39 @@
.\" You should have received a copy of the GNU General Public License
.\" along with Grecs. If not, see <http://www.gnu.org/licenses/>.
.\"
-.TH GRECS_INCLUDE_PATH_SETUP 3 "May 4, 2011" "GRECS" "Grecs User Reference"
+.TH ARGOT_INCLUDE_PATH_SETUP 3 "May 4, 2011" "ARGOT" "Grecs User Reference"
.SH NAME
-grecs_include_path_setup, grecs_include_path_setup_v \- add
-directories to the \fBgrecs\fR preprocessor include path
+argot_include_path_setup, argot_include_path_setup_v \- add
+directories to the \fBargot\fR preprocessor include path
.SH SYNOPSIS
.nf
-.B #include <grecs.h>
+.B #include <argot.h>
.sp
-.BI "void grecs_include_path_setup(const char *" "dir" ", ...);"
+.BI "void argot_include_path_setup(const char *" "dir" ", ...);"
.br
-.BI "void grecs_include_path_setup_v(char **" "dirs" );
+.BI "void argot_include_path_setup_v(char **" "dirs" );
.SH DESCRIPTION
These functions add directories to the end of the include search path
-used by the \fBgrecs\fR preprocessor.
+used by the \fBargot\fR preprocessor.
.PP
-\fBgrecs_include_path_setup\fR takes arbitrary number of
+\fBargot_include_path_setup\fR takes arbitrary number of
arguments. Each argument must be pointer to a directory name. The
argument list must terminate with a \fBNULL\fR argument.
.PP
-\fBgrecs_include_path_setup_v\fR takes directory names from a
+\fBargot_include_path_setup_v\fR takes directory names from a
\fBNULL\fR-terminated array of character pointers.
.SH "RETURN VALUE"
None.
.SH "SEE ALSO"
-.BR grecs_config (5).
+.BR argot_config (5).
.SH AUTHORS
Sergey Poznyakoff
.SH "BUG REPORTS"
-Report bugs to <gray+grecs@gnu.org.ua>.
+Report bugs to <gray+argot@gnu.org.ua>.
.SH COLOPHON
The \fBGrecs\fR library is constantly changing, so this manual page
may be incorrect or out-of-date. For the latest copy of \fBGrecs\fR
-documentation, visit <http://www.