Deleted Added
full compact
test_01.c (298067) test_01.c (298083)
1/*
2 * Copyright (c) 2014, 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 2014

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

74 }
75 }
76
77 xo_set_info(NULL, info, -1);
78 xo_set_flags(NULL, XOF_KEYS);
79
80 xo_open_container_h(NULL, "top");
81
1/*
2 * Copyright (c) 2014, 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 2014

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

74 }
75 }
76
77 xo_set_info(NULL, info, -1);
78 xo_set_flags(NULL, XOF_KEYS);
79
80 xo_open_container_h(NULL, "top");
81
82 xo_emit("testing argument modifier {a:}.{a:}...\n",
83 "host", "my-box", "domain", "example.com");
84
85 xo_emit("testing argument modifier with encoding to {ea:}.{a:}...\n",
86 "host", "my-box", "domain", "example.com");
87
88 xo_emit("{La:} {a:}\n", "Label text", "label", "value");
89
90 xo_emit_field("Vt", "max-chaos", NULL, NULL, " very ");
91 xo_emit_field("V", "min-chaos", "%d", NULL, 42);
92 xo_emit_field("V", "some-chaos", "%d\n", "[%d]", 42);
93
82 xo_emit("Connecting to {:host}.{:domain}...\n", "my-box", "example.com");
83
84 xo_attr("test", "value");
85 xo_open_container("data");
86 xo_open_list("item");
87 xo_attr("test2", "value2");
88
89 xo_emit("{T:Item/%-10s}{T:Total Sold/%12s}{T:In Stock/%12s}"

--- 98 unchanged lines hidden ---
94 xo_emit("Connecting to {:host}.{:domain}...\n", "my-box", "example.com");
95
96 xo_attr("test", "value");
97 xo_open_container("data");
98 xo_open_list("item");
99 xo_attr("test2", "value2");
100
101 xo_emit("{T:Item/%-10s}{T:Total Sold/%12s}{T:In Stock/%12s}"

--- 98 unchanged lines hidden ---