diff options
author | somov <somov@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
commit | a5950576e397b1909261050b8c7da16db58f10b1 (patch) | |
tree | 7ba7677f6a4c3e19e2cefab34d16df2c8963b4d4 /contrib/tools/python3/src/Modules | |
parent | 81eddc8c0b55990194e112b02d127b87d54164a9 (diff) | |
download | ydb-a5950576e397b1909261050b8c7da16db58f10b1.tar.gz |
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/python3/src/Modules')
-rw-r--r-- | contrib/tools/python3/src/Modules/_pickle.c | 18 | ||||
-rw-r--r-- | contrib/tools/python3/src/Modules/_tracemalloc.c | 4 |
2 files changed, 11 insertions, 11 deletions
diff --git a/contrib/tools/python3/src/Modules/_pickle.c b/contrib/tools/python3/src/Modules/_pickle.c index 30bb5c0d75..703488d713 100644 --- a/contrib/tools/python3/src/Modules/_pickle.c +++ b/contrib/tools/python3/src/Modules/_pickle.c @@ -39,11 +39,11 @@ enum opcode { POP = '0', POP_MARK = '1', DUP = '2', - FLOAT_ = 'F', - INT_ = 'I', + FLOAT_ = 'F', + INT_ = 'I', BININT = 'J', BININT1 = 'K', - LONG_ = 'L', + LONG_ = 'L', BININT2 = 'M', NONE = 'N', PERSID = 'P', @@ -2120,7 +2120,7 @@ save_long(PicklerObject *self, PyObject *obj) } } else { - sprintf(pdata, "%c%ld\n", INT_, val); + sprintf(pdata, "%c%ld\n", INT_, val); len = strlen(pdata); } if (_Pickler_Write(self, pdata, len) < 0) @@ -2208,7 +2208,7 @@ save_long(PicklerObject *self, PyObject *obj) goto error; } else { - const char long_op = LONG_; + const char long_op = LONG_; const char *string; /* proto < 2: write the repr and newline. This is quadratic-time (in @@ -2254,7 +2254,7 @@ save_float(PicklerObject *self, PyObject *obj) else { int result = -1; char *buf = NULL; - char op = FLOAT_; + char op = FLOAT_; if (_Pickler_Write(self, &op, 1) < 0) goto done; @@ -6923,11 +6923,11 @@ load(UnpicklerObject *self) OP(BININT, load_binint) OP(BININT1, load_binint1) OP(BININT2, load_binint2) - OP(INT_, load_int) - OP(LONG_, load_long) + OP(INT_, load_int) + OP(LONG_, load_long) OP_ARG(LONG1, load_counted_long, 1) OP_ARG(LONG4, load_counted_long, 4) - OP(FLOAT_, load_float) + OP(FLOAT_, load_float) OP(BINFLOAT, load_binfloat) OP_ARG(SHORT_BINBYTES, load_counted_binbytes, 1) OP_ARG(BINBYTES, load_counted_binbytes, 4) diff --git a/contrib/tools/python3/src/Modules/_tracemalloc.c b/contrib/tools/python3/src/Modules/_tracemalloc.c index 4c8f3c4cd8..cbd6149bb8 100644 --- a/contrib/tools/python3/src/Modules/_tracemalloc.c +++ b/contrib/tools/python3/src/Modules/_tracemalloc.c @@ -53,7 +53,7 @@ static PyThread_type_lock tables_lock; /* Pack the frame_t structure to reduce the memory footprint on 64-bit architectures: 12 bytes instead of 16. */ typedef struct -#if defined(__GNUC__) || defined(__clang__) +#if defined(__GNUC__) || defined(__clang__) __attribute__((packed)) #elif defined(_MSC_VER) #pragma pack(push, 4) @@ -64,7 +64,7 @@ __attribute__((packed)) PyObject *filename; unsigned int lineno; } frame_t; -#if defined(_MSC_VER) && !defined(__clang__) +#if defined(_MSC_VER) && !defined(__clang__) #pragma pack(pop) #endif |