Commit Graph

83 Commits

Author SHA1 Message Date
Nobuaki Sukegawa
21b6d9295a THRIFT-3909 Fix c_glib static lib CMake build
This closes #1072
2016-09-04 18:49:20 +09:00
Chandler May
1fa273be50 THRIFT-2980 Accept external buffer in thrift_memory_buffer constructor
This closes #821
2016-03-13 19:15:18 +09:00
Chandler May
1ccd81bfbc THRIFT-3569 Add thrift_transport_read_all to facilitate large reads in c_glib.
Client: c_glib
Patch: Chandler May

This closes #849
2016-03-05 22:53:28 +09:00
Nobuaki Sukegawa
2303d978c0 THRIFT-3577 assertion failed at line 512 of testcontainertest.c
Client: Test (c_glib)
Patch: Nobuaki Sukegawa

This closes #882
2016-02-22 02:47:06 +09:00
Simon South
e71f20cd3e THRIFT-3556 c_glib file descriptor transport
Client: C (GLib)
Patch: Chandler May <cjmay4754@gmail.com>

This closes #810
2016-02-11 06:56:31 -05:00
Chandler May
ccd998a04e THRIFT-3572 Fix "Unable to determine the behavior of a signed right shift"
Client: Build (c_glib)
Patch: Chandler May

This closes #816
2016-01-24 01:26:33 +09:00
Nobuaki Sukegawa
607697054d THRIFT-3573 c_glib: No rule to make target issue
This closes #813 and closes #811
2016-01-23 21:50:36 +09:00
Chandler May
3fe3df2ac8 THRIFT-3567 GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Client: c_glib
Patch: Chandler May <cjmay4754@gmail.com>

This closes #806
2016-01-19 22:00:48 +01:00
Chandler May
6dde90be2e THRIFT-1313 implement compact protocol for c_glib library
Client: C_glib
Chandler May <cjmay4754@gmail.com>

This closes #795
2016-01-19 22:00:27 +01:00
Chandler May
8b0fe287a6 THRIFT-3558 fix typos in c_glib test assertions
This closes #796
2016-01-17 20:29:00 +01:00
Simon South
420ee1e7f8 THRIFT-3552 c_glib: Fix memory leak in processor
- t_c_glib_generator.cc: Free method-name string once matched within a
  generated dispatch_call implementation.
- thrift_dispatch_processor.c: Free method-name string in default
  dispatch_call implementation.
2016-01-16 12:45:19 +01:00
Simon South
bf8f7b425e THRIFT-3383 i64 related warnings
This closes #764
2016-01-03 02:55:03 +09:00
Simon South
56cf779591 THRIFT-3512 c_glib: Build fails due to missing features.h
This closes #763
2016-01-03 02:54:25 +09:00
Nobuaki Sukegawa
ba3fe86b0a THRIFT-3464 Fix several defects in c_glib code generator
Client: c_glib compiler
Patch: Nobuaki Sukegawa

This closes #724
2015-12-06 10:11:16 +09:00
Nobuaki Sukegawa
362a5eda21 THRIFT-3455 struct write method's return value is incorrect
Client: c_glib Compiler
Patch: Nobuaki Sukegawa
2015-12-04 00:38:33 +09:00
Nobuaki Sukegawa
ca93936e78 THRIFT-3424 Add CMake android build option
Client: Build
Patch: Nobuaki Sukegawa

This closes #696
2015-11-23 16:59:10 +09:00
Dave Watson
792db4e926 THRIFT-2423 Facebook's THeader protocol and transport for cpp
Client: C++ Library, Compiler
Patch: Dave Watson rebased by Nobuaki Sukegawa

This closes #357 and closes #677
2015-11-04 01:25:22 +09:00
Gonzalo Aguilar Delgado
b343feee0d THRIFT-3370 errno extern variable redefined. Not compiling for Android
Client: c_glib
Patch: Gonzalo Aguilar

This closes #638
2015-10-21 23:39:54 +09:00
Nobuaki Sukegawa
a649e7473b THRIFT-3337 Add testBool method to cross tests
This closes #611
2015-09-21 23:07:39 +02:00
Roger Meier
ff4a8edd50 THRIFT-3326 Tests do not compile under *BSD
Patch: Joao Neves
2015-09-19 20:49:50 +02:00
jfarrell
f13e431bab THRIFT-3305: Missing dist files for 0.9.3 release candidate
Client: build
Patch: jfarrell

