Changeset d1582b50 in mainline for uspace/lib/bithenge
- Timestamp:
- 2020-12-14T20:41:53Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 02fe42e
- Parents:
- 1382446
- git-author:
- Jiri Svoboda <jiri@…> (2020-12-14 20:33:54)
- git-committer:
- Jiri Svoboda <jiri@…> (2020-12-14 20:41:53)
- Location:
- uspace/lib/bithenge/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/bithenge/src/compound.c
r1382446 rd1582b50 42 42 #include "common.h" 43 43 44 /***************** compose_transform *****************/ 44 /* 45 * compose_transform 46 */ 45 47 46 48 typedef struct { … … 148 150 } 149 151 150 /***************** if_transform *****************/ 152 /* 153 * if_transform 154 */ 151 155 152 156 typedef struct { … … 260 264 } 261 265 262 /***************** partial_transform *****************/ 266 /* 267 * partial_transform 268 */ 263 269 264 270 typedef struct { -
uspace/lib/bithenge/src/expression.c
r1382446 rd1582b50 67 67 } 68 68 69 /***************** binary_expression *****************/ 69 /* 70 * binary_expression 71 */ 70 72 71 73 typedef struct { … … 281 283 } 282 284 283 /***************** in_node_expression *****************/ 285 /* 286 * in_node_expression 287 */ 284 288 285 289 static errno_t in_node_evaluate(bithenge_expression_t *self, … … 316 320 } 317 321 318 /***************** current_node_expression *****************/ 322 /* 323 * current_node_expression 324 */ 319 325 320 326 static errno_t current_node_evaluate(bithenge_expression_t *self, … … 347 353 } 348 354 349 /***************** param_expression *****************/ 355 /* 356 * param_expression 357 */ 350 358 351 359 typedef struct { … … 408 416 } 409 417 410 /***************** const_expression *****************/ 418 /* 419 * const_expression 420 */ 411 421 412 422 typedef struct { … … 478 488 } 479 489 480 /***************** scope_member_expression *****************/ 490 /* 491 * scope_member_expression 492 */ 481 493 482 494 typedef struct { … … 559 571 } 560 572 561 /***************** subblob_expression *****************/ 573 /* 574 * subblob_expression 575 */ 562 576 563 577 typedef struct { … … 685 699 } 686 700 687 /***************** param_wrapper *****************/ 701 /* 702 * param_wrapper 703 */ 688 704 689 705 typedef struct { … … 843 859 } 844 860 845 /***************** expression_transform *****************/ 861 /* 862 * expression_transform 863 */ 846 864 847 865 /* Also used by inputless_transform. */ … … 921 939 } 922 940 923 /***************** inputless_transform *****************/ 941 /* 942 * inputless_transform 943 */ 924 944 925 945 static errno_t inputless_transform_prefix_length(bithenge_transform_t *base, … … 977 997 } 978 998 979 /***************** concat_blob *****************/ 999 /* 1000 * concat_blob 1001 */ 980 1002 981 1003 typedef struct { -
uspace/lib/bithenge/src/script.c
r1382446 rd1582b50 450 450 static bithenge_expression_t *parse_expression(state_t *state); 451 451 452 /***************** Expressions *****************/ 452 /* 453 * Expressions 454 */ 453 455 454 456 /** @cond internal */ -
uspace/lib/bithenge/src/sequence.c
r1382446 rd1582b50 42 42 #include "common.h" 43 43 44 /***************** seq_node *****************/ 44 /* 45 * seq_node 46 */ 45 47 46 48 typedef struct { … … 273 275 } 274 276 275 /***************** bithenge_new_struct *****************/ 277 /* 278 * bithenge_new_struct 279 */ 276 280 277 281 typedef struct { … … 626 630 } 627 631 628 /***************** bithenge_repeat_transform *****************/ 632 /* 633 * bithenge_repeat_transform 634 */ 629 635 630 636 /* TODO: ignore errors */ … … 905 911 } 906 912 907 /***************** bithenge_do_while_transform *****************/ 913 /* 914 * bithenge_do_while_transform 915 */ 908 916 909 917 typedef struct { -
uspace/lib/bithenge/src/transform.c
r1382446 rd1582b50 44 44 #include "common.h" 45 45 46 /***************** transform *****************/ 46 /* 47 * transform 48 */ 47 49 48 50 /** Initialize a new transform. … … 180 182 } 181 183 182 /***************** scope *****************/ 184 /* 185 * scope 186 */ 183 187 184 188 /** Create a transform scope. It must be dereferenced with @a … … 429 433 } 430 434 431 /***************** barrier_transform *****************/ 435 /* 436 * barrier_transform 437 */ 432 438 433 439 typedef struct { … … 561 567 } 562 568 563 /***************** ascii *****************/ 569 /* 570 * ascii 571 */ 564 572 565 573 static errno_t ascii_apply(bithenge_transform_t *self, bithenge_scope_t *scope, … … 604 612 }; 605 613 606 /***************** bit *****************/ 614 /* 615 * bit 616 */ 607 617 608 618 static errno_t bit_prefix_apply(bithenge_transform_t *self, … … 632 642 }; 633 643 634 /***************** bits_be, bits_le *****************/ 644 /* 645 * bits_be, bits_le 646 */ 635 647 636 648 typedef struct { … … 763 775 }; 764 776 765 /***************** invalid *****************/ 777 /* 778 * invalid 779 */ 766 780 767 781 static errno_t invalid_apply(bithenge_transform_t *self, bithenge_scope_t *scope, … … 781 795 }; 782 796 783 /***************** known_length *****************/ 797 /* 798 * known_length 799 */ 784 800 785 801 static errno_t known_length_apply(bithenge_transform_t *self, … … 934 950 /** @endcond */ 935 951 936 /***************** uint_be, uint_le *****************/ 952 /* 953 * uint_be, uint_le 954 */ 937 955 938 956 static errno_t uint_xe_prefix_apply(bithenge_transform_t *self, … … 1004 1022 }; 1005 1023 1006 /***************** zero_terminated *****************/ 1024 /* 1025 * zero_terminated 1026 */ 1007 1027 1008 1028 static errno_t zero_terminated_apply(bithenge_transform_t *self,
Note:
See TracChangeset
for help on using the changeset viewer.