Skip to content

Commit 66756c7

Browse files
authored
Merge pull request #29 from lian-bo/master
Fix the failure of reporting "undefined symbol: dmixml_GetContent"
2 parents 599f99c + 3d17232 commit 66756c7

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#. $AutoHeaderSerial::20100225 $
3939
#. ******* AUTOHEADER END v1.2 *******
4040

41-
PY_BIN := python2
41+
PY_BIN := python3
4242
VERSION := $(shell cd src;$(PY_BIN) -c "from setup_common import *; print(get_version());")
4343
PACKAGE := python-dmidecode
4444
PY_VER := $(shell $(PY_BIN) -c 'import sys; print("%d.%d"%sys.version_info[0:2])')

src/dmixml.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ xmlNode *__dmixml_FindNodeByAttr(xmlNode *, const char *, const char *, const ch
7575

7676

7777
xmlNode *dmixml_FindNode(xmlNode *, const char *key);
78-
inline char *dmixml_GetContent(xmlNode *node);
79-
inline char *dmixml_GetNodeContent(xmlNode *node, const char *key);
78+
char *dmixml_GetContent(xmlNode *node);
79+
char *dmixml_GetNodeContent(xmlNode *node, const char *key);
8080
char *dmixml_GetXPathContent(Log_t *logp, char *buf, size_t buflen, xmlXPathObject *xpo, int idx);
8181

8282
#endif

src/xmlpythonizer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ ptzMAP *dmiMAP_ParseMappingXML_GroupName(Log_t *logp, xmlDoc *xmlmap, const char
603603
* @param const char * String which contains the value to be converted to a Python value
604604
* @return PyObject * The converted value as a Python object
605605
*/
606-
inline PyObject *StringToPyObj(Log_t *logp, ptzMAP *val_m, const char *instr) {
606+
static inline PyObject *StringToPyObj(Log_t *logp, ptzMAP *val_m, const char *instr) {
607607
PyObject *value;
608608
const char *workstr = NULL;
609609

@@ -772,7 +772,7 @@ char *_get_key_value(Log_t *logp, char *key, size_t buflen,
772772
* @param ptzMAP* Pointer to the current mapping entry being parsed
773773
* @param xmlXPathObject* Pointer to XPath object containing the data value(s) for the dictionary
774774
*/
775-
inline void _add_xpath_result(Log_t *logp, PyObject *pydat, xmlXPathContext *xpctx, ptzMAP *map_p, xmlXPathObject *value) {
775+
static inline void _add_xpath_result(Log_t *logp, PyObject *pydat, xmlXPathContext *xpctx, ptzMAP *map_p, xmlXPathObject *value) {
776776
int i = 0;
777777
char *key = NULL;
778778
char *val = NULL;

unit-tests/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PY_BIN := python2
1+
PY_BIN := python3
22

33
test :
44
$(PY_BIN) unit -vv

0 commit comments

Comments
 (0)