Skip to content

Commit a567000

Browse files
committed
vim folds and modelines
1 parent 0965a4e commit a567000

32 files changed

+291
-48
lines changed

win32/console.c

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424
PHP_WINUTIL_API BOOL php_win32_console_fileno_is_console(zend_long fileno)
25-
{
25+
{/*{{{*/
2626
BOOL result = FALSE;
2727
HANDLE handle = (HANDLE) _get_osfhandle(fileno);
2828

@@ -33,10 +33,10 @@ PHP_WINUTIL_API BOOL php_win32_console_fileno_is_console(zend_long fileno)
3333
}
3434
}
3535
return result;
36-
}
36+
}/*}}}*/
3737

3838
PHP_WINUTIL_API BOOL php_win32_console_fileno_has_vt100(zend_long fileno)
39-
{
39+
{/*{{{*/
4040
BOOL result = FALSE;
4141
HANDLE handle = (HANDLE) _get_osfhandle(fileno);
4242

@@ -55,10 +55,10 @@ PHP_WINUTIL_API BOOL php_win32_console_fileno_has_vt100(zend_long fileno)
5555
}
5656
}
5757
return result;
58-
}
58+
}/*}}}*/
5959

6060
PHP_WINUTIL_API BOOL php_win32_console_fileno_set_vt100(zend_long fileno, BOOL enable)
61-
{
61+
{/*{{{*/
6262
BOOL result = FALSE;
6363
HANDLE handle = (HANDLE) _get_osfhandle(fileno);
6464

@@ -90,16 +90,24 @@ PHP_WINUTIL_API BOOL php_win32_console_fileno_set_vt100(zend_long fileno, BOOL e
9090
}
9191
}
9292
return result;
93-
}
93+
}/*}}}*/
9494

9595
PHP_WINUTIL_API BOOL php_win32_console_is_own(void)
96-
{
96+
{/*{{{*/
9797
CONSOLE_SCREEN_BUFFER_INFO csbi;
9898

9999
if (GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi) && !IsDebuggerPresent()) {
100100
return !csbi.dwCursorPosition.X && !csbi.dwCursorPosition.Y;
101101
}
102102

103103
return FALSE;
104-
}
104+
}/*}}}*/
105105

106+
/*
107+
* Local variables:
108+
* tab-width: 4
109+
* c-basic-offset: 4
110+
* End:
111+
* vim600: sw=4 ts=4 fdm=marker
112+
* vim<600: sw=4 ts=4
113+
*/

win32/console.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,12 @@ PHP_WINUTIL_API BOOL php_win32_console_fileno_set_vt100(zend_long fileno, BOOL e
6262
PHP_WINUTIL_API BOOL php_win32_console_is_own(void);
6363

6464
#endif
65+
66+
/*
67+
* Local variables:
68+
* tab-width: 4
69+
* c-basic-offset: 4
70+
* End:
71+
* vim600: sw=4 ts=4 fdm=marker
72+
* vim<600: sw=4 ts=4
73+
*/

win32/cp_enc_map_gen.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,11 @@ main(int argc, char **argv)
248248
return 0;
249249
}
250250

251+
/*
252+
* Local variables:
253+
* tab-width: 4
254+
* c-basic-offset: 4
255+
* End:
256+
* vim600: sw=4 ts=4 fdm=marker
257+
* vim<600: sw=4 ts=4
258+
*/

win32/dllmain.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,11 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID dummy)
8787
return ret;
8888
}
8989

90+
/*
91+
* Local variables:
92+
* tab-width: 4
93+
* c-basic-offset: 4
94+
* End:
95+
* vim600: sw=4 ts=4 fdm=marker
96+
* vim<600: sw=4 ts=4
97+
*/

win32/fnmatch.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,12 @@
5252
PHPAPI int fnmatch(const char *pattern, const char *string, int flags);
5353

