Deleted Added
full compact
test_08.c (277353) test_08.c (287111)
1/*
2 * Copyright (c) 2015, Juniper Networks, Inc.
3 * All rights reserved.
4 * This SOFTWARE is licensed under the LICENSE provided in the
5 * ../Copyright file. By downloading, installing, copying, or otherwise
6 * using the SOFTWARE, you agree to be bound by the terms of that
7 * LICENSE.
8 * Phil Shafer, July 2015

--- 71 unchanged lines hidden (view full) ---

80 }
81
82 xo_close_list("item");
83 xo_close_container("contents");
84 xo_close_container("data");
85
86 xo_emit("\n\n");
87
1/*
2 * Copyright (c) 2015, Juniper Networks, Inc.
3 * All rights reserved.
4 * This SOFTWARE is licensed under the LICENSE provided in the
5 * ../Copyright file. By downloading, installing, copying, or otherwise
6 * using the SOFTWARE, you agree to be bound by the terms of that
7 * LICENSE.
8 * Phil Shafer, July 2015

--- 71 unchanged lines hidden (view full) ---

80 }
81
82 xo_close_list("item");
83 xo_close_container("contents");
84 xo_close_container("data");
85
86 xo_emit("\n\n");
87
88 xo_open_container("data");
88 xo_open_container("data2");
89 xo_open_container("contents");
90
91 xo_emit("{T:Item/%-10s}{T:Count/%12s}\n");
92
93 for (ip = list; ip->i_title; ip++) {
94 xo_open_instance("item");
95
96 xo_emit("{k:name/%-10s/%s}{n:count/%12u/%u}\n",
97 ip->i_title, ip->i_count);
98 }
99
89 xo_open_container("contents");
90
91 xo_emit("{T:Item/%-10s}{T:Count/%12s}\n");
92
93 for (ip = list; ip->i_title; ip++) {
94 xo_open_instance("item");
95
96 xo_emit("{k:name/%-10s/%s}{n:count/%12u/%u}\n",
97 ip->i_title, ip->i_count);
98 }
99
100 xo_close_container("data");
100 xo_close_container("data2");
101
102 xo_emit("\n\n");
103
101
102 xo_emit("\n\n");
103
104 xo_open_container("data");
104 xo_open_container("data3");
105 xo_open_marker("m1");
106 xo_open_container("contents");
107
108 xo_emit("{T:Item/%-10s}{T:Count/%12s}\n");
109
110 for (ip = list; ip->i_title; ip++) {
111 xo_open_instance("item");
112
113 xo_emit("{k:name/%-10s/%s}{n:count/%12u/%u}\n",
114 ip->i_title, ip->i_count);
115 }
116
105 xo_open_marker("m1");
106 xo_open_container("contents");
107
108 xo_emit("{T:Item/%-10s}{T:Count/%12s}\n");
109
110 for (ip = list; ip->i_title; ip++) {
111 xo_open_instance("item");
112
113 xo_emit("{k:name/%-10s/%s}{n:count/%12u/%u}\n",
114 ip->i_title, ip->i_count);
115 }
116
117 xo_close_container("data"); /* Should be a noop */
117 xo_close_container("data3"); /* Should be a noop */
118 xo_emit("{:test}", "one");
119
120 xo_close_marker("m1");
118 xo_emit("{:test}", "one");
119
120 xo_close_marker("m1");
121 xo_close_container("data"); /* Should be a noop */
121 xo_close_container("data3"); /* Should be a noop */
122
123 xo_emit("\n\n");
124
122
123 xo_emit("\n\n");
124
125 xo_open_container("data");
125 xo_open_container("data4");
126 xo_open_marker("m1");
127 xo_open_container("contents");
128
129 xo_emit("{T:Item/%-10s}{T:Count/%12s}\n");
130
131 for (ip = list; ip->i_title; ip++) {
132 xo_open_instance("item");
133
134 xo_emit("{k:name/%-10s/%s}{n:count/%12u/%u}\n",
135 ip->i_title, ip->i_count);
136
137 xo_open_marker("m2");
138 for (i = 0; i < 3; i++) {
139 xo_open_instance("sub");
140 xo_emit("{Lwc:/Name}{:name/%d} + 1 = {:next/%d}\n", i, i + 1);
126 xo_open_marker("m1");
127 xo_open_container("contents");
128
129 xo_emit("{T:Item/%-10s}{T:Count/%12s}\n");
130
131 for (ip = list; ip->i_title; ip++) {
132 xo_open_instance("item");
133
134 xo_emit("{k:name/%-10s/%s}{n:count/%12u/%u}\n",
135 ip->i_title, ip->i_count);
136
137 xo_open_marker("m2");
138 for (i = 0; i < 3; i++) {
139 xo_open_instance("sub");
140 xo_emit("{Lwc:/Name}{:name/%d} + 1 = {:next/%d}\n", i, i + 1);
141 xo_close_container("data");
141 xo_close_container("data4");
142 }
143 xo_close_marker("m2");
144 xo_emit("{Lwc:/Last}{:last/%d}\n", i);
145 }
146
142 }
143 xo_close_marker("m2");
144 xo_emit("{Lwc:/Last}{:last/%d}\n", i);
145 }
146
147 xo_close_container("data"); /* Should be a noop */
147 xo_close_container("data4"); /* Should be a noop */
148 xo_emit("{:test}", "one");
149
150 xo_emit("\n\n");
151
152 xo_close_container_h(NULL, "top");
153
154 xo_finish();
155
156 return 0;
157}
148 xo_emit("{:test}", "one");
149
150 xo_emit("\n\n");
151
152 xo_close_container_h(NULL, "top");
153
154 xo_finish();
155
156 return 0;
157}