summaryrefslogtreecommitdiff
path: root/wince
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2001-12-29 21:38:59 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-29 20:17:55 +0000
commitcb69f87a007debfba124ee7db6ef7f6a2ac42df7 (patch)
treebbebb41aaeae6ba3d9971476a732fd1eb34f8792 /wince
parent9250d75a95295dd09aed581838f0b619792911cd (diff)
downloadperl-cb69f87a007debfba124ee7db6ef7f6a2ac42df7.tar.gz
from the non-ANSI comment police (was: it won't compile on win32)
Message-Id: <20011229203646.24CF.H.M.BRAND@hccnet.nl> (NetWare tree not touched because it's very //) p4raw-id: //depot/perl@13939
Diffstat (limited to 'wince')
-rw-r--r--wince/include/errno.h2
-rw-r--r--wince/include/netdb.h8
-rw-r--r--wince/include/sys/socket.h20
-rw-r--r--wince/include/sys/stat.h2
-rw-r--r--wince/perllib.c2
-rw-r--r--wince/perlmain.c4
-rw-r--r--wince/win32.h4
-rw-r--r--wince/win32iop.h2
-rw-r--r--wince/win32thread.c2
-rw-r--r--wince/win32thread.h2
-rw-r--r--wince/wince.c14
-rw-r--r--wince/wince.h18
-rw-r--r--wince/wincesck.c8
13 files changed, 44 insertions, 44 deletions
diff --git a/wince/include/errno.h b/wince/include/errno.h
index 4dba2d89d9..592816fbe2 100644
--- a/wince/include/errno.h
+++ b/wince/include/errno.h
@@ -24,7 +24,7 @@ extern int errno;
#define ENOMEM 12
#define EACCES 13
#define EFAULT 14
-#define EOSERR 15 // rk
+#define EOSERR 15 /* rk */
#define EBUSY 16
#define EEXIST 17
#define EXDEV 18
diff --git a/wince/include/netdb.h b/wince/include/netdb.h
index b0c5ea1949..43c03c7544 100644
--- a/wince/include/netdb.h
+++ b/wince/include/netdb.h
@@ -1,7 +1,7 @@
-// netdb.h
+/* netdb.h */
-// djl
-// Provide UNIX compatibility
+/* djl */
+/* Provide UNIX compatibility */
#ifndef _INC_NETDB
@@ -9,4 +9,4 @@
#include <sys/socket.h>
-#endif //_INC_NETDB
+#endif /* _INC_NETDB */
diff --git a/wince/include/sys/socket.h b/wince/include/sys/socket.h
index 2d6f7b8306..fbc6e098db 100644
--- a/wince/include/sys/socket.h
+++ b/wince/include/sys/socket.h
@@ -1,7 +1,7 @@
-// sys/socket.h
+/* sys/socket.h */
-// djl
-// Provide UNIX compatibility
+/* djl */
+/* Provide UNIX compatibility */
#ifndef _INC_SYS_SOCKET
#define _INC_SYS_SOCKET
@@ -51,10 +51,10 @@ typedef struct _OVERLAPPED {
#endif
#endif
-#endif //_WINDOWS_
-// #ifndef __GNUC__
+#endif /* _WINDOWS_ */
+/* #ifndef __GNUC__ */
#include <winsock.h>
-// #endif
+/* #endif */
#define ENOTSOCK WSAENOTSOCK
#undef HOST_NOT_FOUND
@@ -147,9 +147,9 @@ void win32_endprotoent(void);
void win32_endservent(void);
#ifndef WIN32SCK_IS_STDSCK
-//
-// direct to our version
-//
+
+/* direct to our version */
+
#define htonl win32_htonl
#define htons win32_htons
#define ntohl win32_ntohl
@@ -214,4 +214,4 @@ void win32_endservent(void);
}
#endif
-#endif // _INC_SYS_SOCKET
+#endif /* _INC_SYS_SOCKET */
diff --git a/wince/include/sys/stat.h b/wince/include/sys/stat.h
index 7a5e383fc9..2f5c6348d5 100644
--- a/wince/include/sys/stat.h
+++ b/wince/include/sys/stat.h
@@ -3,7 +3,7 @@
#include <sys/types.h>
-// stat.h
+/* stat.h */
#define _S_IFMT 0170000 /* file type mask */
#define _S_IFDIR 0040000 /* directory */
#define _S_IFCHR 0020000 /* character special */
diff --git a/wince/perllib.c b/wince/perllib.c
index 3d4d37e500..527103f086 100644
--- a/wince/perllib.c
+++ b/wince/perllib.c
@@ -1,4 +1,4 @@
-// Time-stamp: <01/08/01 20:58:55 keuchel@w2k>
+/* Time-stamp: <01/08/01 20:58:55 keuchel@w2k> */
#include "EXTERN.h"
#include "perl.h"
diff --git a/wince/perlmain.c b/wince/perlmain.c
index 86e6c95524..cebbfb3d0f 100644
--- a/wince/perlmain.c
+++ b/wince/perlmain.c
@@ -1,4 +1,4 @@
-// Time-stamp: <01/08/01 20:58:19 keuchel@w2k>
+/* Time-stamp: <01/08/01 20:58:19 keuchel@w2k> */
#include "EXTERN.h"
#include "perl.h"
@@ -14,7 +14,7 @@ int _CRT_glob = 0;
#endif
-// Called from w32console/wmain.c
+/* Called from w32console/wmain.c */
int
main(int argc, char **argv, char **env)
diff --git a/wince/win32.h b/wince/win32.h
index c9c3a037f1..b46fb2f76a 100644
--- a/wince/win32.h
+++ b/wince/win32.h
@@ -1,4 +1,4 @@
-// Time-stamp: <01/08/01 20:59:54 keuchel@w2k>
+/* Time-stamp: <01/08/01 20:59:54 keuchel@w2k> */
/* WIN32.H
*
@@ -116,7 +116,7 @@ struct utsname {
/* Define USE_SOCKETS_AS_HANDLES to enable emulation of windows sockets as
* real filehandles. XXX Should always be defined (the other version is untested) */
-//#define USE_SOCKETS_AS_HANDLES
+/* #define USE_SOCKETS_AS_HANDLES */
/* read() and write() aren't transparent for socket handles */
#define PERL_SOCK_SYSREAD_IS_RECV
diff --git a/wince/win32iop.h b/wince/win32iop.h
index 3744168a96..020f2387fa 100644
--- a/wince/win32iop.h
+++ b/wince/win32iop.h
@@ -1,4 +1,4 @@
-// Time-stamp: <01/08/01 21:00:16 keuchel@w2k>
+/* Time-stamp: <01/08/01 21:00:16 keuchel@w2k> */
#ifndef WIN32IOP_H
#define WIN32IOP_H
diff --git a/wince/win32thread.c b/wince/win32thread.c
index a94ffa4234..4675822c66 100644
--- a/wince/win32thread.c
+++ b/wince/win32thread.c
@@ -1,4 +1,4 @@
-// Time-stamp: <01/08/01 21:00:29 keuchel@w2k>
+/* Time-stamp: <01/08/01 21:00:29 keuchel@w2k> */
#include "EXTERN.h"
#include "perl.h"
diff --git a/wince/win32thread.h b/wince/win32thread.h
index adae6180e7..33e11a5c64 100644
--- a/wince/win32thread.h
+++ b/wince/win32thread.h
@@ -1,4 +1,4 @@
-// Time-stamp: <01/08/01 21:00:36 keuchel@w2k>
+/* Time-stamp: <01/08/01 21:00:36 keuchel@w2k> */
#ifndef _WIN32THREAD_H
#define _WIN32THREAD_H
diff --git a/wince/wince.c b/wince/wince.c
index c1375817b8..b6b9f140db 100644
--- a/wince/wince.c
+++ b/wince/wince.c
@@ -871,8 +871,8 @@ win32_fseek(FILE *pf,long offset,int origin)
return fseek(pf, offset, origin);
}
-// fpos_t seems to be int64 on hpc pro! Really stupid.
-// But maybe someday there will be such large disks in a hpc...
+/* fpos_t seems to be int64 on hpc pro! Really stupid. */
+/* But maybe someday there will be such large disks in a hpc... */
DllExport int
win32_fgetpos(FILE *pf, fpos_t *p)
{
@@ -1233,7 +1233,7 @@ win32_dynaload(const char* filename)
return hModule;
}
-// this is needed by Cwd.pm...
+/* this is needed by Cwd.pm... */
static
XS(w32_GetCwd)
@@ -1293,7 +1293,7 @@ XS(w32_GetOSVersion)
XPUSHs(newSViv(osver.dwMajorVersion));
XPUSHs(newSViv(osver.dwMinorVersion));
XPUSHs(newSViv(osver.dwBuildNumber));
- // WINCE = 3
+ /* WINCE = 3 */
XPUSHs(newSViv(osver.dwPlatformId));
PUTBACK;
}
@@ -1560,12 +1560,12 @@ wce_hitreturn()
return;
}
-//////////////////////////////////////////////////////////////////////
+/* //////////////////////////////////////////////////////////////////// */
void
win32_argv2utf8(int argc, char** argv)
{
- // do nothing...
+ /* do nothing... */
}
void
@@ -1600,7 +1600,7 @@ Perl_sys_intern_clear(pTHX)
# endif
}
-//////////////////////////////////////////////////////////////////////
+/* //////////////////////////////////////////////////////////////////// */
#undef getcwd
diff --git a/wince/wince.h b/wince/wince.h
index dec518b280..29ec27472b 100644
--- a/wince/wince.h
+++ b/wince/wince.h
@@ -1,17 +1,17 @@
-// wince.h
-//
-// Time-stamp: <01/08/01 20:48:08 keuchel@w2k>
+/* wince.h */
-// This file includes extracts from the celib-headers, because
-// the celib-headers produces macro conflicts with defines in
-// win32iop.h etc
+/* Time-stamp: <01/08/01 20:48:08 keuchel@w2k> */
+
+/* This file includes extracts from the celib-headers, because */
+/* the celib-headers produces macro conflicts with defines in */
+/* win32iop.h etc */
#ifndef WINCE_H
#define WINCE_H 1
#include "celib_defs.h"
-// include local copies of celib headers...
+/* include local copies of celib headers... */
#include "errno.h"
#include "sys/stat.h"
#include "time.h"
@@ -38,7 +38,7 @@ XCE_EXPORT void XCEShowMessageA(const char *fmt, ...);
#define gmtime xcegmtime
#define localtime xcelocaltime
#define asctime xceasctime
-//#define utime xceutime
+/* #define utime xceutime */
#define futime xcefutime
#define ftime xceftime
#define ctime xcectime
@@ -113,7 +113,7 @@ XCE_EXPORT DWORD XCEAPI XCEGetModuleFileNameA(HMODULE hModule, LPTSTR lpName, DW
XCE_EXPORT HMODULE XCEAPI XCEGetModuleHandleA(const char *lpName);
XCE_EXPORT FARPROC XCEAPI XCEGetProcAddressA(HMODULE hMod, const char *name);
-//////////////////////////////////////////////////////////////////////
+/* //////////////////////////////////////////////////////////////////// */
#define getgid xcegetgid
#define getegid xcegetegid
diff --git a/wince/wincesck.c b/wince/wincesck.c
index beb7489e4f..003a250dd6 100644
--- a/wince/wincesck.c
+++ b/wince/wincesck.c
@@ -1,4 +1,4 @@
-// Time-stamp: <01/08/01 21:01:12 keuchel@w2k>
+/* Time-stamp: <01/08/01 21:01:12 keuchel@w2k> */
/* wincesck.c
*
@@ -10,7 +10,7 @@
* License or the Artistic License, as specified in the README file.
*/
-// The socket calls use fd functions from celib...
+/* The socket calls use fd functions from celib... */
#define WIN32IO_IS_STDIO
#define WIN32SCK_IS_STDSCK
@@ -50,7 +50,7 @@ XCE_EXPORT struct protoent *xcegetprotobynumber(int number);
#define getprotobyname xcegetprotobyname
#define getprotobynumber xcegetprotobynumber
-// uses fdtab...
+/* uses fdtab... */
#include "cesocket2.h"
#endif
@@ -234,7 +234,7 @@ win32_select(int nfds, Perl_fd_set* rd, Perl_fd_set* wr,
Perl_fd_set* ex, const struct timeval* timeout)
{
StartSockets();
- // select not yet fixed
+ /* select not yet fixed */
errno = ENOSYS;
return -1;
}