Example #1
0
LList* XGMCommand_createPSGCommands(LList* commands)
{
    LList* result;
    LList* src;

    result = NULL;
    src = commands;

    while (src != NULL)
        result = insertAfterLList(result, XGMCommand_createPSGCommand(&src));

    return getHeadLList(result);
}
Example #2
0
List* XGMCommand_createPSGCommands(List* commands)
{
    List* result;
    int offset;

    // allocate
    result = createList();

    offset = 0;
    while (offset < commands->size)
        addToList(result, XGMCommand_createPSGCommand(commands, &offset));

    return result;
}