X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fftacmp%2Ftest_interfacelib.cc;h=15321420d2fff7bb0f14b6da8f04dcad3715f9e1;hb=f1754ecea2eab7bd0a302042ac82eb11667b166c;hp=af756deed2a8806dc740be8883316dc7a2e220b1;hpb=07495effe193ca3f73c3bf0ce417068f9ac9dcdd;p=com%2Fgs-lite.git diff --git a/src/ftacmp/test_interfacelib.cc b/src/ftacmp/test_interfacelib.cc index af756de..1532142 100644 --- a/src/ftacmp/test_interfacelib.cc +++ b/src/ftacmp/test_interfacelib.cc @@ -1,154 +1,154 @@ -/* ------------------------------------------------ -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 + +#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