10000 gh-103583: Isolate CJK codec modules by erlend-aasland · Pull Request #103869 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-103583: Isolate CJK codec modules #103869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading 10000
Diff view
Diff view
Prev Previous commit
Next Next commit
Make it possible to specify cjk module specific state
  • Loading branch information
erlend-aasland committed Apr 26, 2023
commit fd6a2a0c25822b2f5211a90765e0ad2c2a1fb447
6 changes: 6 additions & 0 deletions Modules/cjkcodecs/cjkcodecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,17 @@ struct pair_encodemap {
DBCHAR code;
};

#ifndef CJK_MOD_SPECIFIC_STATE
#define CJK_MOD_SPECIFIC_STATE
#endif

typedef struct _cjk_mod_state {
int num_mappings;
int num_codecs;
struct dbcs_map *mapping_list;
MultibyteCodec *codec_list;

CJK_MOD_SPECIFIC_STATE
} cjkcodecs_module_state;

static inline cjkcodecs_module_state *
Expand Down
0