Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
Rituals
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
William Bundy
Rituals
Commits
3e2bb26b
Commit
3e2bb26b
authored
Sep 30, 2016
by
William Bundy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rituals build 98
parent
61aa6615
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
7 deletions
+8
-7
autogit.sh
autogit.sh
+1
-1
rev.txt
rev.txt
+2
-2
src/metaprogram/metaprogram_main.cpp
src/metaprogram/metaprogram_main.cpp
+2
-2
src/metaprogram/metaprogram_parser.cpp
src/metaprogram/metaprogram_parser.cpp
+2
-1
tags
tags
+1
-1
No files found.
autogit.sh
View file @
3e2bb26b
git add
--all
git commit
-m
"rituals build 9
7
"
git commit
-m
"rituals build 9
8
"
git push
git push github
rev.txt
View file @
3e2bb26b
9
6
14752700
16.909398
9
7
14752700
22.188685
src/metaprogram/metaprogram_main.cpp
View file @
3e2bb26b
...
...
@@ -294,7 +294,7 @@ int main(int argc, char** argv)
printf
(
"typedef struct %s %s;
\n
"
,
s_head
->
name
,
s_head
->
name
);
}
while
(
s_head
=
s_head
->
next
);
Struct_Def
**
all_structs
=
arena_push_array
(
Work_Arena
,
Struct_Def
,
lex
.
structs_count
+
16
);
s_head
=
structdef
;
printf
(
"enum Meta_Type
\n
{
\n
"
);
...
...
@@ -302,7 +302,7 @@ int main(int argc, char** argv)
do
{
if
(
s_head
->
name
==
NULL
)
continue
;
start_temp_arena
(
Temp_Arena
);
print_struct_names
(
s_head
,
-
1
,
"Meta_Type"
,
strlen
(
"Meta_Type"
),
&
meta_index_counter
,
Temp_Arena
);
print_struct_names
(
s_head
,
-
1
,
"Meta_Type"
,
strlen
(
"Meta_Type"
),
all_structs
,
&
meta_index_counter
,
Temp_Arena
);
end_temp_arena
(
Temp_Arena
);
}
while
(
s_head
=
s_head
->
next
);
printf
(
"};
\n
"
);
...
...
src/metaprogram/metaprogram_parser.cpp
View file @
3e2bb26b
...
...
@@ -793,9 +793,10 @@ void print_indent(int32 indent)
}
}
void
print_struct_names
(
Struct_Def
*
def
,
isize
index
,
char
*
prefix
,
isize
prefix_len
,
isize
*
counter
,
Memory_Arena
*
arena
)
void
print_struct_names
(
Struct_Def
*
def
,
isize
index
,
char
*
prefix
,
isize
prefix_len
,
Struct_Def
**
all_structs
,
isize
*
counter
,
Memory_Arena
*
arena
)
{
isize
chars
=
0
;
all_structs
[
*
counter
]
=
def
;
def
->
meta_index
=
*
counter
++
;
if
(
index
==
-
1
)
{
chars
=
printf
(
"
\t
%.*s_%s,
\n
"
,
prefix_len
,
prefix
,
def
->
name
);
...
...
tags
View file @
3e2bb26b
...
...
@@ -2471,7 +2471,7 @@ prev_time src/rituals_win32.cpp /^usize current_time = 0, prev_time = 0;$/;" v
print_indent src/metaprogram/metaprogram_parser.cpp /^void print_indent(int32 indent)$/;" f
print_reflection_data src/metaprogram/metaprogram_parser.cpp /^void print_reflection_data(Struct_Def* def)$/;" f
print_struct src/metaprogram/metaprogram_parser.cpp /^void print_struct(Struct_Def* def, bool as_member_struct = false, int32 indent = 0)$/;" f
print_struct_names src/metaprogram/metaprogram_parser.cpp /^void print_struct_names(Struct_Def* def, isize index, char* prefix, isize prefix_len, isize* counter, Memory_Arena* arena)$/;" f
print_struct_names src/metaprogram/metaprogram_parser.cpp /^void print_struct_names(Struct_Def* def, isize index, char* prefix, isize prefix_len,
Struct_Def** all_structs,
isize* counter, Memory_Arena* arena)$/;" f
print_token src/metaprogram/metaprogram_parser.cpp /^void print_token(Token* t, Token* start)$/;" f
procedures_count src/metaprogram/metaprogram_parser.cpp /^ isize procedures_count;$/;" m struct:Lexer file:
progressive src/thirdparty/stb_image.h /^ int progressive;$/;" m struct:__anon6
...
...
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