Commit 1bf2e9e3 authored by lahiker42's avatar lahiker42

insert copyright notice.



git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@67 00440858-1255-0410-a3e6-75ea37f81c3a
parent f3ed0fa1
/* --- protobuf-c-private.h: private structures and functions --- */
/*
* Copyright 2008, Dave Benson.
*
* 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.
*/
/* === needs to be declared for the PROTOBUF_C_BUFFER_SIMPLE_INIT macro === */ /* === needs to be declared for the PROTOBUF_C_BUFFER_SIMPLE_INIT macro === */
......
/* --- protobuf-c.c: public protobuf c runtime implementation --- */
/*
* Copyright 2008, Dave Benson.
*
* 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 <stdio.h> /* for occasional printf()s */ #include <stdio.h> /* for occasional printf()s */
#include <stdlib.h> /* for abort(), malloc() etc */ #include <stdlib.h> /* for abort(), malloc() etc */
#include <string.h> /* for strlen(), memcpy(), memmove() */ #include <string.h> /* for strlen(), memcpy(), memmove() */
#include <endian.h> #include <endian.h> /* for __BYTE_ORDER, __LITTLE_ENDIAN */
#define DO_LITTLE_ENDIAN_OPTIMIZATIONS 0 #define DO_LITTLE_ENDIAN_OPTIMIZATIONS 0
#define PRINT_UNPACK_ERRORS 1 #define PRINT_UNPACK_ERRORS 1
#if DO_LITTLE_ENDIAN_OPTIMIZATIONS #if DO_LITTLE_ENDIAN_OPTIMIZATIONS
# if (__LITTLE_ENDIAN == __uint8_t_ORDER) # if (__LITTLE_ENDIAN == __BYTE_ORDER)
# define IS_LITTLE_ENDIAN 1 # define IS_LITTLE_ENDIAN 1
# else # else
# define IS_LITTLE_ENDIAN 0 # define IS_LITTLE_ENDIAN 0
# endif # endif
#else
# define IS_LITTLE_ENDIAN 0
#endif #endif
/* This file defines `__uint8_t_ORDER' for the particular machine. */
#include "protobuf-c.h" #include "protobuf-c.h"
#define MAX_UINT64_ENCODED_SIZE 10 #define MAX_UINT64_ENCODED_SIZE 10
......
/* --- protobuf-c.h: public protobuf c runtime api --- */
/*
* Copyright 2008, Dave Benson.
*
* 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.
*/
#ifndef __PROTOBUF_C_RUNTIME_H_ #ifndef __PROTOBUF_C_RUNTIME_H_
#define __PROTOBUF_C_RUNTIME_H_ #define __PROTOBUF_C_RUNTIME_H_
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment