X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/459c5e3d66287e314dff8543df32c6c14a8464c6..394a751fd883d2bbfc769fed7e254e008a2ef45e:/sbr/context_find.c diff --git a/sbr/context_find.c b/sbr/context_find.c index c6ae2d8c..48ab8d0a 100644 --- a/sbr/context_find.c +++ b/sbr/context_find.c @@ -5,7 +5,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" +#include "concat.h" +#include "context_find.h" char * @@ -16,7 +18,7 @@ context_find (const char *str) str = FENDNULL(str); for (np = m_defs; np; np = np->n_next) if (!strcasecmp(FENDNULL(np->n_name), str)) - return (np->n_field); + return np->n_field; return NULL; } @@ -30,7 +32,8 @@ context_find (const char *str) */ char * context_find_by_type (const char *string, const char *type, - const char *subtype) { + const char *subtype) +{ char *value = NULL; if (subtype) { @@ -58,7 +61,8 @@ context_find_by_type (const char *string, const char *type, * The search is case insensitive. */ int -context_find_prefix (const char *prefix) { +context_find_prefix (const char *prefix) +{ struct node *np; size_t len;