summaryrefslogtreecommitdiff
path: root/os2/OS2/PrfDB/PrfDB.xs
diff options
context:
space:
mode:
Diffstat (limited to 'os2/OS2/PrfDB/PrfDB.xs')
-rw-r--r--os2/OS2/PrfDB/PrfDB.xs22
1 files changed, 17 insertions, 5 deletions
diff --git a/os2/OS2/PrfDB/PrfDB.xs b/os2/OS2/PrfDB/PrfDB.xs
index 13123200a2..e747fcf377 100644
--- a/os2/OS2/PrfDB/PrfDB.xs
+++ b/os2/OS2/PrfDB/PrfDB.xs
@@ -15,7 +15,7 @@ extern "C" {
#define Prf_Close(hini) (!CheckWinError(PrfCloseProfile(hini)))
SV *
-Prf_Get(HINI hini, PSZ app, PSZ key) {
+Prf_Get(pTHX_ HINI hini, PSZ app, PSZ key) {
ULONG len;
BOOL rc;
SV *sv;
@@ -33,7 +33,7 @@ Prf_Get(HINI hini, PSZ app, PSZ key) {
return sv;
}
-U32
+I32
Prf_GetLength(HINI hini, PSZ app, PSZ key) {
U32 len;
@@ -51,7 +51,7 @@ Prf_GetLength(HINI hini, PSZ app, PSZ key) {
: HINI_PROFILE)
SV*
-Prf_Profiles()
+Prf_Profiles(pTHX)
{
AV *av = newAV();
SV *rv;
@@ -70,7 +70,7 @@ Prf_Profiles()
}
BOOL
-Prf_SetUser(SV *sv)
+Prf_SetUser(pTHX_ SV *sv)
{
char user[257];
char system[257];
@@ -101,6 +101,10 @@ Prf_Get(hini, app, key)
HINI hini;
PSZ app;
PSZ key;
+CODE:
+ RETVAL = Prf_Get(aTHX_ hini, app, key);
+OUTPUT:
+ RETVAL
int
Prf_Set(hini, app, key, s, l = (SvPOK(ST(3)) ? SvCUR(ST(3)): -1))
@@ -110,7 +114,7 @@ Prf_Set(hini, app, key, s, l = (SvPOK(ST(3)) ? SvCUR(ST(3)): -1))
PSZ s;
ULONG l;
-U32
+I32
Prf_GetLength(hini, app, key)
HINI hini;
PSZ app;
@@ -122,10 +126,18 @@ Prf_System(key)
SV*
Prf_Profiles()
+CODE:
+ RETVAL = Prf_Profiles(aTHX);
+OUTPUT:
+ RETVAL
BOOL
Prf_SetUser(sv)
SV *sv
+CODE:
+ RETVAL = Prf_SetUser(aTHX_ sv);
+OUTPUT:
+ RETVAL
BOOT:
Acquire_hab();