예제 #1
0
파일: xgmcom.c 프로젝트: luciano2000/SGDK
LList* XGMCommand_createYMPort1Commands(LList* commands)
{
    LList* result;
    LList* src;

    result = NULL;
    src = commands;

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

    return getHeadLList(result);
}
예제 #2
0
파일: xgmcom.c 프로젝트: feli7254/SGDK
List* XGMCommand_createYMPort1Commands(List* commands)
{
    List* result;
    int offset;

    // allocate
    result = createList();

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

    return result;
}