Skip to content

Instantly share code, notes, and snippets.

@am0c
Created April 29, 2011 06:23
Show Gist options
  • Select an option

  • Save am0c/947938 to your computer and use it in GitHub Desktop.

Select an option

Save am0c/947938 to your computer and use it in GitHub Desktop.
android init vs perl
(
) 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