ctf.fs: bt_ctf_notif_iter_create(): assert() that all medops exist
[babeltrace.git] / formats / ctf / metadata / ctf-parser-test.c
index 72c45885dc939f62c1622fd0aea08e6ad7895d77..fed85f11466933e5eb592d30842ea98e943345e6 100644 (file)
  *
  * The above copyright notice and this permission notice shall be included in
  * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
  */
 
 #include <stdlib.h>
@@ -27,7 +35,7 @@
 #include "ctf-parser.h"
 #include "ctf-ast.h"
 
-int babeltrace_verbose, babeltrace_debug;
+bool babeltrace_verbose, babeltrace_debug;
 
 int main(int argc, char **argv)
 {
@@ -37,12 +45,12 @@ int main(int argc, char **argv)
 
        babeltrace_debug = 1;
        babeltrace_verbose = 1;
-       scanner = ctf_scanner_alloc(stdin);
+       scanner = ctf_scanner_alloc();
        if (!scanner) {
                fprintf(stderr, "Error allocating scanner\n");
                return -ENOMEM;
        }
-       ret = ctf_scanner_append_ast(scanner);
+       ret = ctf_scanner_append_ast(scanner, stdin);
        if (ret) {
                fprintf(stderr, "Error creating AST\n");
                goto end;
This page took 0.025029 seconds and 4 git commands to generate.