version 1.29, 2014/12/01 08:05:52 |
version 1.31, 2015/04/02 22:48:17 |
|
|
#include <limits.h> |
#include <limits.h> |
#include <string.h> |
#include <string.h> |
|
|
|
#include "roff.h" |
#include "man.h" |
#include "man.h" |
#include "libman.h" |
#include "libman.h" |
|
|
Line 76 man_hash_init(void) |
|
Line 77 man_hash_init(void) |
|
} |
} |
} |
} |
|
|
enum mant |
int |
man_hash_find(const char *tmp) |
man_hash_find(const char *tmp) |
{ |
{ |
int x, y, i; |
int x, y, i; |
enum mant tok; |
int tok; |
|
|
if ('\0' == (x = tmp[0])) |
if ('\0' == (x = tmp[0])) |
return(MAN_MAX); |
return(MAN_MAX); |
Line 93 man_hash_find(const char *tmp) |
|
Line 94 man_hash_find(const char *tmp) |
|
if (UCHAR_MAX == (y = table[x + i])) |
if (UCHAR_MAX == (y = table[x + i])) |
return(MAN_MAX); |
return(MAN_MAX); |
|
|
tok = (enum mant)y; |
tok = y; |
if (0 == strcmp(tmp, man_macronames[tok])) |
if (0 == strcmp(tmp, man_macronames[tok])) |
return(tok); |
return(tok); |
} |
} |