Adds missing files to dist
2015-08-25 00:39:29 -04:00
Jens Geyer
4fed1af570 THRIFT-3178 glib C does not compile
Client: c_glib
Patch: Simon South <ssouth@simonsouth.com>

This closes #581
2015-08-08 00:24:13 +02:00
Jens Geyer
54f392b8fd THRIFT-2832 c_glib: Handle string lists correctly
Client: c_glib
Patch: Simon South <ssouth@simonsouth.com>

The compiler now correctly generates code for string lists (i.e. variables of type list<string>) that are
- Passed as a parameter to a service method,
- Returned from a service method or
- Assigned a default value.

Added a unit test that covers containers (initially only string lists) used as parameters to and return values from
service methods, and as members with default values inside structs.
2015-08-05 21:45:10 +02:00
Simon South
38e7155c03 THRIFT-3288 c_glib: Build unit tests without compiler warnings
These changes allow the unit tests for C (GLib) to build without
compiler warnings, even with additional warnings enabled. They
include

- Disabling string-function optimizations when glibc is used, as
  these produce compiler warnings when a string function is used
  within a call to assert ();

- Remove the "LL" suffix (added in C99) from 64-bit integer
  literals;

- Replace C++-style ("//") comments with C-style equivalents;

- Remove unused constant declarations that generated warnings;
  and

- Mark (or remove, from main ()) unused function parameters.
2015-08-03 22:10:23 +02:00
Simon South
db3646faef THRIFT-3288 c_glib: Unit tests: Enable warnings, improve automake-variable use
This change

