forked from SoarGroup/Soar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the copied XML code functionality to JSON
original commit messages: * adding tests * json tests
- Loading branch information
1 parent
0df0c75
commit 4a63133
Showing
22 changed files
with
1,125 additions
and
1,220 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.