/* ------------------------------------------------ Copyright 2014 AT&T Intellectual Property Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ------------------------------------------- */ #include #include #include #include "schemaparser.h" #include "schemaparser_impl.h" // Interface to FTA definition lexer and parser ... //double htonf(double f){return f;} //long long int htonll(long long int l){return l;} using namespace std; extern int errno; // ./test_interfacelib test_param1.q_0.sch test_param4.q_1.sch int main(int argc, char **argv){ int i; char tmpstr[1000]; void * pblock; int block_size; if(argc < 2){ fprintf(stderr,"Usage: %s schema_file [schema_file ... ]\n",argv[0]); exit(1); } int nfiles = argc-1; int f; for(f=0;f