Skip to content

Commit c83ea13

Browse files
committed
Untabify C files. Will watch buildbots.
1 parent 368ede8 commit c83ea13

318 files changed

Lines changed: 206667 additions & 206667 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Demo/embed/demo.c

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,40 @@ void initxyzzy(void); /* Forward */
66

77
main(int argc, char **argv)
88
{
9-
/* Pass argv[0] to the Python interpreter */
10-
Py_SetProgramName(argv[0]);
9+
/* Pass argv[0] to the Python interpreter */
10+
Py_SetProgramName(argv[0]);
1111

12-
/* Initialize the Python interpreter. Required. */
13-
Py_Initialize();
12+
/* Initialize the Python interpreter. Required. */
13+
Py_Initialize();
1414

15-
/* Add a static module */
16-
initxyzzy();
15+
/* Add a static module */
16+
initxyzzy();
1717

18-
/* Define sys.argv. It is up to the application if you
19-
want this; you can also let it undefined (since the Python
20-
code is generally not a main program it has no business
21-
touching sys.argv...) */
22-
PySys_SetArgv(argc, argv);
18+
/* Define sys.argv. It is up to the application if you
19+
want this; you can also let it undefined (since the Python
20+
code is generally not a main program it has no business
21+
touching sys.argv...) */
22+
PySys_SetArgv(argc, argv);
2323

24-
/* Do some application specific code */
25-
printf("Hello, brave new world\n\n");
24+
/* Do some application specific code */
25+
printf("Hello, brave new world\n\n");
2626

27-
/* Execute some Python statements (in module __main__) */
28-
PyRun_SimpleString("import sys\n");
29-
PyRun_SimpleString("print sys.builtin_module_names\n");
30-
PyRun_SimpleString("print sys.modules.keys()\n");
31-
PyRun_SimpleString("print sys.executable\n");
32-
PyRun_SimpleString("print sys.argv\n");
27+
/* Execute some Python statements (in module __main__) */
28+
PyRun_SimpleString("import sys\n");
29+
PyRun_SimpleString("print sys.builtin_module_names\n");
30+
PyRun_SimpleString("print sys.modules.keys()\n");
31+
PyRun_SimpleString("print sys.executable\n");
32+
PyRun_SimpleString("print sys.argv\n");
3333

34-
/* Note that you can call any public function of the Python
35-
interpreter here, e.g. call_object(). */
34+
/* Note that you can call any public function of the Python
35+
interpreter here, e.g. call_object(). */
3636

37-
/* Some more application specific code */
38-
printf("\nGoodbye, cruel world\n");
37+
/* Some more application specific code */
38+
printf("\nGoodbye, cruel world\n");
3939

40-
/* Exit, cleaning up the interpreter */
41-
Py_Exit(0);
42-
/*NOTREACHED*/
40+
/* Exit, cleaning up the interpreter */
41+
Py_Exit(0);
42+
/*NOTREACHED*/
4343
}
4444

4545
/* A static module */
@@ -48,18 +48,18 @@ main(int argc, char **argv)
4848
static PyObject *
4949
xyzzy_foo(PyObject *self, PyObject* args)
5050
{
51-
return PyInt_FromLong(42L);
51+
return PyInt_FromLong(42L);
5252
}
5353

5454
static PyMethodDef xyzzy_methods[] = {
55-
{"foo", xyzzy_foo, METH_NOARGS,
56-
"Return the meaning of everything."},
57-
{NULL, NULL} /* sentinel */
55+
{"foo", xyzzy_foo, METH_NOARGS,
56+
"Return the meaning of everything."},
57+
{NULL, NULL} /* sentinel */
5858
};
5959

6060
void
6161
initxyzzy(void)
6262
{
63-
PyImport_AddModule("xyzzy");
64-
Py_InitModule("xyzzy", xyzzy_methods);
63+
PyImport_AddModule("xyzzy");
64+
Py_InitModule("xyzzy", xyzzy_methods);
6565
}

Demo/embed/loop.c

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,28 @@
66

77
main(int argc, char **argv)
88
{
9-
int count = -1;
10-
char *command;
9+
int count = -1;
10+
char *command;
1111

12-
if (argc < 2 || argc > 3) {
13-
fprintf(stderr, "usage: loop <python-command> [count]\n");
14-
exit(2);
15-
}
16-
command = argv[1];
12+
if (argc < 2 || argc > 3) {
13+
fprintf(stderr, "usage: loop <python-command> [count]\n");
14+
exit(2);
15+
}
16+
command = argv[1];
1717

18-
if (argc == 3) {
19-
count = atoi(argv[2]);
20-
}
18+
if (argc == 3) {
19+
count = atoi(argv[2]);
20+
}
2121

22-
Py_SetProgramName(argv[0]);
22+
Py_SetProgramName(argv[0]);
2323

24-
/* uncomment this if you don't want to load site.py */
25-
/* Py_NoSiteFlag = 1; */
24+
/* uncomment this if you don't want to load site.py */
25+
/* Py_NoSiteFlag = 1; */
2626

27-
while (count == -1 || --count >= 0 ) {
28-
Py_Initialize();
29-
PyRun_SimpleString(command);
30-
Py_Finalize();
31-
}
32-
return 0;
27+
while (count == -1 || --count >= 0 ) {
28+
Py_Initialize();
29+
PyRun_SimpleString(command);
30+
Py_Finalize();
31+
}
32+
return 0;
3333
}

0 commit comments

Comments
 (0)