Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
4ee5af1e
Commit
4ee5af1e
authored
Aug 22, 2014
by
V Valtman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes with awk and upper case
parent
03f98844
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
Makefile.in
Makefile.in
+3
-4
gen_constants_h.awk
gen_constants_h.awk
+1
-1
No files found.
Makefile.in
View file @
4ee5af1e
...
...
@@ -47,7 +47,7 @@ ${DIR_LIST}:
-include
${DEPENDENCE_LIST}
${TG_OBJECTS} ${TGL_OBJECTS}
:
auto
/constants.h
${TG_OBJECTS} ${TGL_OBJECTS}
:
${AUTO}
/constants.h
${TG_OBJECTS}
:
${OBJ}/%.o: %.c | create_dirs_and_headers
${
CC
}
${
INCLUDE
}
${
COMPILE_FLAGS
}
-c
-MP
-MD
-MF
${
DEP
}
/
$*
.d
-MQ
${
OBJ
}
/
$*
.o
-o
$@
$<
...
...
@@ -68,7 +68,6 @@ ${EXE}/generate: ${GENERATE_OBJECTS} ${COMMON_OBJECTS}
${
CC
}
${
GENERATE_OBJECTS
}
${
COMMON_OBJECTS
}
${
LINK_FLAGS
}
-o
$@
${AUTO}/scheme.tlo
:
${AUTO}/scheme.tl ${EXE}/tlc
${
EXE
}
/tlc
-e
$@
${
AUTO
}
/scheme.tl
${AUTO}/scheme.tl
:
${srcdir}/scheme.tl ${srcdir}/binlog.tl ${srcdir}/append.tl
...
...
@@ -83,8 +82,8 @@ ${AUTO}/auto.c: ${AUTO}/scheme.tlo ${EXE}/generate
${AUTO}/auto-header.h
:
${AUTO}/scheme.tlo ${EXE}/generate
${
EXE
}
/generate
-H
${
AUTO
}
/scheme.tlo
>
$@
${AUTO}/constants.h
:
${AUTO}/scheme2.tl
awk
-f
${
srcdir
}
/gen_constants_h.awk <
$
^
>
$@
${AUTO}/constants.h
:
${AUTO}/scheme2.tl
${srcdir}/gen_constants_h.awk
awk
-f
${
srcdir
}
/gen_constants_h.awk <
$
<
>
$@
clean
:
rm
-rf
${
DIR_LIST
}
config.log config.status
>
/dev/null
||
echo
"all clean"
...
...
gen_constants_h.awk
View file @
4ee5af1e
...
...
@@ -22,7 +22,7 @@ BEGIN {
}
//
{
if
(
split
(
$1
,
a
,
"#"
)
==
2
)
{
gsub
(
/
[
[:upper:
]
]/
,
"_&"
,
a
[
1
]);
gsub
(
/
[
ABCDEFGHIJKLMNOPQRSTUVWXYZ
]
/
,
"_&"
,
a
[
1
]);
gsub
(
/
[
.
]
/
,
"_"
,
a
[
1
]);
if
(
a
[
2
]
in
h
)
{
print
"ERROR: Duplicate magic "
a
[
2
]
" for define "
a
[
1
]
" and "
h
[
a
[
2
]]
>
"/dev/stderr/"
...
...
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