summaryrefslogtreecommitdiff
path: root/library
Unidiff
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/backend/vobject.cpp7
-rw-r--r--library/backend/vobject_p.h15
2 files changed, 21 insertions, 1 deletions
diff --git a/library/backend/vobject.cpp b/library/backend/vobject.cpp
index dab128e..2f22c20 100644
--- a/library/backend/vobject.cpp
+++ b/library/backend/vobject.cpp
@@ -1305,2 +1305,7 @@ DLLEXPORT(void) writeVObjectsToFile(char *fname, VObject *list)
1305 1305
1306#ifndef __SHARP_COMP_
1307
1308// This function is not available in the Sharp ROM for SL 5500 !
1309// Therefore I have to move it into the header file.. (se)
1310
1306DLLEXPORT(const char *) vObjectTypeInfo(VObject *o) 1311DLLEXPORT(const char *) vObjectTypeInfo(VObject *o)
@@ -1312,3 +1317,3 @@ DLLEXPORT(const char *) vObjectTypeInfo(VObject *o)
1312} 1317}
1313 1318#endif
1314 1319
diff --git a/library/backend/vobject_p.h b/library/backend/vobject_p.h
index 0d0a2a8..bab22bb 100644
--- a/library/backend/vobject_p.h
+++ b/library/backend/vobject_p.h
@@ -400,4 +400,19 @@ extern VObject* Parse_MIME_FromFile(FILE *file);
400 400
401#define __SHARP_COMP_
402
403#ifndef __SHARP_COMP_
401extern DLLEXPORT(const char *) vObjectTypeInfo(VObject *o); 404extern DLLEXPORT(const char *) vObjectTypeInfo(VObject *o);
402 405
406#else
407// This function is not available in the Sharp ROM for SL 5500 !
408// Therefore I have to move it into the header file.. (se)
409
410inline const char* vObjectTypeInfo(VObject *o)
411{
412 const char *type = vObjectName( o );
413 if ( strcmp( type, "TYPE" ) == 0 )
414 type = vObjectStringZValue( o );
415 return type;
416}
417#endif
403 418