Use four spaces to indent
This commit is contained in:
parent
06108d66b1
commit
0d116e6ef0
8
glfw/egl_context.h
vendored
8
glfw/egl_context.h
vendored
@ -160,11 +160,11 @@ typedef EGLSurface (EGLAPIENTRY * PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC)(EGLD
|
|||||||
//
|
//
|
||||||
typedef struct _GLFWcontextEGL
|
typedef struct _GLFWcontextEGL
|
||||||
{
|
{
|
||||||
EGLConfig config;
|
EGLConfig config;
|
||||||
EGLContext handle;
|
EGLContext handle;
|
||||||
EGLSurface surface;
|
EGLSurface surface;
|
||||||
|
|
||||||
void* client;
|
void* client;
|
||||||
|
|
||||||
} _GLFWcontextEGL;
|
} _GLFWcontextEGL;
|
||||||
|
|
||||||
|
|||||||
@ -231,11 +231,11 @@ static PyMethodDef module_methods[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct PyModuleDef module = {
|
static struct PyModuleDef module = {
|
||||||
.m_base = PyModuleDef_HEAD_INIT,
|
.m_base = PyModuleDef_HEAD_INIT,
|
||||||
.m_name = "subseq_matcher", /* name of module */
|
.m_name = "subseq_matcher", /* name of module */
|
||||||
.m_doc = NULL,
|
.m_doc = NULL,
|
||||||
.m_size = -1,
|
.m_size = -1,
|
||||||
.m_methods = module_methods
|
.m_methods = module_methods
|
||||||
};
|
};
|
||||||
|
|
||||||
EXPORTED PyMODINIT_FUNC
|
EXPORTED PyMODINIT_FUNC
|
||||||
|
|||||||
@ -56,9 +56,9 @@ A glob pattern that is matched against only the filename of files and directorie
|
|||||||
files and directories are ignored when scanning the filesystem to look for files to diff.
|
files and directories are ignored when scanning the filesystem to look for files to diff.
|
||||||
Can be specified multiple times to use multiple patterns. For example::
|
Can be specified multiple times to use multiple patterns. For example::
|
||||||
|
|
||||||
ignore_name .git
|
ignore_name .git
|
||||||
ignore_name *~
|
ignore_name *~
|
||||||
ignore_name *.pyc
|
ignore_name *.pyc
|
||||||
''',
|
''',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -187,11 +187,11 @@ static PyMethodDef module_methods[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct PyModuleDef module = {
|
static struct PyModuleDef module = {
|
||||||
.m_base = PyModuleDef_HEAD_INIT,
|
.m_base = PyModuleDef_HEAD_INIT,
|
||||||
.m_name = "diff_speedup", /* name of module */
|
.m_name = "diff_speedup", /* name of module */
|
||||||
.m_doc = NULL,
|
.m_doc = NULL,
|
||||||
.m_size = -1,
|
.m_size = -1,
|
||||||
.m_methods = module_methods
|
.m_methods = module_methods
|
||||||
};
|
};
|
||||||
|
|
||||||
EXPORTED PyMODINIT_FUNC
|
EXPORTED PyMODINIT_FUNC
|
||||||
|
|||||||
@ -243,11 +243,11 @@ static PyModuleDef_Slot slots[] = { {Py_mod_exec, (void*)exec_module}, {0, NULL}
|
|||||||
END_IGNORE_PEDANTIC_WARNINGS
|
END_IGNORE_PEDANTIC_WARNINGS
|
||||||
|
|
||||||
static struct PyModuleDef module = {
|
static struct PyModuleDef module = {
|
||||||
.m_base = PyModuleDef_HEAD_INIT,
|
.m_base = PyModuleDef_HEAD_INIT,
|
||||||
.m_name = "rsync", /* name of module */
|
.m_name = "rsync", /* name of module */
|
||||||
.m_doc = NULL,
|
.m_doc = NULL,
|
||||||
.m_slots = slots,
|
.m_slots = slots,
|
||||||
.m_methods = module_methods
|
.m_methods = module_methods
|
||||||
};
|
};
|
||||||
|
|
||||||
EXPORTED PyMODINIT_FUNC
|
EXPORTED PyMODINIT_FUNC
|
||||||
|
|||||||
@ -101,11 +101,11 @@ static PyModuleDef_Slot slots[] = { {Py_mod_exec, (void*)exec_module}, {0, NULL}
|
|||||||
END_IGNORE_PEDANTIC_WARNINGS
|
END_IGNORE_PEDANTIC_WARNINGS
|
||||||
|
|
||||||
static struct PyModuleDef module = {
|
static struct PyModuleDef module = {
|
||||||
.m_base = PyModuleDef_HEAD_INIT,
|
.m_base = PyModuleDef_HEAD_INIT,
|
||||||
.m_name = "unicode_names", /* name of module */
|
.m_name = "unicode_names", /* name of module */
|
||||||
.m_doc = NULL,
|
.m_doc = NULL,
|
||||||
.m_slots = slots,
|
.m_slots = slots,
|
||||||
.m_methods = module_methods
|
.m_methods = module_methods
|
||||||
};
|
};
|
||||||
|
|
||||||
EXPORTED PyMODINIT_FUNC
|
EXPORTED PyMODINIT_FUNC
|
||||||
|
|||||||
@ -240,11 +240,11 @@ static PyMethodDef module_methods[] = {
|
|||||||
|
|
||||||
|
|
||||||
static struct PyModuleDef module = {
|
static struct PyModuleDef module = {
|
||||||
.m_base = PyModuleDef_HEAD_INIT,
|
.m_base = PyModuleDef_HEAD_INIT,
|
||||||
.m_name = "fast_data_types", /* name of module */
|
.m_name = "fast_data_types", /* name of module */
|
||||||
.m_doc = NULL,
|
.m_doc = NULL,
|
||||||
.m_size = -1,
|
.m_size = -1,
|
||||||
.m_methods = module_methods
|
.m_methods = module_methods
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -104,8 +104,8 @@ free_loop_data(LoopData *ld) {
|
|||||||
#ifdef HAS_EVENT_FD
|
#ifdef HAS_EVENT_FD
|
||||||
safe_close(ld->wakeup_read_fd, __FILE__, __LINE__);
|
safe_close(ld->wakeup_read_fd, __FILE__, __LINE__);
|
||||||
#endif
|
#endif
|
||||||
ld->wakeup_read_fd = -1;
|
ld->wakeup_read_fd = -1;
|
||||||
remove_signal_handlers(ld);
|
remove_signal_handlers(ld);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -3610,7 +3610,7 @@ You can also create shortcuts to switch to specific :term:`layouts <layout>`::
|
|||||||
|
|
||||||
Similarly, to switch back to the previous layout::
|
Similarly, to switch back to the previous layout::
|
||||||
|
|
||||||
map ctrl+alt+p last_used_layout
|
map ctrl+alt+p last_used_layout
|
||||||
|
|
||||||
There is also a :ac:`toggle_layout` action that switches to the named layout or
|
There is also a :ac:`toggle_layout` action that switches to the named layout or
|
||||||
back to the previous layout if in the named layout. Useful to temporarily "zoom"
|
back to the previous layout if in the named layout. Useful to temporarily "zoom"
|
||||||
|
|||||||
@ -166,11 +166,11 @@ safe_write(int fd, void *buf, size_t n) {
|
|||||||
|
|
||||||
static bool
|
static bool
|
||||||
set_blocking(int fd, bool blocking) {
|
set_blocking(int fd, bool blocking) {
|
||||||
if (fd < 0) return false;
|
if (fd < 0) return false;
|
||||||
int flags = fcntl(fd, F_GETFL, 0);
|
int flags = fcntl(fd, F_GETFL, 0);
|
||||||
if (flags == -1) return false;
|
if (flags == -1) return false;
|
||||||
flags = blocking ? (flags & ~O_NONBLOCK) : (flags | O_NONBLOCK);
|
flags = blocking ? (flags & ~O_NONBLOCK) : (flags | O_NONBLOCK);
|
||||||
return (fcntl(fd, F_SETFL, flags) == 0) ? true : false;
|
return (fcntl(fd, F_SETFL, flags) == 0) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user