- Enables the same comprehensive set of warnings ("-Wall -Wextra
  -pedantic") specified for the unit tests for C++ and

- Changes the use of automake variables (e.g. AM_CPPFLAGS) to more
  closely match their intended use, as specified in the automake
  documentation.
2015-08-03 22:10:22 +02:00
Simon South
89e65def89 THRIFT-3285 c_glib: Library: Build without compiler warnings
These changes allow the C (GLib) library to be built without
warnings from the compiler, even with extra compiler warnings
enabled. The changes involve

- Moving variable declarations to the top of every code block,

- Using unions instead of type-punning to follow strict-aliasing
  rules,

- Replacing variable-length array declarations with arrays
  allocated on the stack (using g_newa and g_alloca),

- Casting void pointers to a suitably sized data type before
  performing arithmetic on them,

- Replacing C++-style ("//") comments with C-style equivalents,
  and

- Removing an errant semicolon and comma.

This closes #576
2015-08-03 19:09:02 +02:00
Simon South
b62093db94 THRIFT-3285 c_glib: Library: Build with all warnings enabled
This matches the settings ("-Wall -Wextra -pedantic") used to build
the C++ library.
2015-08-03 19:07:42 +02:00
Simon South
31186c467a THRIFT-3285 c_glib: Library: Use AM_CPPFLAGS for include paths, not AM_CFLAGS
This follows the description of the two variables in the automake
documentation.
2015-08-03 19:07:42 +02:00
Jens Geyer
a2e0c5075d THRIFT-3260 multiple warnings in c_glib tutorial
Client: c_glib
Simon South <ssouth@simonsouth.com>

This closes #573

Here are additional changes that should really and truly resolve all the warnings generated when building the c_glib tutorial:

Compiler:
- Do not output a trailing comma in exception-enum definitions.
- Move variable declarations to avoid mixing declarations and code in generated code.
- Improve the readability of affected code blocks (and rely on indent_up and indent_down for indentation).
Library
- Use only C-style comments in headers included by clients.
Tutorial
- Move THRIFT_UNUSED_VAR calls to avoid mixing declarations and code.
2015-07-31 23:23:41 +02:00
Jens Geyer
482da722b9 THRIFT-3267 c_glib: "Critical" failure during unit tests
Client: c_glib
Patch: Simon South
2015-07-28 23:46:02 +02:00
Jens Geyer
1c1902788b THRIFT-3266 c_glib: Multiple compiler warnings building unit tests
Client: c_glib
Patch: Simon South

This closes #570
2015-07-28 23:15:18 +02:00
Jens Geyer
8c5fce9afa THRIFT-2917 "make clean" breaks test/c_glib
Client: c_glib
Patch: Simon South
2015-07-28 22:59:16 +02:00
Jens Geyer
8677719180 THRIFT-2957 warning: source file %s is in a subdirectory, but option 'subdir-objects' is disabled
Client: Compiler General
Patch: Simon South

This closes #563
2015-07-27 23:52:13 +02:00
Nobuaki Sukegawa
113b638790 THRIFT-3148 Markdown links to coding_standards are dead
This closes #491
2015-05-13 21:40:26 +02:00
Nobuaki Sukegawa
ef0a8fa62a THRIFT-3138 "make check" parallel execution is underministic 2015-05-10 18:25:56 +02:00
Jim King
79c9911b87 THRIFT-3084 add optional concurrent client limit enforcement to lib/cpp threaded servers 2015-04-30 19:48:15 +02:00
Roger Meier
3b99c970ad THRIFT-3106 CMake summary should give more information why a library is set to off
Patch: Pascal Bach
This closes #454
2015-04-20 22:49:48 +02:00
Marco Molteni
83494259d1 THRIFT-3099 cmake build is broken on FreeBSD 2015-04-16 22:23:27 +02:00
Roger Meier
8f27189dfd THRIFT-3090 cmake build is broken (set CMake version to 2.8.12) 2015-04-14 22:05:50 +02:00
Roger Meier
5af78c8776 Revert "THRIFT-3014 AppVeyor support - fix format"
This reverts commit 81b3c440c6.

commit included modified CMakeLists.txt files, as part from local test
2015-04-12 21:43:12 +02:00
Roger Meier
81b3c440c6 THRIFT-3014 AppVeyor support - fix format 2015-04-12 21:06:11 +02:00
Roger Meier
79e971e7de c_glib: fix some warnings 2015-04-12 13:11:33 +02:00
Konrad Grochowski
3bc6424c76 THRIFT-2724 - Coding standards template added all over project
Client: All
Patch: Konrad Grochowski

This closes #371
2015-02-05 12:15:19 +01:00
Jens Geyer
8bcfdd98ae THRIFT-2886 Integrate binary type in standard Thrift cross test
Client: C_glib, C++, D, Erlang, Go, Haskell, Lua, Java/Me, JavaScript, Node, Ocaml, Perl, PHP, Python, Ruby
Patch: Jens Geyer

This closes #341

Minimal server-side implementations and TODO stubs for various languages to let "make check" succeeed.
Not contained in this patch and still TODO:
- client side implementations, i.e. calls to testBinary() and appropriate tests
- server side hex printout missing for some languages
2015-01-03 17:37:54 +01:00
Pascal Bach
d5f87e1f21 CMake: Add CMake support for Thrift libraries
Currently the following libraries are supported:
- C++
- C_Glib
- Java (using Ant wrapper)

The compilers CMake file is adjusted to work with the new global CMakeLists.txt file.

Signed-off-by: Roger Meier <r.meier@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Also-by: Sergei Nikulov <sergey.nikulov@gmail.com>
2014-12-13 22:02:29 +01:00
Anatol Pomozov
4bf97c196a Do not drop CFLAGS from c_glib compilation
CFLAGS contains important flags. Dropping it introduces e.g. such issues:
https://sourceware.org/bugzilla/show_bug.cgi?id=13979

Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>

This closes #284
2014-12-02 00:10:11 +01:00
Roger Meier
3fa5d89e16 c_glib: remove -Werror 2014-11-02 12:19:54 +01:00
Roger Meier
035870d333 c_glib: fix automake dependencies 2014-10-22 23:43:05 +02:00
Roger Meier
81a1f996bc THRIFT-2602 fix missing dist files
- add automake 1.13 dependency to configure.ac and doc
- use serial-tests instead of .NOTPARALLEL (introduced by THRIFT-1829)

Patch: Roger Meier
2014-10-22 14:09:43 +02:00
Jens Geyer
79f988c27a THRIFT-2768: Whitespace Fixup
Client: General (Makefile.am)
Patch: Jens Geyer

Reverted makefile.am - tabs are not optional there
2014-10-03 20:42:54 +02:00