test for intset integer encodability test and some small refactoring

This commit is contained in:
antirez
2010-08-26 18:47:03 +02:00
parent 23c64fe50d
commit ec7e138926
3 changed files with 33 additions and 11 deletions

View File

@ -769,6 +769,8 @@ int stringmatch(const char *pattern, const char *string, int nocase);
long long memtoll(const char *p, int *err);
int ll2string(char *s, size_t len, long long value);
int isStringRepresentableAsLong(sds s, long *longval);
int isStringRepresentableAsLongLong(sds s, long long *longval);
int isObjectRepresentableAsLongLong(robj *o, long long *llongval);
/* Configuration */
void loadServerConfig(char *filename);