My favorites | Sign in
Project Home Downloads Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
This is an example file. Anyone can use it as a base for
additional parser output formats.
*/

#define DUMP(X) \
printf(#X":\n");\
for(int q = 0; q < X.GetCount(); q++) \
printf(" [%i] = %s\n", q, ~X[q]);

void Parser::Process(){
DUMP(flags);
DUMP(nests);
DUMP(dflags);
printf("packages:\n");
for(int i = 0; i < pkgs.GetCount(); i++){
printf(" %s\n", ~pkgs[i].name);
for(int j = 0; j < pkgs[i].flags.GetCount(); j++){
printf("%s%s", j ?", ":" ", ~pkgs[i].flags[j]);
}
printf("\n");
for(int j = 0; j < pkgs[i].custom.GetCount(); j++){
printf(" %s%s\n", ~pkgs[i].custom[j].when, ~pkgs[i].custom[j].item);
}
printf("\n");
}
}

Change log

r4598 by dolik on Feb 15, 2012   Diff
.lpbuild2, .UppBuilder: various fixes
Go to: 
Project members, sign in to write a code review

Older revisions

r4581 by dolik on Feb 13, 2012   Diff
.lpbuild2: packaging improvements (RM
#244)
r4562 by dolik on Feb 8, 2012   Diff
+UppBuilder: upp file parser and
makefile generator
All revisions of this file

File info

Size: 664 bytes, 27 lines

File properties

svn:eol-style
native
Powered by Google Project Hosting