Created
April 29, 2011 06:23
-
-
Save am0c/947938 to your computer and use it in GitHub Desktop.
android init vs perl
This file contains hidden or 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 gist is posted without any special reason. | |
| c[ ] ^^^^^^^ ^^^ ^^^^^^^ ^^^^^^ | |
| ------------------------------------------------------------------------ | |
| struct action *action_remove_queue_head(void) | |
| { | |
| if (list_empty(&action_queue)) { | |
| return 0; | |
| } else { | |
| struct listnode *node = list_head(&action_queue); | |
| struct action *act = node_to_item(node, struct action, qlist); | |
| list_remove(node); | |
| return act; | |
| } | |
| } | |
| struct *action act = action_remove_queue_head(); | |
| ------------------------------------------------------------------------ | |
| my $act = unshift(@action_queue); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment