summaryrefslogtreecommitdiff
path: root/source4/lib/wmi
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-08 07:22:14 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-08 07:24:14 +0200
commitf007f68f70f79be3f601bbe0d95748331ab557f2 (patch)
tree7af7aae73f6cddef8052d9079d1b8839ce2fff9e /source4/lib/wmi
parent2a6c5c8edbc36ae68bc2ffbafcef5513fcdafe5a (diff)
downloadsamba-f007f68f70f79be3f601bbe0d95748331ab557f2.tar.gz
samba-f007f68f70f79be3f601bbe0d95748331ab557f2.tar.bz2
samba-f007f68f70f79be3f601bbe0d95748331ab557f2.zip
s4:lib/wmi: avoid '//' comments
The compiler on openindiana doesn't like them. metze
Diffstat (limited to 'source4/lib/wmi')
-rw-r--r--source4/lib/wmi/wmi_wrap.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source4/lib/wmi/wmi_wrap.c b/source4/lib/wmi/wmi_wrap.c
index ee5a8fcb0f..dfbf63635b 100644
--- a/source4/lib/wmi/wmi_wrap.c
+++ b/source4/lib/wmi/wmi_wrap.c
@@ -186,18 +186,18 @@
In old swig versions, you usually write code as:
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
- // success code
+ /* success code */
} else {
- //fail code
+ /*fail code */
}
Now you can be more explicit as:
int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
if (SWIG_IsOK(res)) {
- // success code
+ /* success code */
} else {
- // fail code
+ /* fail code */
}
that seems to be the same, but now you can also do
@@ -205,7 +205,7 @@
Type *ptr;
int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
if (SWIG_IsOK(res)) {
- // success code
+ /* success code */
if (SWIG_IsNewObj(res) {
...
delete *ptr;
@@ -213,7 +213,7 @@
...
}
} else {
- // fail code
+ /* fail code */
}
I.e., now SWIG_ConvertPtr can return new objects and you can
@@ -246,8 +246,8 @@
and you call
- food(1) // cast rank '1' (1 -> 1.0)
- fooi(1) // cast rank '0'
+ food(1) /* cast rank '1' (1 -> 1.0) */
+ fooi(1) /* cast rank '0' */
just use the SWIG_AddCast()/SWIG_CheckState()