gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/split-parser.h
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年06月27日 17:45:49 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年06月27日 17:45:49 +0200
commit1b2fab01c5b721e793a27dd5f5e67eab65a4fd78 (patch)
tree475b9aaa3cd1693c0a83bf965e039c214274ab6b /agg-plot/split-parser.h
parentf31d5249020fd59ae6f997c870efa9baac05ca05 (diff)
downloadgsl-shell-1b2fab01c5b721e793a27dd5f5e67eab65a4fd78.tar.gz
Removes all Tab characters into agg-plot to use only spaces
Diffstat (limited to 'agg-plot/split-parser.h')
-rw-r--r--agg-plot/split-parser.h 44
1 files changed, 22 insertions, 22 deletions
diff --git a/agg-plot/split-parser.h b/agg-plot/split-parser.h
index dcf7dc20..bbc9044d 100644
--- a/agg-plot/split-parser.h
+++ b/agg-plot/split-parser.h
@@ -23,24 +23,24 @@ public:
{
char c = *m_ptr;
if (c != '0円')
- m_ptr++;
+ m_ptr++;
return c;
};
void push()
{
if (m_ptr > m_content)
- m_ptr--;
+ m_ptr--;
};
bool checknext(char reqchar)
{
char c = *m_ptr;
if (c == reqchar)
- {
- m_ptr++;
- return true;
- }
+ {
+ m_ptr++;
+ return true;
+ }
return false;
};
};
@@ -54,10 +54,10 @@ public:
for (int c = 0; ; c++)
{
- node_type* child = parse(lex);
- if (! child)
- break;
- t->add(child);
+ node_type* child = parse(lex);
+ if (! child)
+ break;
+ t->add(child);
}
return t;
@@ -71,23 +71,23 @@ public:
switch (t)
{
case '.':
- return new tree::leaf<base_type, direction_e>();
+ return new tree::leaf<base_type, direction_e>();
case 'h':
- return exprlist(lex, along_x);
+ return exprlist(lex, along_x);
case 'v':
- return exprlist(lex, along_y);
+ return exprlist(lex, along_y);
case '(':
- {
- node_type *nd = parse(lex);
- if (! lex.checknext(')'))
- return 0;
- return nd;
- }
+ {
+ node_type *nd = parse(lex);
+ if (! lex.checknext(')'))
+ return 0;
+ return nd;
+ }
case ')':
- lex.push();
- return 0;
+ lex.push();
+ return 0;
default:
- return 0;
+ return 0;
}
return 0;
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月14日 14:54:17 +0000

AltStyle によって変換されたページ (->オリジナル) /