Skip to content

Commit 91f9672

Browse files
author
christian.heimes
committed
Fixed a couple more C99 comments and one occurence of inline.
git-svn-id: http://svn.python.org/projects/python/trunk@66748 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 4f584a0 commit 91f9672

5 files changed

Lines changed: 22 additions & 22 deletions

File tree

Modules/_ctypes/libffi/src/x86/ffi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,10 @@ ffi_prep_raw_closure_loc (ffi_raw_closure* closure,
388388
return FFI_BAD_ABI;
389389
}
390390

391-
// we currently don't support certain kinds of arguments for raw
391+
/* we currently don't support certain kinds of arguments for raw
392392
// closures. This should be implemented by a separate assembly language
393393
// routine, since it would require argument processing, something we
394-
// don't do now for performance.
394+
// don't do now for performance. */
395395

396396
for (i = cif->nargs-1; i >= 0; i--)
397397
{

Modules/signalmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ timeval_from_double(double d, struct timeval *tv)
107107
tv->tv_usec = fmod(d, 1.0) * 1000000.0;
108108
}
109109

110-
static inline double
110+
Py_LOCAL_INLINE(double)
111111
double_from_timeval(struct timeval *tv)
112112
{
113113
return tv->tv_sec + (double)(tv->tv_usec / 1000000.0);

Modules/tkappinit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Tcl_AppInit(Tcl_Interp *interp)
7171
#endif
7272

7373
#ifdef WITH_XXX
74-
// Initialize modules that don't require Tk
74+
/* Initialize modules that don't require Tk */
7575
#endif
7676

7777
_tkinter_skip_tk_init = Tcl_GetVar(interp, "_tkinter_skip_tk_init", TCL_GLOBAL_ONLY);

Objects/unicodeobject.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -115,19 +115,19 @@ static char unicode_default_encoding[100];
115115
/* Fast detection of the most frequent whitespace characters */
116116
const unsigned char _Py_ascii_whitespace[] = {
117117
0, 0, 0, 0, 0, 0, 0, 0,
118-
// case 0x0009: /* HORIZONTAL TABULATION */
119-
// case 0x000A: /* LINE FEED */
120-
// case 0x000B: /* VERTICAL TABULATION */
121-
// case 0x000C: /* FORM FEED */
122-
// case 0x000D: /* CARRIAGE RETURN */
118+
/* case 0x0009: * HORIZONTAL TABULATION */
119+
/* case 0x000A: * LINE FEED */
120+
/* case 0x000B: * VERTICAL TABULATION */
121+
/* case 0x000C: * FORM FEED */
122+
/* case 0x000D: * CARRIAGE RETURN */
123123
0, 1, 1, 1, 1, 1, 0, 0,
124124
0, 0, 0, 0, 0, 0, 0, 0,
125-
// case 0x001C: /* FILE SEPARATOR */
126-
// case 0x001D: /* GROUP SEPARATOR */
127-
// case 0x001E: /* RECORD SEPARATOR */
128-
// case 0x001F: /* UNIT SEPARATOR */
125+
/* case 0x001C: * FILE SEPARATOR */
126+
/* case 0x001D: * GROUP SEPARATOR */
127+
/* case 0x001E: * RECORD SEPARATOR */
128+
/* case 0x001F: * UNIT SEPARATOR */
129129
0, 0, 0, 0, 1, 1, 1, 1,
130-
// case 0x0020: /* SPACE */
130+
/* case 0x0020: * SPACE */
131131
1, 0, 0, 0, 0, 0, 0, 0,
132132
0, 0, 0, 0, 0, 0, 0, 0,
133133
0, 0, 0, 0, 0, 0, 0, 0,
@@ -146,13 +146,13 @@ const unsigned char _Py_ascii_whitespace[] = {
146146
/* Same for linebreaks */
147147
static unsigned char ascii_linebreak[] = {
148148
0, 0, 0, 0, 0, 0, 0, 0,
149-
// 0x000A, /* LINE FEED */
150-
// 0x000D, /* CARRIAGE RETURN */
149+
/* 0x000A, * LINE FEED */
150+
/* 0x000D, * CARRIAGE RETURN */
151151
0, 0, 1, 0, 0, 1, 0, 0,
152152
0, 0, 0, 0, 0, 0, 0, 0,
153-
// 0x001C, /* FILE SEPARATOR */
154-
// 0x001D, /* GROUP SEPARATOR */
155-
// 0x001E, /* RECORD SEPARATOR */
153+
/* 0x001C, * FILE SEPARATOR */
154+
/* 0x001D, * GROUP SEPARATOR */
155+
/* 0x001E, * RECORD SEPARATOR */
156156
0, 0, 0, 0, 1, 1, 1, 0,
157157
0, 0, 0, 0, 0, 0, 0, 0,
158158
0, 0, 0, 0, 0, 0, 0, 0,

Python/_warnings.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ warn_explicit(PyObject *category, PyObject *message,
377377
}
378378
}
379379

380-
if (rc == 1) // Already warned for this module. */
380+
if (rc == 1) /* Already warned for this module. */
381381
goto return_none;
382382
if (rc == 0) {
383383
PyObject *show_fxn = get_warnings_attr("showwarning");
@@ -800,8 +800,8 @@ static PyMethodDef warnings_functions[] = {
800800
warn_doc},
801801
{"warn_explicit", (PyCFunction)warnings_warn_explicit,
802802
METH_VARARGS | METH_KEYWORDS, warn_explicit_doc},
803-
// XXX(brett.cannon): add showwarning?
804-
// XXX(brett.cannon): Reasonable to add formatwarning?
803+
/* XXX(brett.cannon): add showwarning? */
804+
/* XXX(brett.cannon): Reasonable to add formatwarning? */
805805
{NULL, NULL} /* sentinel */
806806
};
807807

0 commit comments

Comments
 (0)