Re: [protobuf] Re: .proto file with enumeration only

2011-02-22 Thread Kenton Varda
Unix and Windows EOLs should work, but old-Mac EOLs (which were just '\r's
with no '\n') probably will not work.  I thought that Mac stopped using that
style with OSX, though, so I'm not sure why you'd be seeing this problem 10
years later.

On Wed, Feb 16, 2011 at 11:16 AM, dan jiggersp...@gmail.com wrote:

 okay... that does not appear to be the whole story.  it also  has
 something to do with unix-style end-of-line vs. windows and/or mac
 style end-of-line.  behaves correctly with unix-style.  comment on the
 first line fails on whatever style i had it set to before.  also fails
 if you have a line commented out in the middle of the enumeration like
 so:

 enum foo {
bar = 1;
 // baz = 2;
 }

 On Feb 16, 1:53 pm, dan jiggersp...@gmail.com wrote:
  solved it.  apparently you can't have a comment as the first line of
  your file.
 
  On Feb 16, 11:40 am, dan jiggersp...@gmail.com wrote:
 
 
 
 
 
 
 
   i have a .proto with nothing but an enumeration in it.  it compiles,
   but the output .h and .cc file are basically empty stubs.  i made a
   test file with
 
   enum foo {
   bar = 1;
 
   }
 
   and that compiles just fine... the file i'm having problems with is
   the essentially the same but has about 125 values.
 
   any ideas?

 --
 You received this message because you are subscribed to the Google Groups
 Protocol Buffers group.
 To post to this group, send email to protobuf@googlegroups.com.
 To unsubscribe from this group, send email to
 protobuf+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/protobuf?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] Re: .proto file with enumeration only

2011-02-16 Thread dan
solved it.  apparently you can't have a comment as the first line of
your file.

On Feb 16, 11:40 am, dan jiggersp...@gmail.com wrote:
 i have a .proto with nothing but an enumeration in it.  it compiles,
 but the output .h and .cc file are basically empty stubs.  i made a
 test file with

 enum foo {
     bar = 1;

 }

 and that compiles just fine... the file i'm having problems with is
 the essentially the same but has about 125 values.

 any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] Re: .proto file with enumeration only

2011-02-16 Thread dan
okay... that does not appear to be the whole story.  it also  has
something to do with unix-style end-of-line vs. windows and/or mac
style end-of-line.  behaves correctly with unix-style.  comment on the
first line fails on whatever style i had it set to before.  also fails
if you have a line commented out in the middle of the enumeration like
so:

enum foo {
bar = 1;
// baz = 2;
}

On Feb 16, 1:53 pm, dan jiggersp...@gmail.com wrote:
 solved it.  apparently you can't have a comment as the first line of
 your file.

 On Feb 16, 11:40 am, dan jiggersp...@gmail.com wrote:







  i have a .proto with nothing but an enumeration in it.  it compiles,
  but the output .h and .cc file are basically empty stubs.  i made a
  test file with

  enum foo {
      bar = 1;

  }

  and that compiles just fine... the file i'm having problems with is
  the essentially the same but has about 125 values.

  any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.