Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

patch LibreDWG - Tasks: task #12284, compile with -std=c99

  • Loading branch information...
commit 3c0e02f8f6837d6f3eac6ef9028ab3d3994e8dfa 1 parent d0b62c9
@h4ck3rm1k3 authored
Showing with 7 additions and 5 deletions.
  1. +5 −3 src/decode.c
  2. +0 −2  src/decode_r2007.c
  3. +2 −0  src/encode.c
View
8 src/decode.c
@@ -277,6 +277,8 @@ resolve_objectref_vector(Dwg_Data * dwg);
int decode_R13_R15(Bit_Chain* dat, Dwg_Data * dwg); // froward
int read_r2007_meta_data(Bit_Chain *dat, Dwg_Data *dwg);
+int decode_R2004(Bit_Chain* dat, Dwg_Data * dwg); // forward
+int decode_R2007(Bit_Chain* dat, Dwg_Data * dwg); // forward
/*--------------------------------------------------------------------------------
* Public variables
@@ -2136,7 +2138,7 @@ dwg_resolve_handle(Dwg_Data* dwg, long unsigned int absref)
return 0;
}
-static Dwg_Object_Ref *
+inline Dwg_Object_Ref *
dwg_decode_handleref(Bit_Chain * dat, Dwg_Object * obj, Dwg_Data* dwg)
{
// Welcome to the house of evil code!
@@ -2205,7 +2207,7 @@ dwg_decode_handleref(Bit_Chain * dat, Dwg_Object * obj, Dwg_Data* dwg)
return ref;
}
-static Dwg_Object_Ref *
+inline Dwg_Object_Ref *
dwg_decode_handleref_with_code(Bit_Chain * dat, Dwg_Object * obj, Dwg_Data* dwg, unsigned int code)
{
Dwg_Object_Ref * ref;
@@ -2237,7 +2239,7 @@ dwg_decode_header_variables(Bit_Chain* dat, Dwg_Data * dwg)
#include "header_variables.spec"
}
-static void
+inline void
dwg_decode_common_entity_handle_data(Bit_Chain * dat, Dwg_Object * obj)
{
View
2  src/decode_r2007.c
@@ -25,8 +25,6 @@
static unsigned int loglevel;
-#define DWG_LOGLEVEL loglevel
-
typedef struct r2007_file_header
{
int64_t header_size; // 0x70
View
2  src/encode.c
@@ -248,6 +248,8 @@ void
dwg_encode_handleref_with_code(Bit_Chain * dat, Dwg_Object * obj,Dwg_Data* dwg, Dwg_Object_Ref* ref, int code);
void
dwg_encode_add_object(Dwg_Object * obj, Bit_Chain * dat, long unsigned int address);
+void
+dwg_encode_common_entity_handle_data(Bit_Chain * dat, Dwg_Object * obj);
/*--------------------------------------------------------------------------------
* Public variables
Please sign in to comment.
Something went wrong with that request. Please try again.