printf "" > dot_doc_file;
}
-/^[ \t]*SCM__I/ { copy = $0;
- gsub(/[ \t]*SCM__I/, "", copy);
- gsub(/SCM__D.*$/, "", copy);
+/^[ \t]*SCM_SNARF_INIT_START/ { copy = $0;
+ gsub(/[ \t]*SCM_SNARF_INIT_START/, "", copy);
+ gsub(/SCM_SNARF_DOC_START.*$/, "", copy);
print copy; }
-/SCM__D/,/SCM__S/ { copy = $0;
- if (match(copy,/SCM__DR/)) { registering = 1; }
+/SCM_SNARF_DOC_START/,/SCM_SNARF_DOCSTRING_START/ { copy = $0;
+ if (match(copy,/SCM_SNARF_DOC_STARTR/)) { registering = 1; }
else {registering = 0; }
- gsub(/.*SCM__D./,"", copy);
- gsub(/SCM__S.*/,"",copy);
+ gsub(/.*SCM_SNARF_DOC_START./,"", copy);
+ gsub(/SCM_SNARF_DOCSTRING_START.*/,"",copy);
gsub(/[ \t]+/," ", copy);
sub(/^[ \t]*/,"(", copy);
gsub(/\"/,"",copy);
{ print location ":*** `" copy "' is improperly registered as having " numactuals " arguments" > std_err; }
print "\f\n" copy (registering?")":"") > dot_doc_file ; }
-/SCM__S/,/SCM__E.*$/ { copy = $0;
- gsub(/.*SCM__S/,"",copy);
+/SCM_SNARF_DOCSTRING_START/,/SCM_SNARF_DOCSTRING_END.*$/ { copy = $0;
+ gsub(/.*SCM_SNARF_DOCSTRING_START/,"",copy);
sub(/^[ \t]*"?/,"", copy);
- sub(/\"?[ \t]*SCM__E.*$/,"", copy);
+ sub(/\"?[ \t]*SCM_SNARF_DOCSTRING_END.*$/,"", copy);
gsub(/\\n\\n"?/,"\n",copy);
gsub(/\\n"?[ \t]*$/,"",copy);
gsub(/\\\"[ \t]*$/,"\"",copy);
if (copy != "") { print copy > dot_doc_file }
}
-/SCM__E[ \t]/ { print "\ 1[" location "]" >> dot_doc_file; }
+/SCM_SNARF_DOCSTRING_END[ \t]/ { print "\ 1[" location "]" >> dot_doc_file; }
/\*&\*&\*&\*SCM_ARG_BETTER_BE_IN_POSITION/ { copy = $0;
sub(/.*\*&\*&\*&\*SCM_ARG_BETTER_BE_IN_POSITION\([ \t]*/,"",copy);
* SCM_SNARF_INIT (NAME = foo ())
*
* The SCM_SNARF_INIT text goes into the corresponding .x file
- * up through the first occurrence of SCM__D on that line, if any.
+ * up through the first occurrence of SCM_SNARF_DOC_START on that
+ * line, if any.
*/
#ifndef SCM_MAGIC_SNARFER
# define SCM_SNARF_DOCS(X)
#else
# define SCM_SNARF_HERE(X)
-# define SCM_SNARF_INIT(X) SCM__I X
+# define SCM_SNARF_INIT(X) SCM_SNARF_INIT_START X
# define SCM_SNARF_DOCS(X) X
#endif
(SCM_FUNC_CAST_ARBITRARY_ARGS) FNAME); \
)\
SCM_SNARF_DOCS(\
-SCM__DP PRIMNAME #ARGLIST | REQ | OPT | VAR | __FILE__:__LINE__ | SCM__S DOCSTRING SCM__E \
+SCM_SNARF_DOC_STARTP PRIMNAME #ARGLIST | REQ | OPT | VAR | __FILE__:__LINE__ | \
+ SCM_SNARF_DOCSTRING_START DOCSTRING SCM_SNARF_DOCSTRING_END \
)
#define SCM_DEFINE1(FNAME, PRIMNAME, TYPE, ARGLIST, DOCSTRING) \
)\
SCM_SNARF_INIT(scm_make_subr (s_ ## FNAME, TYPE, FNAME); ) \
SCM_SNARF_DOCS(\
-SCM__D1 PRIMNAME #ARGLIST | 2 | 0 | 0 | __FILE__:__LINE__ | SCM__S DOCSTRING SCM__E \
+SCM_SNARF_DOC_START1 PRIMNAME #ARGLIST | 2 | 0 | 0 | __FILE__:__LINE__ | \
+ SCM_SNARF_DOCSTRING_START DOCSTRING SCM_SNARF_DOCSTRING_END \
)
#define SCM_PROC(RANAME, STR, REQ, OPT, VAR, CFN) \
SCM_SNARF_INIT(scm_make_gsubr (RANAME, REQ, OPT, VAR, \
(SCM_FUNC_CAST_ARBITRARY_ARGS) CFN);) \
SCM_SNARF_DOCS(\
-SCM__DR STR | REQ | OPT | VAR | __FILE__:__LINE__ | SCM__S CFN SCM__E \
+SCM_SNARF_DOC_STARTR STR | REQ | OPT | VAR | __FILE__:__LINE__ | \
+ SCM_SNARF_DOCSTRING_START CFN SCM_SNARF_DOCSTRING_END \
)
#define SCM_GPROC(RANAME, STR, REQ, OPT, VAR, CFN, GF) \