Giter VIP home page Giter VIP logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
i already fixed this in 0.3.  For example:

%grep quantifier_offset protobuf-c-0.4/src/google/protobuf/compiler/c/*
protobuf-c-0.4/src/google/protobuf/compiler/c/c_field.cc:     
printer->Print(variables, "  0,   /* quantifier_offset */\n");
protobuf-c-0.4/src/google/protobuf/compiler/c/c_field.cc:      
printer->Print(variables, "  0,   /* quantifier_offset */\n");


Also:
% svn log -r55

r55 | lahiker42 | 2008-08-27 23:08:40 -0700 (Wed, 27 Aug 2008) | 3 lines

- suppress final enum comma
- do not use c++ comments

------------------------------------------------------------------------
% svn diff -r54:55 src/google/protobuf/compiler/c/c_field.cc  
Index: src/google/protobuf/compiler/c/c_field.cc
===================================================================
--- src/google/protobuf/compiler/c/c_field.cc   (revision 54)
+++ src/google/protobuf/compiler/c/c_field.cc   (revision 55)
@@ -61,13 +61,13 @@
     "  PROTOBUF_C_TYPE_$TYPE$,\n");
   switch (descriptor_->label()) {
     case FieldDescriptor::LABEL_REQUIRED:
-      printer->Print(variables, "  0,   // quantifier_offset\n");
+      printer->Print(variables, "  0,   /* quantifier_offset */\n");
       break;
     case FieldDescriptor::LABEL_OPTIONAL:
       if (optional_uses_has) {
        printer->Print(variables, "  PROTOBUF_C_OFFSETOF($classname$, has_$name$
),\n");
       } else {
-       printer->Print(variables, "  0,   // quantifier_offset\n");
+       printer->Print(variables, "  0,   /* quantifier_offset */\n");
       }
       break;


I think you need to regenerate your files.  (You should add a Makefile 
dependency on
protoc-c so that if protoc-c changes you will rebuild it...)

Original comment by [email protected] on 9 Sep 2008 at 11:57

from protobuf-c.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
Please reopen this bug if it continues to be a problem.

Original comment by [email protected] on 12 Sep 2008 at 1:52

from protobuf-c.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024

Original comment by [email protected] on 12 Sep 2008 at 1:52

  • Changed state: Invalid

from protobuf-c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.