5454
#endif /* !_FNMATCH_H_ */
55+
56+
/*
57+
* Local variables:
58+
* tab-width: 4
59+
* c-basic-offset: 4
60+
* End:
61+
* vim600: sw=4 ts=4 fdm=marker
62+
* vim<600: sw=4 ts=4
63+
*/

win32/ftok.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
PHP_WIN32_IPC_API key_t
2626
ftok(const char *pathname, int proj_id)
27-
{
27+
{/*{{{*/
2828
HANDLE fh;
2929
struct stat st;
3030
BY_HANDLE_FILE_INFORMATION bhfi;
@@ -48,5 +48,13 @@ ftok(const char *pathname, int proj_id)
4848
CloseHandle(fh);
4949

5050
return ret;
51-
}
51+
}/*}}}*/
5252

53+
/*
54+
* Local variables:
55+
* tab-width: 4
56+
* c-basic-offset: 4
57+
* End:
58+
* vim600: sw=4 ts=4 fdm=marker
59+
* vim<600: sw=4 ts=4
60+
*/

win32/getrusage.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,11 @@ PHPAPI int getrusage(int who, struct rusage *usage);
115115

116116
#endif
117117

118+
/*
119+
* Local variables:
120+
* tab-width: 4
121+
* c-basic-offset: 4
122+
* End:
123+
* vim600: sw=4 ts=4 fdm=marker
124+
* vim<600: sw=4 ts=4
125+
*/

win32/glob.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,12 @@ PHPAPI int glob(const char *, int, int (*)(const char *, int), glob_t *);
101101
PHPAPI void globfree(glob_t *);
102102
END_EXTERN_C()
103103
#endif /* !_GLOB_H_ */
104+
105+
/*
106+
* Local variables:
107+
* tab-width: 4
108+
* c-basic-offset: 4
109+
* End:
110+
* vim600: sw=4 ts=4 fdm=marker
111+
* vim<600: sw=4 ts=4
112+
*/

win32/globals.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ php_win32_core_globals the_php_win32_core_globals;
2929
#endif
3030

3131
void php_win32_core_globals_ctor(void *vg)
32-
{
32+
{/*{{{*/
3333
php_win32_core_globals *wg = (php_win32_core_globals*)vg;
3434
memset(wg, 0, sizeof(*wg));
3535

3636
wg->mail_socket = INVALID_SOCKET;
3737

3838
wg->log_source = INVALID_HANDLE_VALUE;
39-
}
39+
}/*}}}*/
4040

4141
void php_win32_core_globals_dtor(void *vg)
42-
{
42+
{/*{{{*/
4343
php_win32_core_globals *wg = (php_win32_core_globals*)vg;
4444

4545
if (wg->registry_key) {
@@ -60,11 +60,11 @@ void php_win32_core_globals_dtor(void *vg)
6060
closesocket(wg->mail_socket);
6161
wg->mail_socket = INVALID_SOCKET;
6262
}
63-
}
63+
}/*}}}*/
6464

6565

6666
PHP_RSHUTDOWN_FUNCTION(win32_core_globals)
67-
{
67+
{/*{{{*/
6868
php_win32_core_globals *wg =
6969
#ifdef ZTS
7070
ts_resource(php_win32_core_globals_id)
@@ -76,7 +76,7 @@ PHP_RSHUTDOWN_FUNCTION(win32_core_globals)
7676
closelog();
7777

7878
return SUCCESS;
79-
}
79+
}/*}}}*/
8080

8181
/*
8282
* Local variables:

win32/grp.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,12 @@ struct group {
2424
int gr_gid;
2525
char **gr_mem;
2626
};
27+
28+
/*
29+
* Local variables:
30+
* tab-width: 4
31+
* c-basic-offset: 4
32+
* End:
33+
* vim600: sw=4 ts=4 fdm=marker
34+
* vim<600: sw=4 ts=4
35+
*/

0 commit comments

Comments
 (0)