search for: isalnum

Displaying 20 results from an estimated 80 matches for "isalnum".

2007 Dec 15
2
[LLVMdev] fix warning with newer g++ compilers
...VarName: @[-a-zA-Z$._][-a-zA-Z$._0-9]* - if (isalpha(CurPtr[0]) || CurPtr[0] == '-' || CurPtr[0] == '$' || + if (isalpha(CurPtr[0]) || CurPtr[0] == '-' || CurPtr[0] == '$' || CurPtr[0] == '.' || CurPtr[0] == '_') { ++CurPtr; - while (isalnum(CurPtr[0]) || CurPtr[0] == '-' || CurPtr[0] == '$' || + while (isalnum(CurPtr[0]) || CurPtr[0] == '-' || CurPtr[0] == '$' || CurPtr[0] == '.' || CurPtr[0] == '_') ++CurPtr; llvmAsmlval.StrVal = new std::string(TokStart+1,...
2018 Dec 03
3
[supermin PATCH] build: ignore empty files
...] of [file], or exit with an error. *) and get_file_type file = @@ -331,6 +335,7 @@ and get_file_content file buf len = else if len >= 2 && buf.[0] = '/' then Hostfiles else if len >= 2 && buf.[0] = '-' then Excludefiles else if len >= 1 && isalnum buf.[0] then Packages + else if len = 0 then Empty else error "%s: unknown file type in supermin directory" file and get_compressed_file_content zcat file = -- 2.17.2
2012 May 23
0
[LLVMdev] Assembly macros instantiation problem
...============================================== --- lib/MC/MCParser/AsmParser.cpp (revision 157279) +++ lib/MC/MCParser/AsmParser.cpp (working copy) @@ -1436,6 +1436,11 @@ NewDiag.print(0, OS); } +/// LexIdentifier: [a-zA-Z_.][a-zA-Z0-9_$.@]* +static bool IsIdentifierChar(char c) { + return isalnum(c) || c == '_' || c == '$' || c == '.' || c == '@'; +} + bool AsmParser::expandMacro(SmallString<256> &Buf, StringRef Body, const std::vector<StringRef> &Parameters, const std::vector<s...
2010 Nov 15
1
Dashes in node names
...0.13.new1/src/protocol.c --- tinc-1.0.13/src/protocol.c 2010-03-13 18:53:33.000000000 +0100 +++ tinc-1.0.13.new1/src/protocol.c 2010-11-15 15:11:05.056142676 +0100 @@ -56,7 +56,7 @@ static avl_tree_t *past_request_tree; bool check_id(const char *id) { for(; *id; id++) - if(!isalnum(*id) && *id != '_') + if(!isalnum(*id) && *id != '_' && *id != '-') return false; return true; ----- end diff ----- mfg, dnjl
2020 Aug 27
2
Submission proxy warning connecting to Exim
...25235]: submission(alec)<25347><QNydV8+t+oMKAgAF>: Warning: smtp-client: conn localhost:25 ([::1]:25) [1]: Received invalid EHLO response line: Unexpected character in EHLO keyword Looks like it doesn't like the underscore in "X_PIPE_CONNECT", since it's neither "isalnum" nor a dash [1]: 1598480923.401085 220 myhostname ESMTP Exim 4.94 Wed, 26 Aug 2020 18:28:43 -0400 1598480923.401906 250-myhostname Hello localhost [::1] 1598480923.401906 250-SIZE 52428800 1598480923.401906 250-8BITMIME 1598480923.401906 250-PIPELINING 1598480923.401906 250-X_PIPE...
2014 Sep 27
2
[PATCH 1/2] Implement realpath()
...lib-y += vsnprintf.o snprintf.o vsprint send.o recv.o \ access.o chmod.o chown.o dup2.o mknod.o poll.o rename.o stat.o \ lchown.o link.o rmdir.o unlink.o utimes.o lstat.o mkdir.o \ - readlink.o select.o symlink.o pipe.o \ + readlink.o realpath.o select.o symlink.o pipe.o \ ctype/isalnum.o ctype/isalpha.o ctype/isascii.o \ ctype/isblank.o ctype/iscntrl.o ctype/isdigit.o \ ctype/isgraph.o ctype/islower.o ctype/isprint.o \ --- /dev/null +++ b/usr/klibc/realpath.c @@ -0,0 +1,147 @@ +#include <errno.h> +#include <limits.h> +#include <stdlib.h> +#include <sy...
2009 Aug 11
6
[LLVMdev] Build issues on Solaris
...ant, The error message was as follows: "/usr/xpg4/bin/nm: -e or -g set, -u ignored". Actually it was the -u that's redundant - the -g was necessary for GenLibDeps.pl: $ nm -p -u libLLVMCore.a libLLVMCore.a[AsmWriter.o]: __asert atof _GLOBAL_OFFSET_TABLE_ isalnum ... etc ... $ nm -p -g libLLVMCore.a libLLVMCore.a[AsmWriter.o]: 0000000000 U __assert 0000000000 U atof 0000000000 U _GLOBAL_OFFSET_TABLE_ 0000000000 U isalnum The latter being what GenLibDeps.pl expects to see. All else being equal though, it might be better to change GenLibDeps.pl to re...
2009 Aug 18
0
[LLVMdev] Build issues on Solaris
...ws: "/usr/xpg4/bin/nm: -e or -g set, -u ignored". > > Actually it was the -u that's redundant - the -g was necessary for > GenLibDeps.pl: > > $ nm -p -u libLLVMCore.a > libLLVMCore.a[AsmWriter.o]: >     __asert >     atof >     _GLOBAL_OFFSET_TABLE_ >     isalnum >     ... etc ... > > $ nm -p -g libLLVMCore.a > libLLVMCore.a[AsmWriter.o]: > 0000000000 U __assert > 0000000000 U atof > 0000000000 U _GLOBAL_OFFSET_TABLE_ > 0000000000 U isalnum > > The latter being what GenLibDeps.pl expects to see. All else being > equal though...
2009 Aug 10
2
daemon/ warnings
...daemon/guestfsd.c @@ -718,7 +718,7 @@ split_lines (char *str) */ static int print_shell_quote (FILE *stream, - const struct printf_info *info, + const struct printf_info *info ATTRIBUTE_UNUSED, const void *const *args) { #define SAFE(c) (isalnum((c)) || \ @@ -751,7 +751,7 @@ print_sysroot_shell_quote (FILE *stream, #ifdef HAVE_REGISTER_PRINTF_SPECIFIER static int -print_arginfo (const struct printf_info *info, +print_arginfo (const struct printf_info *info ATTRIBUTE_UNUSED, size_t n, int *argtypes, int *size) { i...
2017 Mar 21
4
Clang -O0 performs optimizations that undermine dynamic bug-finding tools
...** args) { return count[7]; } Note, that Clang printed a warning and then optimized the invalid access away (which is legit since it is UB). However, note that that cases exist where no warning is printed. For example, consider the following program: #include <ctype.h> int main() { isalnum(1000000); isalpha(1000000); iscntrl(1000000); isdigit(1000000); isgraph(1000000); islower(1000000); isprint(1000000); ispunct(1000000); isspace(1000000); isupper(1000000); isxdigit(1000000); } The glibc (on my system) implements the macros by calling __ctype...
2009 Oct 26
1
[LLVMdev] RegAllocSimple doesn't work
...TR)) { if (src[*i - 1] == ESCAPE) { escjunk = esc(src, i); junk = addstr(escjunk, dest, j, maxset); } else if (src[*i] != DASH) junk = addstr(src[*i], dest, j, maxset); else if (*j <= 1 || src[*i + 1] == ENDSTR) junk = addstr(DASH, dest, j, maxset); else if ((isalnum(src[*i - 1])) && (isalnum(src[*i + 1])) && (src[*i - 1] <= src[*i + 1])) { for (k = src[*i-1]+1; k<=src[*i+1]; k++) { junk = addstr(k, dest, j, maxset); } *i = *i + 1; } else junk = addstr(DASH, dest, j, maxset); (*i) = (*i) + 1;...
2018 Dec 03
0
Re: [supermin PATCH] build: ignore empty files
...an error. *) > and get_file_type file = > @@ -331,6 +335,7 @@ and get_file_content file buf len = > else if len >= 2 && buf.[0] = '/' then Hostfiles > else if len >= 2 && buf.[0] = '-' then Excludefiles > else if len >= 1 && isalnum buf.[0] then Packages > + else if len = 0 then Empty > else error "%s: unknown file type in supermin directory" file > > and get_compressed_file_content zcat file = > -- This is fine, ACK. Is there a situation where we have empty files in the supermin directory?...
2020 Sep 02
0
Submission proxy warning connecting to Exim
...sion(alec)<25347><QNydV8+t+oMKAgAF>: Warning: smtp-client: conn localhost:25 ([::1]:25) [1]: Received invalid EHLO response line: Unexpected character in EHLO keyword > > Looks like it doesn't like the underscore in "X_PIPE_CONNECT", since > it's neither "isalnum" nor a dash [1]: > > 1598480923.401085 220 myhostname ESMTP Exim 4.94 Wed, 26 Aug 2020 18:28:43 -0400 > 1598480923.401906 250-myhostname Hello localhost [::1] > 1598480923.401906 250-SIZE 52428800 > 1598480923.401906 250-8BITMIME > 1598480923.401906 250-PIPELIN...
2003 Nov 24
1
[PATCH] fix off-by-one correction in ctypes
...by-one correction that wasn't necessary. # -------------------------------------------- # diff -Nru a/klibc/include/ctype.h b/klibc/include/ctype.h --- a/klibc/include/ctype.h Mon Nov 24 15:37:03 2003 +++ b/klibc/include/ctype.h Mon Nov 24 15:37:03 2003 @@ -35,13 +35,13 @@ __ctype_inline int isalnum(int __c) { - return __ctypes[__c+1] & + return __ctypes[__c] & (__ctype_upper|__ctype_lower|__ctype_digit); } __ctype_inline int isalpha(int __c) { - return __ctypes[__c+1] & + return __ctypes[__c] & (__ctype_upper|__ctype_lower); } @@ -57,48 +57,48 @@ __ct...
2014 Sep 29
0
[PATCH v2 1/2] Implement realpath()
...lib-y += vsnprintf.o snprintf.o vsprint send.o recv.o \ access.o chmod.o chown.o dup2.o mknod.o poll.o rename.o stat.o \ lchown.o link.o rmdir.o unlink.o utimes.o lstat.o mkdir.o \ - readlink.o select.o symlink.o pipe.o \ + readlink.o realpath.o select.o symlink.o pipe.o \ ctype/isalnum.o ctype/isalpha.o ctype/isascii.o \ ctype/isblank.o ctype/iscntrl.o ctype/isdigit.o \ ctype/isgraph.o ctype/islower.o ctype/isprint.o \ --- /dev/null +++ b/usr/klibc/realpath.c @@ -0,0 +1,45 @@ +#include <fcntl.h> +#include <limits.h> +#include <stdlib.h> +#include <sys...
2004 Jan 24
1
get rid of various warnings, errors in io.h
...n function `abs' /home/mesa/boot/klibc/klibc/include/stdlib.h:31: warning: shadowing built-in function `labs' /home/mesa/boot/klibc/klibc/include/stdlib.h:35: warning: shadowing built-in function `llabs' /home/mesa/boot/klibc/klibc/include/ctype.h:37: warning: no previous prototype for `isalnum' /home/mesa/boot/klibc/klibc/include/ctype.h:43: warning: no previous prototype for `isalpha' /home/mesa/boot/klibc/klibc/include/ctype.h:49: warning: no previous prototype for `isascii' /home/mesa/boot/klibc/klibc/include/ctype.h:54: warning: no previous prototype for `isblank' /ho...
2016 Jan 06
0
[klibc:master] Implement realpath()
...ntf.o snprintf.o vsprintf.o sprintf.o \ send.o recv.o \ access.o chmod.o chown.o dup2.o mknod.o poll.o rename.o stat.o \ lchown.o link.o rmdir.o unlink.o utimes.o lstat.o mkdir.o \ - readlink.o select.o symlink.o pipe.o \ + readlink.o realpath.o select.o symlink.o pipe.o \ ctype/isalnum.o ctype/isalpha.o ctype/isascii.o \ ctype/isblank.o ctype/iscntrl.o ctype/isdigit.o \ ctype/isgraph.o ctype/islower.o ctype/isprint.o \ diff --git a/usr/klibc/realpath.c b/usr/klibc/realpath.c new file mode 100644 index 0000000..1474b1e --- /dev/null +++ b/usr/klibc/realpath.c @@ -0,0 +1,49...
2007 Oct 14
0
2 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_strings.c
...)) { - name = strdup ("EMPTY"); - } else if (!strcmp (cur, ",")) { - name = strdup ("COMMA"); - } else if (!strcmp (cur, "/")) { - name = strdup ("SLASH"); - } else { - s = name = strdup (cur); - while (*s) { - if (!isalnum (*s)) - *s = '_'; - s++; - } - } - printf ("#define SWFDEC_AS_STR_%s &swfdec_as_strings[%u]\n", name, - (unsigned int) (cur - swfdec_as_strings)); - free (name); - cur += strlen (cur) + 1; - } - printf ("\n"); - printf ("#endif /* _SWFDEC_...
2005 Dec 09
1
QueryParser and utf-8 strings
...ration in accentnormalisingitor.h and modified common/utils.h to contain: inline bool C_isalpha(char ch) { using namespace Xapian::Internal; return (static_cast<unsigned char>(ch)>=0x80) || (is_tab[static_cast<unsigned char>(ch)] & (IS_UPPER|IS_LOWER)); } inline bool C_isalnum(char ch) { using namespace Xapian::Internal; return (static_cast<unsigned char>(ch)>=0x80) || (is_tab[static_cast<unsigned char>(ch)] & (IS_UPPER|IS_LOWER|IS_DIGIT)); } since most of the characters above 0x80 are meant as letters, only with very few exceptions (non brea...
2019 Jan 18
0
[klibc:master] rename, renameat: Use renameat2() system call
...send.o recv.o \ - access.o chmod.o chown.o dup2.o mknod.o poll.o rename.o stat.o \ + access.o chmod.o chown.o dup2.o mknod.o poll.o rename.o renameat.o \ + stat.o \ lchown.o link.o rmdir.o unlink.o utimes.o lstat.o mkdir.o \ readlink.o realpath.o select.o symlink.o pipe.o \ ctype/isalnum.o ctype/isalpha.o ctype/isascii.o \ diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def index c56e8f9..64d7b0c 100644 --- a/usr/klibc/SYSCALLS.def +++ b/usr/klibc/SYSCALLS.def @@ -116,6 +116,7 @@ int chdir(const char *); int fchdir(int); <?> int rename(const char *, const char *);...