Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
dac4e993
Commit
dac4e993
authored
25 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Minor portability fix for WIDE_ISSPACE().
Rev: src/port.h:1.26
parent
bbee34e4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/port.h
+11
-3
11 additions, 3 deletions
src/port.h
with
11 additions
and
3 deletions
src/port.h
+
11
−
3
View file @
dac4e993
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
\*/
\*/
/*
/*
* $Id: port.h,v 1.2
5
2000/04/01
07:27:02 h
ubb
e
Exp $
* $Id: port.h,v 1.2
6
2000/04/01
11:50:58 gr
ubb
a
Exp $
*/
*/
#ifndef PORT_H
#ifndef PORT_H
#define PORT_H
#define PORT_H
...
@@ -16,14 +16,22 @@
...
@@ -16,14 +16,22 @@
#define STRUCT_TIMEVAL_DECLARED
#define STRUCT_TIMEVAL_DECLARED
struct
timeval
;
struct
timeval
;
#endif
#endif
#ifdef HAVE_ISSPACE
#ifdef HAVE_ISSPACE
#define ISSPACE(X) isspace(X)
#define ISSPACE(X) isspace(X)
#else
#else
#define ISSPACE(X) ("0012345678SSSSS456789012345678901S3456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789000000"[(X)+1] == 'S')
#define ISSPACE(X) ("0012345678SSSSS456789012345678901" \
"S3456789012345678901234567890123" \
"45678901234567890123456789012345" \
"67890123456789012345678901234567" \
"89012345678901234567890123456789" \
"01234567890123456789012345678901" \
"23456789012345678901234567890123" \
"45678901234567890123456789000000"[(X)+1] == 'S')
#endif
#endif
/* Warning, these run 'C' more than once */
/* Warning, these run 'C' more than once */
#define WIDE_ISSPACE(C) (((C) < 256)?
isspace
(C):0)
#define WIDE_ISSPACE(C) (((C) < 256)?
ISSPACE
(C):0)
#define WIDE_ISIDCHAR(C) (((C) < 256)?isidchar(C):1)
#define WIDE_ISIDCHAR(C) (((C) < 256)?isidchar(C):1)
#define WIDE_ISALNUM(C) (((C) < 256)?isalnum(C):0)
#define WIDE_ISALNUM(C) (((C) < 256)?isalnum(C):0)
#define WIDE_ISDIGIT(C) (((C) < 256)?isdigit(C):0)
#define WIDE_ISDIGIT(C) (((C) < 256)?isdigit(C):0)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment