Skip to content

Commit

Permalink
Change the copied XML code functionality to JSON
Browse files Browse the repository at this point in the history
original commit messages:
* adding tests
* json tests
  • Loading branch information
norbsoar authored and garfieldnate committed Dec 30, 2022
1 parent 0df0c75 commit 4a63133
Show file tree
Hide file tree
Showing 22 changed files with 1,125 additions and 1,220 deletions.
285 changes: 126 additions & 159 deletions Core/ElementJSON/src/ElementJSON.h

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions Core/ElementJSON/src/ElementJSONHandle.h
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
/////////////////////////////////////////////////////////////////
// ElementXML Handle file.
// ElementJSON Handle file.
//
// Author: Douglas Pearson, www.threepenny.net
// Date : August 2004
//
/////////////////////////////////////////////////////////////////

#ifndef ELEMENT_XML_HANDLE_H
#define ELEMENT_XML_HANDLE_H
#ifndef ELEMENT_JSON_HANDLE_H
#define ELEMENT_JSON_HANDLE_H

#include "portability.h"

#ifdef __cplusplus
extern "C" {
#endif

/* Define an ElementXML_Handle as a pointer to this empty structure to give users */
/* a typesafe way to pass ElementXML_Handle's in and out. In fact it's a pointer */
/* Define an ElementJSON_Handle as a pointer to this empty structure to give users */
/* a typesafe way to pass ElementJSON_Handle's in and out. In fact it's a pointer */
/* to a class, but that's not the client's business--to the client this is an */
/* arbitrary handle. If this is ever a problem, it can be typedef'd to a long. */
struct ElementXML_InterfaceStruct
struct ElementJSON_InterfaceStruct
{
intptr_t n; /* So that we compiles under 'C' */
};
typedef ElementXML_InterfaceStruct* ElementXML_Handle ;
typedef ElementJSON_InterfaceStruct* ElementJSON_Handle ;

#ifdef __cplusplus
} // extern C
#endif

#endif // ELEMENT_XML_HANDLE_H
#endif // ELEMENT_JSON_HANDLE_H
Loading

0 comments on commit 4a63133

Please sign in to comment.