Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
face5d98
Commit
face5d98
authored
May 27, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parsing improved
parent
f6ca41bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
5 deletions
+49
-5
wb/lib/wb/src/wb_foe_dataarithm.c
wb/lib/wb/src/wb_foe_dataarithm.c
+49
-5
No files found.
wb/lib/wb/src/wb_foe_dataarithm.c
View file @
face5d98
...
...
@@ -1334,6 +1334,50 @@ static int dataa_isascii( char c)
return
0
;
}
/*************************************************************************
*
* Name: dataa_isfrontA
*
* Type int
*
* char c I a character
*
* Description:
* Returns 1 if c2 is a ascii-character, digit, or c1c2 is '->', else return 0.
*
**************************************************************************/
static
int
dataa_isfrontA
(
char
c1
,
char
c2
)
{
if
(
dataa_isascii
(
c2
))
return
1
;
if
(
c1
==
'-'
&&
c2
==
'>'
)
return
1
;
return
0
;
}
/*************************************************************************
*
* Name: dataa_isbackA
*
* Type int
*
* char c I a character
*
* Description:
* Returns 1 if c is a ascii-character, digit, '[' or '(', else return 0.
*
**************************************************************************/
static
int
dataa_isbackA
(
char
c
)
{
if
(
dataa_isascii
(
c
))
return
1
;
if
(
c
==
'['
)
return
1
;
if
(
c
==
'('
)
return
1
;
return
0
;
}
/*************************************************************************
*
...
...
@@ -1602,7 +1646,7 @@ pwr_tStatus dataarithm_convert (
delim_p
=
&
item_ptr
->
delim_front
[
0
];
while
(
*
delim_p
!=
0
)
{
if
(
(
*
delim_p
==
'A'
&&
!
dataa_is
ascii
(
*
t
))
||
if
(
(
*
delim_p
==
'A'
&&
!
dataa_is
frontA
(
t
==
line
?
'\0'
:
*
(
t
-
1
),
*
t
))
||
(
*
delim_p
==
'X'
)
||
(
*
delim_p
==
*
t
&&
*
delim_p
!=
'A'
))
{
...
...
@@ -1631,7 +1675,7 @@ pwr_tStatus dataarithm_convert (
delim_p
=
&
item_ptr
->
delim_front
[
0
];
while
(
*
delim_p
!=
0
)
{
if
((
*
delim_p
==
'A'
&&
!
dataa_is
ascii
(
*
t
))
||
if
((
*
delim_p
==
'A'
&&
!
dataa_is
frontA
(
t
==
line
?
'\0'
:
*
(
t
-
1
),
*
t
))
||
(
*
delim_p
==
'X'
))
delim_hit
=
1
;
else
if
(
*
delim_p
==
*
t
)
...
...
@@ -1651,7 +1695,7 @@ pwr_tStatus dataarithm_convert (
delim_p
=
&
item_ptr
->
delim_back
[
0
];
while
(
*
delim_p
!=
0
)
{
if
((
*
delim_p
==
'A'
&&
!
dataa_is
ascii
(
*
t
))
||
if
((
*
delim_p
==
'A'
&&
!
dataa_is
backA
(
*
t
))
||
(
*
delim_p
==
'X'
))
{
hit
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment