Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0f528bee
Commit
0f528bee
authored
May 03, 2002
by
arjen@fred.bitbike.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge arjen@work.mysql.com:/home/bk/mysql-4.0
into fred.bitbike.com:/home/arjen/mysql-4.0
parents
7b101d5f
b79e410f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
229 additions
and
212 deletions
+229
-212
Docs/Support/update-reserved-words.pl
Docs/Support/update-reserved-words.pl
+13
-9
Docs/manual.texi
Docs/manual.texi
+216
-203
No files found.
Docs/Support/update-reserved-words.pl
View file @
0f528bee
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
# 2001-11-20 Fixups by arjen@mysql.com, 2 keywords and 15 synonyms were missing
# 2001-11-20 Fixups by arjen@mysql.com, 2 keywords and 15 synonyms were missing
# 2001-12-07 Fixup by arjen@mysql.com, add column headings for multitable.
# 2001-12-07 Fixup by arjen@mysql.com, add column headings for multitable.
# 2002-05-01 Fixup by arjen@mysql.com, use 3 columns instead of 4.
# 2002-05-01 Fixup by arjen@mysql.com, use 3 columns instead of 4.
# 2002-05-03 Fixup by arjen@mysql.com, fill last row to full # of columns.
print
STDERR
"
Scanning lex.h for symbols..
\n
";
print
STDERR
"
Scanning lex.h for symbols..
\n
";
open
LEX
,
"
<../sql/lex.h
";
open
LEX
,
"
<../sql/lex.h
";
...
@@ -28,11 +29,6 @@ while(($line = <YACC>) =~ /[\s|]+([A-Z_]+)/) {
...
@@ -28,11 +29,6 @@ while(($line = <YACC>) =~ /[\s|]+([A-Z_]+)/) {
close
YACC
;
close
YACC
;
$list
=
sprintf
("
\
@c
Reserved word list updated %s by %s.
\n
"
.
"
\
@c
To regenerate, use Support/update-reserved-words.pl.
\n\n
",
&
pretty_date
,
$ENV
{
USER
});
print
STDERR
"
Copying reserved words to an array...
\n
";
print
STDERR
"
Copying reserved words to an array...
\n
";
foreach
(
keys
%
words
)
{
push
@words
,
$words
{
$_
};
};
foreach
(
keys
%
words
)
{
push
@words
,
$words
{
$_
};
};
...
@@ -42,11 +38,15 @@ print STDERR "Sorting array...\n";
...
@@ -42,11 +38,15 @@ print STDERR "Sorting array...\n";
printf
STDERR
"
There are %i reserved words.
\n
",
scalar
@words
;
printf
STDERR
"
There are %i reserved words.
\n
",
scalar
@words
;
@pre
=
("
\
@item
",
"
\
@tab
",
"
\
@tab
");
@pre
=
("
\
@item
",
"
\
@tab
",
"
\
@tab
");
@post
=
("
\n
",
"
\n
",
"
\n
");
$list
=
"";
for
(
$i
=
0
;
$word
=
shift
(
@words
);
$i
++
)
{
for
(
$i
=
0
;
$word
=
shift
(
@words
);
$i
++
)
{
$list
.=
sprintf
"
%s %-30s %s
",
$pre
[
$i
%
3
],
"
\
@code
\
{
$word
\
}
",
$post
[
$i
%
3
];
$list
.=
sprintf
"
%s %s
\n
",
$pre
[
$i
%
3
],
"
\
@code
\
{
$word
\
}
";
};
$list
.=
"
\n
";
}
# Fill last row to full # of columns.
for
(
;
$i
%
3
;
$i
++
)
{
$list
.=
sprintf
"
%s
\n
",
$pre
[
$i
%
3
];
}
open
OLD
,
"
<manual.texi
";
open
OLD
,
"
<manual.texi
";
open
NEW
,
"
>manual-tmp.texi
";
open
NEW
,
"
>manual-tmp.texi
";
...
@@ -54,10 +54,14 @@ open NEW, ">manual-tmp.texi";
...
@@ -54,10 +54,14 @@ open NEW, ">manual-tmp.texi";
print
STDERR
"
Copying beginning of manual.texi...
\n
";
print
STDERR
"
Copying beginning of manual.texi...
\n
";
while
((
$line
=
<
OLD
>
)
!~
/START_OF_RESERVED_WORDS/
)
{
print
NEW
$line
;
};
while
((
$line
=
<
OLD
>
)
!~
/START_OF_RESERVED_WORDS/
)
{
print
NEW
$line
;
};
print
NEW
"
\
@c
START_OF_RESERVED_WORDS
\n\n
";
print
NEW
"
\
@c
START_OF_RESERVED_WORDS
\n\n
";
printf
NEW
"
\
@c
Reserved word list updated %s by %s.
\n
"
.
"
\
@c
To regenerate, use Support/update-reserved-words.pl.
\n\n
",
&
pretty_date
,
$ENV
{
USER
};
print
STDERR
"
Inserting list of reserved words...
\n
";
print
STDERR
"
Inserting list of reserved words...
\n
";
# Ensure the fractions add up to 100% otherwise it looks funny in print:
# Ensure the fractions add up to 100% otherwise it looks funny in print:
print
NEW
"
\
@multitable
\
@columnfractions
.33 .33 .34
\n
";
print
NEW
"
\
@multitable
\
@columnfractions
.33 .33 .34
\n
";
print
NEW
"
\
@item
\
@strong
{Word}
\
@tab
\
@strong
{Word}
\
@tab
\
@strong
{Word}
\n
";
print
NEW
"
\
@item
\
@strong
{Word}
\n
\
@tab
\
@strong
{Word}
\n
\
@tab
\
@strong
{Word}
\n
";
print
NEW
$list
;
print
NEW
$list
;
print
NEW
"
\
@end
multitable
\n
";
print
NEW
"
\
@end
multitable
\n
";
print
STDERR
"
Skipping over old list...
\n
";
print
STDERR
"
Skipping over old list...
\n
";
...
...
Docs/manual.texi
View file @
0f528bee
This diff is collapsed.
Click to expand it.
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