summaryrefslogtreecommitdiff
path: root/upb/bindings
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2015-07-07 18:46:14 -0700
committerJosh Haberman <jhaberman@gmail.com>2015-07-07 18:46:14 -0700
commit49dab06e03c16691c4dab1ba012fe8488089a590 (patch)
tree209f0749cbba6db8c9f0bf1094e6b5b5cd5190a0 /upb/bindings
parent6d9a9c727fd966acec7340aeabd5bf4039c6d929 (diff)
Brought into compliance with Google open-source policies.
- removed myself from Author headers in source files. - removed copyright notices from source file headers. - added CONTRIBUTING.md
Diffstat (limited to 'upb/bindings')
-rw-r--r--upb/bindings/googlepb/bridge.cc7
-rw-r--r--upb/bindings/googlepb/bridge.h7
-rw-r--r--upb/bindings/googlepb/proto1.cc5
-rw-r--r--upb/bindings/googlepb/proto1.int.h6
-rw-r--r--upb/bindings/googlepb/proto2.cc5
-rw-r--r--upb/bindings/googlepb/proto2.int.h6
-rw-r--r--upb/bindings/linux/assert.h6
-rw-r--r--upb/bindings/linux/errno.h6
-rw-r--r--upb/bindings/linux/stdint.h6
-rw-r--r--upb/bindings/linux/stdio.h8
-rw-r--r--upb/bindings/linux/stdlib.h9
-rw-r--r--upb/bindings/linux/string.h6
-rw-r--r--upb/bindings/lua/upb.c43
-rw-r--r--upb/bindings/lua/upb.h9
-rw-r--r--upb/bindings/lua/upb/pb.c15
-rw-r--r--upb/bindings/lua/upb/table.c30
-rw-r--r--upb/bindings/python/upb.c11
-rw-r--r--upb/bindings/ruby/upb.c9
-rw-r--r--upb/bindings/stdc++/string.h4
-rw-r--r--upb/bindings/stdc/error.c9
-rw-r--r--upb/bindings/stdc/error.h9
-rw-r--r--upb/bindings/stdc/io.c6
-rw-r--r--upb/bindings/stdc/io.h9
23 files changed, 57 insertions, 174 deletions
diff --git a/upb/bindings/googlepb/bridge.cc b/upb/bindings/googlepb/bridge.cc
index 394f7b4..c196140 100644
--- a/upb/bindings/googlepb/bridge.cc
+++ b/upb/bindings/googlepb/bridge.cc
@@ -1,9 +1,4 @@
-//
-// upb - a minimalist implementation of protocol buffers.
-//
-// Copyright (c) 2011-2012 Google Inc. See LICENSE for details.
-// Author: Josh Haberman <jhaberman@gmail.com>
-//
+
// IMPORTANT NOTE! Inside Google, This file is compiled TWICE, once with
// UPB_GOOGLE3 defined and once without! This allows us to provide
// functionality against proto2 and protobuf opensource both in a single binary
diff --git a/upb/bindings/googlepb/bridge.h b/upb/bindings/googlepb/bridge.h
index 9878247..ec8ac41 100644
--- a/upb/bindings/googlepb/bridge.h
+++ b/upb/bindings/googlepb/bridge.h
@@ -1,8 +1,7 @@
//
-// upb - a minimalist implementation of protocol buffers.
-//
-// Copyright (c) 2011-2012 Google Inc. See LICENSE for details.
-// Author: Josh Haberman <jhaberman@gmail.com>
+// upb::googlepb::DefBuilder
+// upb::googlepb::WriteHandlers
+// upb::googlepb::CodeCache
//
// This file contains functionality for constructing upb Defs and Handlers
// corresponding to proto2 messages. Using this functionality, you can use upb
diff --git a/upb/bindings/googlepb/proto1.cc b/upb/bindings/googlepb/proto1.cc
index 68b572c..fa51f79 100644
--- a/upb/bindings/googlepb/proto1.cc
+++ b/upb/bindings/googlepb/proto1.cc
@@ -1,9 +1,4 @@
//
-// upb - a minimalist implementation of protocol buffers.
-//
-// Copyright (c) 2011-2012 Google Inc. See LICENSE for details.
-// Author: Josh Haberman <jhaberman@gmail.com>
-//
// This set of handlers can write into a proto2::Message whose reflection class
// is _pi::Proto2Reflection (ie. proto1 messages; while slightly confusing, the
// name "Proto2Reflection" indicates that it is a reflection class implementing
diff --git a/upb/bindings/googlepb/proto1.int.h b/upb/bindings/googlepb/proto1.int.h
index 64ebb2f..d5c9cad 100644
--- a/upb/bindings/googlepb/proto1.int.h
+++ b/upb/bindings/googlepb/proto1.int.h
@@ -1,9 +1,3 @@
-//
-// upb - a minimalist implementation of protocol buffers.
-//
-// Copyright (c) 2011-2012 Google Inc. See LICENSE for details.
-// Author: Josh Haberman <jhaberman@gmail.com>
-//
// Support for registering field handlers that can write into a legacy proto1
// message. This functionality is only needed inside Google.
//
diff --git a/upb/bindings/googlepb/proto2.cc b/upb/bindings/googlepb/proto2.cc
index 636bb90..ee31d34 100644
--- a/upb/bindings/googlepb/proto2.cc
+++ b/upb/bindings/googlepb/proto2.cc
@@ -1,9 +1,4 @@
//
-// upb - a minimalist implementation of protocol buffers.
-//
-// Copyright (c) 2011-2012 Google Inc. See LICENSE for details.
-// Author: Josh Haberman <jhaberman@gmail.com>
-//
// Note that we have received an exception from c-style-artiters regarding
// dynamic_cast<> in this file:
// https://groups.google.com/a/google.com/d/msg/c-style/7Zp_XCX0e7s/I6dpzno4l-MJ
diff --git a/upb/bindings/googlepb/proto2.int.h b/upb/bindings/googlepb/proto2.int.h
index 5ce44c4..4f45efb 100644
--- a/upb/bindings/googlepb/proto2.int.h
+++ b/upb/bindings/googlepb/proto2.int.h
@@ -1,9 +1,3 @@
-//
-// upb - a minimalist implementation of protocol buffers.
-//
-// Copyright (c) 2011-2012 Google Inc. See LICENSE for details.
-// Author: Josh Haberman <jhaberman@gmail.com>
-//
// Support for registering field handlers that can write into a proto2
// message that uses GeneratedMessageReflection (which includes all messages
// generated by the proto2 compiler as well as DynamicMessage).
diff --git a/upb/bindings/linux/assert.h b/upb/bindings/linux/assert.h
index 26d8ab6..543f7fb 100644
--- a/upb/bindings/linux/assert.h
+++ b/upb/bindings/linux/assert.h
@@ -1,9 +1,3 @@
-/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2012 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- */
#include <linux/kernel.h>
diff --git a/upb/bindings/linux/errno.h b/upb/bindings/linux/errno.h
index f45d939..d6c56bc 100644
--- a/upb/bindings/linux/errno.h
+++ b/upb/bindings/linux/errno.h
@@ -1,8 +1,2 @@
-/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2012 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- */
#include <linux/errno.h>
diff --git a/upb/bindings/linux/stdint.h b/upb/bindings/linux/stdint.h
index 2524b23..2aa5144 100644
--- a/upb/bindings/linux/stdint.h
+++ b/upb/bindings/linux/stdint.h
@@ -1,8 +1,2 @@
-/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2012 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- */
#include <linux/types.h>
diff --git a/upb/bindings/linux/stdio.h b/upb/bindings/linux/stdio.h
index 72c1b0d..dd22e5b 100644
--- a/upb/bindings/linux/stdio.h
+++ b/upb/bindings/linux/stdio.h
@@ -1,10 +1,2 @@
-/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2012 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- *
- * Linux-kernel implementations of some stdlib.h functions.
- */
#include <linux/kernel.h> // For sprintf and friends.
diff --git a/upb/bindings/linux/stdlib.h b/upb/bindings/linux/stdlib.h
index 8381b13..5ae6742 100644
--- a/upb/bindings/linux/stdlib.h
+++ b/upb/bindings/linux/stdlib.h
@@ -1,11 +1,6 @@
/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2012 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- *
- * Linux-kernel implementations of some stdlib.h functions.
- */
+** Linux-kernel implementations of some stdlib.h functions.
+*/
#include <linux/slab.h>
diff --git a/upb/bindings/linux/string.h b/upb/bindings/linux/string.h
index 30ebf8a..9cfd9b3 100644
--- a/upb/bindings/linux/string.h
+++ b/upb/bindings/linux/string.h
@@ -1,9 +1,3 @@
-/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2012 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- */
#ifndef UPB_LINUX_STRING_H_
#define UPB_LINUX_STRING_H_
diff --git a/upb/bindings/lua/upb.c b/upb/bindings/lua/upb.c
index 9629314..2d7b1b3 100644
--- a/upb/bindings/lua/upb.c
+++ b/upb/bindings/lua/upb.c
@@ -1,27 +1,24 @@
/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2009 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- *
- * A Lua extension for upb. Exposes only the core library
- * (sub-libraries are exposed in other extensions).
- *
- * 64-bit woes: Lua can only represent numbers of type lua_Number (which is
- * double unless the user specifically overrides this). Doubles can represent
- * the entire range of 64-bit integers, but lose precision once the integers are
- * greater than 2^53.
- *
- * Lua 5.3 is adding support for integers, which will allow for 64-bit
- * integers (which can be interpreted as signed or unsigned).
- *
- * LuaJIT supports 64-bit signed and unsigned boxed representations
- * through its "cdata" mechanism, but this is not portable to regular Lua.
- *
- * Hopefully Lua 5.3 will come soon enough that we can either use Lua 5.3
- * integer support or LuaJIT 64-bit cdata for users that need the entire
- * domain of [u]int64 values.
- */
+** require("lua") -- A Lua extension for upb.
+**
+** Exposes only the core library
+** (sub-libraries are exposed in other extensions).
+**
+** 64-bit woes: Lua can only represent numbers of type lua_Number (which is
+** double unless the user specifically overrides this). Doubles can represent
+** the entire range of 64-bit integers, but lose precision once the integers are
+** greater than 2^53.
+**
+** Lua 5.3 is adding support for integers, which will allow for 64-bit
+** integers (which can be interpreted as signed or unsigned).
+**
+** LuaJIT supports 64-bit signed and unsigned boxed representations
+** through its "cdata" mechanism, but this is not portable to regular Lua.
+**
+** Hopefully Lua 5.3 will come soon enough that we can either use Lua 5.3
+** integer support or LuaJIT 64-bit cdata for users that need the entire
+** domain of [u]int64 values.
+*/
#include <float.h>
#include <math.h>
diff --git a/upb/bindings/lua/upb.h b/upb/bindings/lua/upb.h
index 09ffaa9..6957ec2 100644
--- a/upb/bindings/lua/upb.h
+++ b/upb/bindings/lua/upb.h
@@ -1,11 +1,6 @@
/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2012 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- *
- * Shared definitions for upb Lua modules.
- */
+** Shared definitions for upb Lua modules.
+*/
#ifndef UPB_LUA_UPB_H_
#define UPB_LUA_UPB_H_
diff --git a/upb/bindings/lua/upb/pb.c b/upb/bindings/lua/upb/pb.c
index b85da18..f095a61 100644
--- a/upb/bindings/lua/upb/pb.c
+++ b/upb/bindings/lua/upb/pb.c
@@ -1,14 +1,9 @@
/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2014 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- *
- * A Lua extension for upb.pb.
- *
- * Exposes all the types defined in upb/pb/{*}.h
- * Also defines a few convenience functions on top.
- */
+** require("upb.pb") -- A Lua extension for upb.pb.
+**
+** Exposes all the types defined in upb/pb/{*}.h
+** Also defines a few convenience functions on top.
+*/
#include "upb/bindings/lua/upb.h"
#include "upb/pb/decoder.h"
diff --git a/upb/bindings/lua/upb/table.c b/upb/bindings/lua/upb/table.c
index b82b3f8..2379342 100644
--- a/upb/bindings/lua/upb/table.c
+++ b/upb/bindings/lua/upb/table.c
@@ -1,21 +1,17 @@
/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2012 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- *
- * Lua extension that provides access to upb_table. This is an internal-only
- * interface and exists for the sole purpose of writing a C code generator in
- * Lua that can dump a upb_table as static C initializers. This lets us use
- * Lua for convenient string manipulation while saving us from re-implementing
- * the upb_table hash function and hash table layout / collision strategy in
- * Lua.
- *
- * Since this is used only as part of the toolchain (and not part of the
- * runtime) we do not hold this module to the same stringent requirements as
- * the main Lua modules (for example that misbehaving Lua programs cannot
- * crash the interpreter).
- */
+** require("upb.table") -- a Lua extension for accessing upb_table
+**
+** This is an internal-only interface and exists for the sole purpose of
+** writing a C code generator in Lua that can dump a upb_table as static C
+** initializers. This lets us use Lua for convenient string manipulation while
+** saving us from re-implementing the upb_table hash function and hash table
+** layout / collision strategy in Lua.
+**
+** Since this is used only as part of the toolchain (and not part of the
+** runtime) we do not hold this module to the same stringent requirements as
+** the main Lua modules (for example that misbehaving Lua programs cannot
+** crash the interpreter).
+*/
#include <float.h>
#include <math.h>
diff --git a/upb/bindings/python/upb.c b/upb/bindings/python/upb.c
index 6cfc8e9..778b821 100644
--- a/upb/bindings/python/upb.c
+++ b/upb/bindings/python/upb.c
@@ -1,12 +1,7 @@
/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2009 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- *
- * Python extension exposing the core of upb: definitions, handlers,
- * and a message type.
- */
+** Python extension exposing the core of upb: definitions, handlers,
+** and a message type.
+**/
#include <stddef.h>
#include <Python.h>
diff --git a/upb/bindings/ruby/upb.c b/upb/bindings/ruby/upb.c
index 9618366..ea0fcc8 100644
--- a/upb/bindings/ruby/upb.c
+++ b/upb/bindings/ruby/upb.c
@@ -1,11 +1,6 @@
/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2014 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- *
- * upb (prototype) extension for Ruby.
- */
+** upb (prototype) extension for Ruby.
+*/
#include "ruby/ruby.h"
#include "ruby/vm.h"
diff --git a/upb/bindings/stdc++/string.h b/upb/bindings/stdc++/string.h
index 20a0876..99efd4f 100644
--- a/upb/bindings/stdc++/string.h
+++ b/upb/bindings/stdc++/string.h
@@ -1,7 +1,3 @@
-// Copyright 2014 Google Inc. All Rights Reserved.
-// Author: haberman@google.com (Josh Haberman)
-//
-// upb - a minimalist implementation of protocol buffers.
#ifndef UPB_STDCPP_H_
#define UPB_STDCPP_H_
diff --git a/upb/bindings/stdc/error.c b/upb/bindings/stdc/error.c
index 85c9ca6..521c1e4 100644
--- a/upb/bindings/stdc/error.c
+++ b/upb/bindings/stdc/error.c
@@ -1,11 +1,6 @@
/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2009 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- *
- * Handling of errno.
- */
+** Handling of errno.
+*/
#include "upb/stdc/error.h"
diff --git a/upb/bindings/stdc/error.h b/upb/bindings/stdc/error.h
index cfc7025..69a2e2b 100644
--- a/upb/bindings/stdc/error.h
+++ b/upb/bindings/stdc/error.h
@@ -1,11 +1,6 @@
/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2012 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- *
- * Handling of errno.
- */
+** Handling of errno.
+*/
#include "upb/upb.h"
diff --git a/upb/bindings/stdc/io.c b/upb/bindings/stdc/io.c
index 5d36aa5..a95eb48 100644
--- a/upb/bindings/stdc/io.c
+++ b/upb/bindings/stdc/io.c
@@ -1,9 +1,3 @@
-/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2012 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- */
#include "upb/stdc/io.h"
diff --git a/upb/bindings/stdc/io.h b/upb/bindings/stdc/io.h
index 7c6f282..b131500 100644
--- a/upb/bindings/stdc/io.h
+++ b/upb/bindings/stdc/io.h
@@ -1,11 +1,6 @@
/*
- * upb - a minimalist implementation of protocol buffers.
- *
- * Copyright (c) 2012 Google Inc. See LICENSE for details.
- * Author: Josh Haberman <jhaberman@gmail.com>
- *
- * ANSI C file I/O.
- */
+** ANSI C file I/O.
+*/
#ifndef UPB_STDC_IO_H_
#define UPB_STDC_IO_H_
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback