summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-07-04 16:08:48 +0200
committerAnatol Belski <ab@php.net>2017-07-04 16:08:48 +0200
commita56700043e9348a0c1a3a934b974339869de28eb (patch)
tree1abedaaf1b1f048b62684531b7f03980cbbbec8b /win32
parent0965a4ef9ffe37e7224f52a6902c3805582945ed (diff)
downloadphp-git-a56700043e9348a0c1a3a934b974339869de28eb.tar.gz
vim folds and modelines
Diffstat (limited to 'win32')
-rw-r--r--win32/console.c24
-rw-r--r--win32/console.h9
-rw-r--r--win32/cp_enc_map_gen.c8
-rw-r--r--win32/dllmain.c8
-rw-r--r--win32/fnmatch.h9
-rw-r--r--win32/ftok.c12
-rw-r--r--win32/getrusage.h8
-rw-r--r--win32/glob.h9
-rw-r--r--win32/globals.c12
-rw-r--r--win32/grp.h9
-rw-r--r--win32/inet.h9
-rw-r--r--win32/ipc.h9
-rw-r--r--win32/nice.h8
-rw-r--r--win32/param.h9
-rw-r--r--win32/php_inttypes.h8
-rw-r--r--win32/php_registry.h9
-rw-r--r--win32/php_stdbool.h9
-rw-r--r--win32/php_stdint.h9
-rw-r--r--win32/php_win32_globals.h8
-rw-r--r--win32/readdir.c20
-rw-r--r--win32/readdir.h9
-rw-r--r--win32/registry.c20
-rw-r--r--win32/resource.h9
-rw-r--r--win32/select.h9
-rw-r--r--win32/sendmail.h9
-rw-r--r--win32/signal.h9
-rw-r--r--win32/sockets.h9
-rw-r--r--win32/syslog.h9
-rw-r--r--win32/time.c24
-rw-r--r--win32/time.h9
-rw-r--r--win32/unistd.h9
-rw-r--r--win32/winutil.h8
32 files changed, 291 insertions, 48 deletions
diff --git a/win32/console.c b/win32/console.c
index 07e6afa940..c321a37023 100644
--- a/win32/console.c
+++ b/win32/console.c
@@ -22,7 +22,7 @@
PHP_WINUTIL_API BOOL php_win32_console_fileno_is_console(zend_long fileno)
-{
+{/*{{{*/
BOOL result = FALSE;
HANDLE handle = (HANDLE) _get_osfhandle(fileno);
@@ -33,10 +33,10 @@ PHP_WINUTIL_API BOOL php_win32_console_fileno_is_console(zend_long fileno)
}
}
return result;
-}
+}/*}}}*/
PHP_WINUTIL_API BOOL php_win32_console_fileno_has_vt100(zend_long fileno)
-{
+{/*{{{*/
BOOL result = FALSE;
HANDLE handle = (HANDLE) _get_osfhandle(fileno);
@@ -55,10 +55,10 @@ PHP_WINUTIL_API BOOL php_win32_console_fileno_has_vt100(zend_long fileno)
}
}
return result;
-}
+}/*}}}*/
PHP_WINUTIL_API BOOL php_win32_console_fileno_set_vt100(zend_long fileno, BOOL enable)
-{
+{/*{{{*/
BOOL result = FALSE;
HANDLE handle = (HANDLE) _get_osfhandle(fileno);
@@ -90,10 +90,10 @@ PHP_WINUTIL_API BOOL php_win32_console_fileno_set_vt100(zend_long fileno, BOOL e
}
}
return result;
-}
+}/*}}}*/
PHP_WINUTIL_API BOOL php_win32_console_is_own(void)
-{
+{/*{{{*/
CONSOLE_SCREEN_BUFFER_INFO csbi;
if (GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi) && !IsDebuggerPresent()) {
@@ -101,5 +101,13 @@ PHP_WINUTIL_API BOOL php_win32_console_is_own(void)
}
return FALSE;
-}
+}/*}}}*/
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/console.h b/win32/console.h
index ab62a6ba35..c2a7349375 100644
--- a/win32/console.h
+++ b/win32/console.h
@@ -62,3 +62,12 @@ PHP_WINUTIL_API BOOL php_win32_console_fileno_set_vt100(zend_long fileno, BOOL e
PHP_WINUTIL_API BOOL php_win32_console_is_own(void);
#endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/cp_enc_map_gen.c b/win32/cp_enc_map_gen.c
index e99ef75faa..6cdb8fd88f 100644
--- a/win32/cp_enc_map_gen.c
+++ b/win32/cp_enc_map_gen.c
@@ -248,3 +248,11 @@ main(int argc, char **argv)
return 0;
}
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/dllmain.c b/win32/dllmain.c
index 1c34fb1b26..64187050d5 100644
--- a/win32/dllmain.c
+++ b/win32/dllmain.c
@@ -87,3 +87,11 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID dummy)
return ret;
}
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/fnmatch.h b/win32/fnmatch.h
index a8e7d66129..83f64a0405 100644
--- a/win32/fnmatch.h
+++ b/win32/fnmatch.h
@@ -52,3 +52,12 @@
PHPAPI int fnmatch(const char *pattern, const char *string, int flags);
#endif /* !_FNMATCH_H_ */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/ftok.c b/win32/ftok.c
index 14431214f3..dd68c2e24e 100644
--- a/win32/ftok.c
+++ b/win32/ftok.c
@@ -24,7 +24,7 @@
PHP_WIN32_IPC_API key_t
ftok(const char *pathname, int proj_id)
-{
+{/*{{{*/
HANDLE fh;
struct stat st;
BY_HANDLE_FILE_INFORMATION bhfi;
@@ -48,5 +48,13 @@ ftok(const char *pathname, int proj_id)
CloseHandle(fh);
return ret;
-}
+}/*}}}*/
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/getrusage.h b/win32/getrusage.h
index 43e2d474de..9f667ca36c 100644
--- a/win32/getrusage.h
+++ b/win32/getrusage.h
@@ -115,3 +115,11 @@ PHPAPI int getrusage(int who, struct rusage *usage);
#endif
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/glob.h b/win32/glob.h
index 81280ea645..1c10fc6773 100644
--- a/win32/glob.h
+++ b/win32/glob.h
@@ -101,3 +101,12 @@ PHPAPI int glob(const char *, int, int (*)(const char *, int), glob_t *);
PHPAPI void globfree(glob_t *);
END_EXTERN_C()
#endif /* !_GLOB_H_ */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/globals.c b/win32/globals.c
index 532908c706..b5f1b9430e 100644
--- a/win32/globals.c
+++ b/win32/globals.c
@@ -29,17 +29,17 @@ php_win32_core_globals the_php_win32_core_globals;
#endif
void php_win32_core_globals_ctor(void *vg)
-{
+{/*{{{*/
php_win32_core_globals *wg = (php_win32_core_globals*)vg;
memset(wg, 0, sizeof(*wg));
wg->mail_socket = INVALID_SOCKET;
wg->log_source = INVALID_HANDLE_VALUE;
-}
+}/*}}}*/
void php_win32_core_globals_dtor(void *vg)
-{
+{/*{{{*/
php_win32_core_globals *wg = (php_win32_core_globals*)vg;
if (wg->registry_key) {
@@ -60,11 +60,11 @@ void php_win32_core_globals_dtor(void *vg)
closesocket(wg->mail_socket);
wg->mail_socket = INVALID_SOCKET;
}
-}
+}/*}}}*/
PHP_RSHUTDOWN_FUNCTION(win32_core_globals)
-{
+{/*{{{*/
php_win32_core_globals *wg =
#ifdef ZTS
ts_resource(php_win32_core_globals_id)
@@ -76,7 +76,7 @@ PHP_RSHUTDOWN_FUNCTION(win32_core_globals)
closelog();
return SUCCESS;
-}
+}/*}}}*/
/*
* Local variables:
diff --git a/win32/grp.h b/win32/grp.h
index 11c3027bf3..8a086a5bbf 100644
--- a/win32/grp.h
+++ b/win32/grp.h
@@ -24,3 +24,12 @@ struct group {
int gr_gid;
char **gr_mem;
};
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/inet.h b/win32/inet.h
index 74e10c489e..f8b2704e0e 100644
--- a/win32/inet.h
+++ b/win32/inet.h
@@ -21,3 +21,12 @@
#include <Winsock2.h>
PHPAPI int inet_aton(const char *cp, struct in_addr *inp);
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/ipc.h b/win32/ipc.h
index 4c699726a0..65d93645cc 100644
--- a/win32/ipc.h
+++ b/win32/ipc.h
@@ -31,3 +31,12 @@ PHP_WIN32_IPC_API key_t ftok(const char *path, int id);
#endif /* PHP_WIN32_IPC_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/nice.h b/win32/nice.h
index 3809139052..0c61f30fff 100644
--- a/win32/nice.h
+++ b/win32/nice.h
@@ -23,3 +23,11 @@ PHPAPI int nice(zend_long);
#endif
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/param.h b/win32/param.h
index f312b03b18..885a3b66a4 100644
--- a/win32/param.h
+++ b/win32/param.h
@@ -15,3 +15,12 @@
#define MAXHOSTNAMELEN 64
#define howmany(x,y) (((x)+((y)-1))/(y))
#define roundup(x,y) ((((x)+((y)-1))/(y))*(y))
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/php_inttypes.h b/win32/php_inttypes.h
index 4130649cf2..878d13fffb 100644
--- a/win32/php_inttypes.h
+++ b/win32/php_inttypes.h
@@ -312,3 +312,11 @@ imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom)
#include <inttypes.h>
#endif
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/php_registry.h b/win32/php_registry.h
index 5feb3b3504..f0df0b15df 100644
--- a/win32/php_registry.h
+++ b/win32/php_registry.h
@@ -24,3 +24,12 @@ void UpdateIniFromRegistry(char *path);
char *GetIniPathFromRegistry();
#endif /* PHP_REGISTRY_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/php_stdbool.h b/win32/php_stdbool.h
index cc853c59c1..5b73d985ae 100644
--- a/win32/php_stdbool.h
+++ b/win32/php_stdbool.h
@@ -9,3 +9,12 @@
# define __bool_true_false_are_defined 1
# endif
#endif /* _STDBOOL_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/php_stdint.h b/win32/php_stdint.h
index e7615f1479..bc936bf111 100644
--- a/win32/php_stdint.h
+++ b/win32/php_stdint.h
@@ -263,3 +263,12 @@ static __inline int64_t llabs(int64_t i)
#ifndef u_char
typedef unsigned __int8 u_char;
#endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/php_win32_globals.h b/win32/php_win32_globals.h
index 80441f0ec2..b9d1e3fe09 100644
--- a/win32/php_win32_globals.h
+++ b/win32/php_win32_globals.h
@@ -56,3 +56,11 @@ PHP_RSHUTDOWN_FUNCTION(win32_core_globals);
#endif
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/readdir.c b/win32/readdir.c
index 93ece88dae..d11359e594 100644
--- a/win32/readdir.c
+++ b/win32/readdir.c
@@ -25,7 +25,7 @@ extern "C" {
#endif
DIR *opendir(const char *dir)
-{
+{/*{{{*/
DIR *dp;
wchar_t *filespecw, *resolvedw;
HANDLE handle;
@@ -82,10 +82,10 @@ DIR *opendir(const char *dir)
free(resolvedw);
return dp;
-}
+}/*}}}*/
struct dirent *readdir(DIR *dp)
-{
+{/*{{{*/
char *_tmp;
size_t reclen;
@@ -115,10 +115,10 @@ struct dirent *readdir(DIR *dp)
dp->dent.d_off = dp->offset;
return &(dp->dent);
-}
+}/*}}}*/
int readdir_r(DIR *dp, struct dirent *entry, struct dirent **result)
-{
+{/*{{{*/
char *_tmp;
size_t reclen;
@@ -156,10 +156,10 @@ int readdir_r(DIR *dp, struct dirent *entry, struct dirent **result)
*result = &dp->dent;
return 0;
-}
+}/*}}}*/
int closedir(DIR *dp)
-{
+{/*{{{*/
if (!dp)
return 0;
/* It is valid to scan an empty directory but we have an invalid
@@ -175,10 +175,10 @@ int closedir(DIR *dp)
free(dp);
return 0;
-}
+}/*}}}*/
int rewinddir(DIR *dp)
-{
+{/*{{{*/
/* Re-set to the beginning */
wchar_t *filespecw;
HANDLE handle;
@@ -209,7 +209,7 @@ int rewinddir(DIR *dp)
dp->handle = handle;
return 0;
-}
+}/*}}}*/
#ifdef __cplusplus
}
diff --git a/win32/readdir.h b/win32/readdir.h
index aa485fb7f3..0ed7b1d640 100644
--- a/win32/readdir.h
+++ b/win32/readdir.h
@@ -48,3 +48,12 @@ int rewinddir(DIR *);
#endif
#endif /* READDIR_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/registry.c b/win32/registry.c
index 5b6dc8f8aa..2a87fc9372 100644
--- a/win32/registry.c
+++ b/win32/registry.c
@@ -41,7 +41,7 @@ static const char* registry_keys[] = {
};
static int OpenPhpRegistryKey(char* sub_key, HKEY *hKey)
-{
+{/*{{{*/
const char **key_name = registry_keys;
if (sub_key) {
@@ -73,10 +73,10 @@ static int OpenPhpRegistryKey(char* sub_key, HKEY *hKey)
}
}
return 0;
-}
+}/*}}}*/
static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_len, HashTable *parent_ht)
-{
+{/*{{{*/
DWORD keys, values, max_key, max_name, max_value;
int ret = 0;
HashTable *ht = NULL;
@@ -168,19 +168,19 @@ static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_
}
}
return ret;
-}
+}/*}}}*/
static void delete_internal_hashtable(zval *zv)
-{
+{/*{{{*/
HashTable *ht = (HashTable *)Z_PTR_P(zv);
zend_hash_destroy(ht);
free(ht);
-}
+}/*}}}*/
#define RegNotifyFlags (REG_NOTIFY_CHANGE_NAME | REG_NOTIFY_CHANGE_ATTRIBUTES | REG_NOTIFY_CHANGE_LAST_SET)
void UpdateIniFromRegistry(char *path)
-{
+{/*{{{*/
char *p, *orig_path;
int path_len;
@@ -277,12 +277,12 @@ void UpdateIniFromRegistry(char *path)
}
efree(orig_path);
-}
+}/*}}}*/
#define PHPRC_REGISTRY_NAME "IniFilePath"
char *GetIniPathFromRegistry()
-{
+{/*{{{*/
char *reg_location = NULL;
HKEY hKey;
@@ -298,7 +298,7 @@ char *GetIniPathFromRegistry()
RegCloseKey(hKey);
}
return reg_location;
-}
+}/*}}}*/
/*
* Local variables:
diff --git a/win32/resource.h b/win32/resource.h
index a7a11de7e4..ef17e01d1c 100644
--- a/win32/resource.h
+++ b/win32/resource.h
@@ -13,3 +13,12 @@
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/select.h b/win32/select.h
index ef91684363..1250444055 100644
--- a/win32/select.h
+++ b/win32/select.h
@@ -21,3 +21,12 @@
#include "php_network.h"
PHPAPI int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
diff --git a/win32/sendmail.h b/win32/sendmail.h
index bb502cb7dd..47c89231cb 100644
--- a/win32/sendmail.h
+++ b/win32/sendmail.h
@@ -47,3 +47,12 @@ static int Ack(char **server_response);
static unsigned long GetAddr(LPSTR szHost);
static int FormatEmailAddress(char* Buf, char* EmailAddress, char* FormatString);
#endif /* sendmail_h */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/signal.h b/win32/signal.h
index ec739527ac..dd8c1091cc 100644
--- a/win32/signal.h
+++ b/win32/signal.h
@@ -8,3 +8,12 @@
#define SIGPROF 27 /* profiling time alarm */
#endif /* PHP_WIN32_SIGNAL_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/sockets.h b/win32/sockets.h
index f8ede714a6..4c1237ce8b 100644
--- a/win32/sockets.h
+++ b/win32/sockets.h
@@ -24,3 +24,12 @@
/* Code originally from ext/sockets */
PHPAPI int socketpair(int domain, int type, int protocol, SOCKET sock[2]);
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/syslog.h b/win32/syslog.h
index 56cae51e98..104c4b75ff 100644
--- a/win32/syslog.h
+++ b/win32/syslog.h
@@ -76,3 +76,12 @@ extern void syslog(int, const char *, ...);
#endif /* SYSLOG_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/time.c b/win32/time.c
index a0ed1b344e..58f4230c50 100644
--- a/win32/time.c
+++ b/win32/time.c
@@ -31,7 +31,7 @@ static MyGetSystemTimeAsFileTime timefunc = NULL;
#ifdef PHP_EXPORTS
static zend_always_inline MyGetSystemTimeAsFileTime get_time_func(void)
-{
+{/*{{{*/
MyGetSystemTimeAsFileTime timefunc = NULL;
HMODULE hMod = GetModuleHandle("kernel32.dll");
@@ -49,16 +49,16 @@ static zend_always_inline MyGetSystemTimeAsFileTime get_time_func(void)
}
return timefunc;
-}
+}/*}}}*/
void php_win32_init_gettimeofday(void)
-{
+{/*{{{*/
timefunc = get_time_func();
-}
+}/*}}}*/
#endif
static zend_always_inline int getfilesystemtime(struct timeval *tv)
-{
+{/*{{{*/
FILETIME ft;
unsigned __int64 ff = 0;
ULARGE_INTEGER fft;
@@ -81,10 +81,10 @@ static zend_always_inline int getfilesystemtime(struct timeval *tv)
tv->tv_usec = (long)(ff % 1000000Ui64);
return 0;
-}
+}/*}}}*/
PHPAPI int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Info)
-{
+{/*{{{*/
/* Get the time, if they want it */
if (time_Info != NULL) {
getfilesystemtime(time_Info);
@@ -97,10 +97,10 @@ PHPAPI int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Inf
}
/* And return */
return 0;
-}
+}/*}}}*/
PHPAPI int usleep(unsigned int useconds)
-{
+{/*{{{*/
HANDLE timer;
LARGE_INTEGER due;
@@ -111,17 +111,17 @@ PHPAPI int usleep(unsigned int useconds)
WaitForSingleObject(timer, INFINITE);
CloseHandle(timer);
return 0;
-}
+}/*}}}*/
PHPAPI int nanosleep( const struct timespec * rqtp, struct timespec * rmtp )
-{
+{/*{{{*/
if (rqtp->tv_nsec > 999999999) {
/* The time interval specified 1,000,000 or more microseconds. */
errno = EINVAL;
return -1;
}
return usleep( rqtp->tv_sec * 1000000 + rqtp->tv_nsec / 1000 );
-}
+}/*}}}*/
/*
* Local variables:
diff --git a/win32/time.h b/win32/time.h
index f21a9bd404..4fe00bc21e 100644
--- a/win32/time.h
+++ b/win32/time.h
@@ -61,3 +61,12 @@ void php_win32_init_gettimeofday(void);
#endif
#endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/unistd.h b/win32/unistd.h
index 0b9446149c..3d95ea06c7 100644
--- a/win32/unistd.h
+++ b/win32/unistd.h
@@ -2,3 +2,12 @@
#define _PHP_WIN32_UNISTD_H
PHPAPI int usleep(unsigned int useconds);
#endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
diff --git a/win32/winutil.h b/win32/winutil.h
index ebd57f10a6..364c9bc2cb 100644
--- a/win32/winutil.h
+++ b/win32/winutil.h
@@ -50,3 +50,11 @@ PHP_WINUTIL_API int php_win32_code_to_errno(unsigned long w32Err);
PHP_WINUTIL_API char *php_win32_get_username(void);
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */