Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
protobuf-c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
protobuf-c
Commits
44b90935
Commit
44b90935
authored
Jan 25, 2025
by
Robert Edmonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
protoc-gen-c/: Update #include's, copyright years
parent
773d337b
Changes
27
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
175 additions
and
123 deletions
+175
-123
protoc-gen-c/c_bytes_field.cc
protoc-gen-c/c_bytes_field.cc
+6
-3
protoc-gen-c/c_bytes_field.h
protoc-gen-c/c_bytes_field.h
+4
-2
protoc-gen-c/c_enum.cc
protoc-gen-c/c_enum.cc
+6
-4
protoc-gen-c/c_enum.h
protoc-gen-c/c_enum.h
+4
-7
protoc-gen-c/c_enum_field.cc
protoc-gen-c/c_enum_field.cc
+5
-3
protoc-gen-c/c_enum_field.h
protoc-gen-c/c_enum_field.h
+4
-2
protoc-gen-c/c_extension.cc
protoc-gen-c/c_extension.cc
+4
-3
protoc-gen-c/c_extension.h
protoc-gen-c/c_extension.h
+5
-8
protoc-gen-c/c_field.cc
protoc-gen-c/c_field.cc
+13
-10
protoc-gen-c/c_field.h
protoc-gen-c/c_field.h
+5
-8
protoc-gen-c/c_file.cc
protoc-gen-c/c_file.cc
+9
-8
protoc-gen-c/c_file.h
protoc-gen-c/c_file.h
+7
-9
protoc-gen-c/c_generator.cc
protoc-gen-c/c_generator.cc
+7
-6
protoc-gen-c/c_generator.h
protoc-gen-c/c_generator.h
+3
-1
protoc-gen-c/c_helpers.cc
protoc-gen-c/c_helpers.cc
+7
-4
protoc-gen-c/c_helpers.h
protoc-gen-c/c_helpers.h
+5
-2
protoc-gen-c/c_message.cc
protoc-gen-c/c_message.cc
+8
-6
protoc-gen-c/c_message.h
protoc-gen-c/c_message.h
+6
-10
protoc-gen-c/c_message_field.cc
protoc-gen-c/c_message_field.cc
+5
-3
protoc-gen-c/c_message_field.h
protoc-gen-c/c_message_field.h
+4
-2
protoc-gen-c/c_primitive_field.cc
protoc-gen-c/c_primitive_field.cc
+5
-3
protoc-gen-c/c_primitive_field.h
protoc-gen-c/c_primitive_field.h
+4
-2
protoc-gen-c/c_service.cc
protoc-gen-c/c_service.cc
+5
-3
protoc-gen-c/c_service.h
protoc-gen-c/c_service.h
+4
-7
protoc-gen-c/c_string_field.cc
protoc-gen-c/c_string_field.cc
+6
-3
protoc-gen-c/c_string_field.h
protoc-gen-c/c_string_field.h
+4
-2
protoc-gen-c/main.cc
protoc-gen-c/main.cc
+30
-2
No files found.
protoc-gen-c/c_bytes_field.cc
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -60,12 +61,14 @@
...
@@ -60,12 +61,14 @@
// Modified to implement C code by Dave Benson.
// Modified to implement C code by Dave Benson.
#include <protoc-c/c_bytes_field.h>
#include <protoc-c/c_helpers.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/wire_format.h>
#include <google/protobuf/wire_format.h>
#include <protobuf-c/protobuf-c.pb.h>
#include <protobuf-c/protobuf-c.pb.h>
#include "c_bytes_field.h"
#include "c_helpers.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
...
...
protoc-gen-c/c_bytes_field.h
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -65,7 +66,8 @@
...
@@ -65,7 +66,8 @@
#include <map>
#include <map>
#include <string>
#include <string>
#include <protoc-c/c_field.h>
#include "c_field.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
...
...
protoc-gen-c/c_enum.cc
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -60,13 +61,14 @@
...
@@ -60,13 +61,14 @@
// Modified to implement C code by Dave Benson.
// Modified to implement C code by Dave Benson.
#include <set>
#include <map>
#include <map>
#include <set>
#include <protoc-c/c_enum.h>
#include <protoc-c/c_helpers.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/printer.h>
#include "c_enum.h"
#include "c_helpers.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
...
...
protoc-gen-c/c_enum.h
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -64,15 +65,11 @@
...
@@ -64,15 +65,11 @@
#define GOOGLE_PROTOBUF_COMPILER_C_ENUM_H__
#define GOOGLE_PROTOBUF_COMPILER_C_ENUM_H__
#include <string>
#include <string>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/io/printer.h>
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
io
{
class
Printer
;
// printer.h
}
}
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
namespace
c
{
namespace
c
{
...
...
protoc-gen-c/c_enum_field.cc
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -60,11 +61,12 @@
...
@@ -60,11 +61,12 @@
// Modified to implement C code by Dave Benson.
// Modified to implement C code by Dave Benson.
#include <protoc-c/c_enum_field.h>
#include <protoc-c/c_helpers.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/wire_format.h>
#include <google/protobuf/wire_format.h>
#include "c_enum_field.h"
#include "c_helpers.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
...
...
protoc-gen-c/c_enum_field.h
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -65,7 +66,8 @@
...
@@ -65,7 +66,8 @@
#include <map>
#include <map>
#include <string>
#include <string>
#include <protoc-c/c_field.h>
#include "c_field.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
...
...
protoc-gen-c/c_extension.cc
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -60,10 +61,10 @@
...
@@ -60,10 +61,10 @@
// Modified to implement C code by Dave Benson.
// Modified to implement C code by Dave Benson.
#include <protoc-c/c_extension.h>
#include <protoc-c/c_helpers.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/printer.h>
#include "c_extension.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
...
...
protoc-gen-c/c_extension.h
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -64,16 +65,12 @@
...
@@ -64,16 +65,12 @@
#define GOOGLE_PROTOBUF_COMPILER_C_EXTENSION_H__
#define GOOGLE_PROTOBUF_COMPILER_C_EXTENSION_H__
#include <string>
#include <string>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/common.h>
namespace
google
{
namespace
google
{
namespace
protobuf
{
class
FieldDescriptor
;
// descriptor.h
namespace
io
{
class
Printer
;
// printer.h
}
}
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
namespace
c
{
namespace
c
{
...
...
protoc-gen-c/c_field.cc
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -60,16 +61,18 @@
...
@@ -60,16 +61,18 @@
// Modified to implement C code by Dave Benson.
// Modified to implement C code by Dave Benson.
#include <protoc-c/c_field.h>
#include <protoc-c/c_primitive_field.h>
#include <protoc-c/c_string_field.h>
#include <protoc-c/c_bytes_field.h>
#include <protoc-c/c_enum_field.h>
#include <protoc-c/c_message_field.h>
#include <protoc-c/c_helpers.h>
#include <protobuf-c/protobuf-c.pb.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/stubs/common.h>
#include <protobuf-c/protobuf-c.pb.h>
#include "c_bytes_field.h"
#include "c_enum_field.h"
#include "c_field.h"
#include "c_helpers.h"
#include "c_message_field.h"
#include "c_primitive_field.h"
#include "c_string_field.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
...
...
protoc-gen-c/c_field.h
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -64,16 +65,12 @@
...
@@ -64,16 +65,12 @@
#define GOOGLE_PROTOBUF_COMPILER_C_FIELD_H__
#define GOOGLE_PROTOBUF_COMPILER_C_FIELD_H__
#include <memory>
#include <memory>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/stubs/common.h>
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
io
{
class
Printer
;
// printer.h
}
}
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
namespace
c
{
namespace
c
{
...
...
protoc-gen-c/c_file.cc
View file @
44b90935
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-20
14
, Dave Benson and the protobuf-c authors.
// Copyright (c) 2008-20
25
, Dave Benson and the protobuf-c authors.
// All rights reserved.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
...
@@ -61,17 +61,18 @@
...
@@ -61,17 +61,18 @@
// Modified to implement C code by Dave Benson.
// Modified to implement C code by Dave Benson.
#include <protoc-c/c_file.h>
#include <protoc-c/c_enum.h>
#include <protoc-c/c_service.h>
#include <protoc-c/c_extension.h>
#include <protoc-c/c_helpers.h>
#include <protoc-c/c_message.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/printer.h>
#include <protobuf-c/protobuf-c.pb.h>
#include <protobuf-c/protobuf-c.pb.h>
#include "protobuf-c.h"
#include "protobuf-c.h"
#include "c_enum.h"
#include "c_extension.h"
#include "c_file.h"
#include "c_helpers.h"
#include "c_message.h"
#include "c_service.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
...
...
protoc-gen-c/c_file.h
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -66,17 +67,14 @@
...
@@ -66,17 +67,14 @@
#include <memory>
#include <memory>
#include <string>
#include <string>
#include <vector>
#include <vector>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/common.h>
#include <protoc-c/c_field.h>
namespace
google
{
#include "c_field.h"
namespace
protobuf
{
class
FileDescriptor
;
// descriptor.h
namespace
io
{
class
Printer
;
// printer.h
}
}
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
namespace
c
{
namespace
c
{
...
...
protoc-gen-c/c_generator.cc
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -60,17 +61,17 @@
...
@@ -60,17 +61,17 @@
// Modified to implement C code by Dave Benson.
// Modified to implement C code by Dave Benson.
#include <protoc-c/c_generator.h>
#include <memory>
#include <memory>
#include <vector>
#include <utility>
#include <utility>
#include <vector>
#include <protoc-c/c_file.h>
#include <protoc-c/c_helpers.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/zero_copy_stream.h>
#include <google/protobuf/io/zero_copy_stream.h>
#include <protobuf-c/protobuf-c.pb.h>
#include <protobuf-c/protobuf-c.pb.h>
#include "c_file.h"
#include "c_generator.h"
#include "c_helpers.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
...
...
protoc-gen-c/c_generator.h
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -66,6 +67,7 @@
...
@@ -66,6 +67,7 @@
#define GOOGLE_PROTOBUF_COMPILER_C_GENERATOR_H__
#define GOOGLE_PROTOBUF_COMPILER_C_GENERATOR_H__
#include <string>
#include <string>
#include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/compiler/code_generator.h>
#if defined(_WIN32) && defined(PROTOBUF_C_USE_SHARED_LIB)
#if defined(_WIN32) && defined(PROTOBUF_C_USE_SHARED_LIB)
...
...
protoc-gen-c/c_helpers.cc
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -61,14 +62,16 @@
...
@@ -61,14 +62,16 @@
// Modified to implement C code by Dave Benson.
// Modified to implement C code by Dave Benson.
#include <memory>
#include <memory>
#include <vector>
#include <set>
#include <set>
#include <stdio.h> // for snprintf
#include <vector>
#include <float.h>
#include <float.h>
#include <stdio.h> // for snprintf
#include <protoc-c/c_helpers.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/common.h>
#include "c_helpers.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
...
...
protoc-gen-c/c_helpers.h
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -66,10 +67,12 @@
...
@@ -66,10 +67,12 @@
#include <string>
#include <string>
#include <vector>
#include <vector>
#include <sstream>
#include <sstream>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/descriptor.h>
#include <protobuf-c/protobuf-c.pb.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/printer.h>
#include <protobuf-c/protobuf-c.pb.h>
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
...
...
protoc-gen-c/c_message.cc
View file @
44b90935
...
@@ -63,19 +63,21 @@
...
@@ -63,19 +63,21 @@
#include <algorithm>
#include <algorithm>
#include <map>
#include <map>
#include <memory>
#include <string_view>
#include <string_view>
#include <tuple>
#include <tuple>
#include <vector>
#include <vector>
#include <protoc-c/c_message.h>
#include <protoc-c/c_enum.h>
#include <protoc-c/c_extension.h>
#include <protoc-c/c_helpers.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/wire_format.h>
#include <google/protobuf/wire_format.h>
#include <protobuf-c/protobuf-c.pb.h>
#include <protobuf-c/protobuf-c.pb.h>
#include "c_enum.h"
#include "c_extension.h"
#include "c_helpers.h"
#include "c_message.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
...
...
protoc-gen-c/c_message.h
View file @
44b90935
...
@@ -66,23 +66,19 @@
...
@@ -66,23 +66,19 @@
#include <memory>
#include <memory>
#include <string>
#include <string>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/common.h>
#include <protoc-c/c_field.h>
namespace
google
{
#include "c_enum.h"
namespace
protobuf
{
#include "c_extension.h"
namespace
io
{
#include "c_field.h"
class
Printer
;
// printer.h
}
}
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
namespace
c
{
namespace
c
{
class
EnumGenerator
;
// enum.h
class
ExtensionGenerator
;
// extension.h
class
MessageGenerator
{
class
MessageGenerator
{
public:
public:
// See generator.cc for the meaning of dllexport_decl.
// See generator.cc for the meaning of dllexport_decl.
...
...
protoc-gen-c/c_message_field.cc
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -60,11 +61,12 @@
...
@@ -60,11 +61,12 @@
// Modified to implement C code by Dave Benson.
// Modified to implement C code by Dave Benson.
#include <protoc-c/c_message_field.h>
#include <protoc-c/c_helpers.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/wire_format.h>
#include <google/protobuf/wire_format.h>
#include "c_helpers.h"
#include "c_message_field.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
...
...
protoc-gen-c/c_message_field.h
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -65,7 +66,8 @@
...
@@ -65,7 +66,8 @@
#include <map>
#include <map>
#include <string>
#include <string>
#include <protoc-c/c_field.h>
#include "c_field.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
...
...
protoc-gen-c/c_primitive_field.cc
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -60,11 +61,12 @@
...
@@ -60,11 +61,12 @@
// Modified to implement C code by Dave Benson.
// Modified to implement C code by Dave Benson.
#include <protoc-c/c_primitive_field.h>
#include <protoc-c/c_helpers.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/wire_format.h>
#include <google/protobuf/wire_format.h>
#include "c_helpers.h"
#include "c_primitive_field.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
...
...
protoc-gen-c/c_primitive_field.h
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -65,7 +66,8 @@
...
@@ -65,7 +66,8 @@
#include <map>
#include <map>
#include <string>
#include <string>
#include <protoc-c/c_field.h>
#include "c_field.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
...
...
protoc-gen-c/c_service.cc
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -60,10 +61,11 @@
...
@@ -60,10 +61,11 @@
// Modified to implement C code by Dave Benson.
// Modified to implement C code by Dave Benson.
#include <protoc-c/c_service.h>
#include <protoc-c/c_helpers.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/printer.h>
#include "c_helpers.h"
#include "c_service.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
...
...
protoc-gen-c/c_service.h
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -65,15 +66,11 @@
...
@@ -65,15 +66,11 @@
#include <map>
#include <map>
#include <string>
#include <string>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/io/printer.h>
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
io
{
class
Printer
;
// printer.h
}
}
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
namespace
c
{
namespace
c
{
...
...
protoc-gen-c/c_string_field.cc
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -60,12 +61,14 @@
...
@@ -60,12 +61,14 @@
// Modified to implement C code by Dave Benson.
// Modified to implement C code by Dave Benson.
#include <protoc-c/c_string_field.h>
#include <protoc-c/c_helpers.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/wire_format.h>
#include <google/protobuf/wire_format.h>
#include <protobuf-c/protobuf-c.pb.h>
#include <protobuf-c/protobuf-c.pb.h>
#include "c_helpers.h"
#include "c_string_field.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
namespace
compiler
{
namespace
compiler
{
...
...
protoc-gen-c/c_string_field.h
View file @
44b90935
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
// Copyright (c) 2008-2013, Dave Benson. All rights reserved.
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// modification, are permitted provided that the following conditions are
...
@@ -65,7 +66,8 @@
...
@@ -65,7 +66,8 @@
#include <map>
#include <map>
#include <string>
#include <string>
#include <protoc-c/c_field.h>
#include "c_field.h"
namespace
google
{
namespace
google
{
namespace
protobuf
{
namespace
protobuf
{
...
...
protoc-gen-c/main.cc
View file @
44b90935
// Copyright (c) 2008-2025, Dave Benson and the protobuf-c authors.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <string>
#include <string>
#include <google/protobuf/compiler/plugin.h>
#include <google/protobuf/compiler/command_line_interface.h>
#include <google/protobuf/compiler/command_line_interface.h>
#include <protoc-c/c_generator.h>
#include <google/protobuf/compiler/plugin.h>
#include "c_generator.h"
int
main
(
int
argc
,
char
*
argv
[])
{
int
main
(
int
argc
,
char
*
argv
[])
{
google
::
protobuf
::
compiler
::
c
::
CGenerator
c_generator
;
google
::
protobuf
::
compiler
::
c
::
CGenerator
c_generator
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment