Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2eafcf6

Browse files
committed
Restructure the code in copyfuncs and equalfuncs to put much heavier
reliance on macros, in hopes of eliminating silly typos (like copyingto the wrong field) and just generally making it easier to see the forestinstead of the trees. As an example, here is the new code for A_Indices:static A_Indices *_copyAIndices(A_Indices *from){A_Indices *newnode = makeNode(A_Indices);COPY_NODE_FIELD(lidx);COPY_NODE_FIELD(uidx);return newnode;}static bool_equalAIndices(A_Indices *a, A_Indices *b){COMPARE_NODE_FIELD(lidx);COMPARE_NODE_FIELD(uidx);return true;}I plan to redo outfuncs/readfuncs in a similar style, but am committingwhat I've got.
1 parent200dd8e commit2eafcf6

File tree

2 files changed

+1474
-2065
lines changed

2 files changed

+1474
-2065
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp