-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-autoconfig option added, unit tests
- Loading branch information
Showing
24 changed files
with
1,833 additions
and
1,144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,13 @@ | ||
#pragma safety enable | ||
enum E1 {A, B}; | ||
enum E2 {C, D}; | ||
|
||
|
||
|
||
void free( void* _Owner ptr); | ||
void* _Owner malloc(int size); | ||
struct X { char * _Owner text; }; | ||
|
||
void x_destroy(struct X* _Obj_owner p) | ||
void f(enum E1 e) | ||
{ | ||
free(p->text); | ||
} | ||
|
||
void x_delete(struct X* _Owner _Opt p) | ||
{ | ||
if (p) | ||
switch(e) | ||
{ | ||
x_destroy(p); | ||
free(p); | ||
case A:break; | ||
case 12:break; | ||
} | ||
} | ||
} | ||
int main(){} |
Oops, something went wrong.