Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorder Release Directory / Zip For Linux And Windows #67

Closed
taljacob2 opened this issue Jan 21, 2023 · 0 comments · Fixed by #68
Closed

Reorder Release Directory / Zip For Linux And Windows #67

taljacob2 opened this issue Jan 21, 2023 · 0 comments · Fixed by #68
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request gcc Relates to the GNU GCC compiler msvc Relates to Microsoft VC `cl.exe` compiler release

Comments

@taljacob2
Copy link
Owner

taljacob2 commented Jan 21, 2023

  • Linux should release the following oop folder:

    .
    ├── main.c
    └── oop
        ├── Atomic
        │   ├── Atomic.h
        │   ├── AtomicInteger.h
        ├── Object
        │   ├── AnonymousPointer.h
        │   ├── AutoDestructable.r
        │   ├── Bool.h
        │   ├── Concat.h
        │   ├── Destructable.r
        │   ├── InvocationStatus.r
        │   ├── Legacy_AllocationTable.r
        │   ├── Legacy_AllocationTableList.r
        │   ├── Legacy_AtomicFreer.r
        │   ├── Legacy_List.r
        │   ├── Legacy_MemberList.r
        │   ├── Legacy_Node.r
        │   ├── Legacy_Object.r
        │   ├── Legacy_ObjectComponent.r
        │   ├── Legacy_StringObjectContainerEntry.r
        │   ├── MemberList.r
        │   ├── Object.a
        │   ├── Object.h
        │   ├── Object.r
        │   ├── ObjectDefines.r
        │   ├── Quote.h
        ├── oop.a
        └── oop.h
    

    And an example main.c should look like so:

    #include "oop/oop.h"
    
    #include <stdio.h>
    
    int main() {
        printf("Hello World\n");
    
        Object* object = ObjectConstructor("Object");
        object->addIntegerRValueMember(object, PUBLIC, FIELD, "x", 121681);
        object->toString(object);
    
        return 0;
    }

    P.S. Maybe support oop32.a.

  • Windows should release the following oop folder:

    .
    ├── main.c
    └── oop
        ├── Atomic
        │   ├── Atomic.h
        │   ├── AtomicInteger.h
        ├── Object
        │   ├── AnonymousPointer.h
        │   ├── AutoDestructable.r
        │   ├── Bool.h
        │   ├── Concat.h
        │   ├── Destructable.r
        │   ├── InvocationStatus.r
        │   ├── Legacy_AllocationTable.r
        │   ├── Legacy_AllocationTableList.r
        │   ├── Legacy_AtomicFreer.r
        │   ├── Legacy_List.r
        │   ├── Legacy_MemberList.r
        │   ├── Legacy_Node.r
        │   ├── Legacy_Object.r
        │   ├── Legacy_ObjectComponent.r
        │   ├── Legacy_StringObjectContainerEntry.r
        │   ├── MemberList.r
        │   ├── Object.a
        │   ├── Object.h
        │   ├── Object.r
        │   ├── ObjectDefines.r
        │   ├── Quote.h
        ├── oop.lib
        ├── oop32.lib
        └── oop.h
    

    And an example main.c should look like so:

    #pragma comment(lib, "oop/oop.lib")
    #include "oop/oop.h"
    
    #include <stdio.h>
    
    int main() {
        printf("Hello World\n");
    
        Object* object = ObjectConstructor("Object");
        object->addIntegerRValueMember(object, PUBLIC, FIELD, "x", 121681);
        object->toString(object);
    
        return 0;
    }

    NOTE: The #pragma comment(lib, "oop/oop.lib") line is mandatory and allows the import of oop/oop.lib.

    Real solution example

    oop-windows-test
    ├── Debug
    │   └── .
    ├── Release
    ├── oop-windows-test
    │   ├── Debug
    │   │   .
    │   │   
    │   ├── Release
    │   │   .
    │   │   
    │   ├── main.c
    │   ├── oop
    │   │   ├── AnonymousObject
    │   │   │   ├── AnonymousObject.h
    │   │   │   ├── AnonymousObject.r
    │   │   │   └── BitDefines.r
    │   │   ├── Atomic
    │   │   │   ├── Atomic.h
    │   │   │   ├── AtomicDoubleRValue.h
    │   │   │   ├── AtomicInteger.h
    │   │   │   ├── AtomicIntegerRValue.h
    │   │   │   ├── AtomicLValue.h
    │   │   │   ├── Func.h
    │   │   │   ├── LValueDefines.h
    │   │   │   ├── RValueDefines.h
    │   │   │   └── Random.r
    │   │   ├── Object
    │   │   │   ├── AnonymousPointer.r
    │   │   │   ├── AutoDestructable.r
    │   │   │   ├── Bool.h
    │   │   │   ├── Concat.h
    │   │   │   ├── Destructable.r
    │   │   │   ├── InvocationStatus.r
    │   │   │   ├── Legacy_AllocationTable.r
    │   │   │   ├── Legacy_AllocationTableList.r
    │   │   │   ├── Legacy_AtomicFreer.r
    │   │   │   ├── Legacy_List.r
    │   │   │   ├── Legacy_MemberList.r
    │   │   │   ├── Legacy_Node.r
    │   │   │   ├── Legacy_Object.r
    │   │   │   ├── Legacy_ObjectComponent.r
    │   │   │   ├── Legacy_StringObjectContainerEntry.r
    │   │   │   ├── Object.h
    │   │   │   ├── Object.r
    │   │   │   ├── ObjectDefines.r
    │   │   │   └── Quote.h
    │   │   ├── oop.h
    │   │   ├── oop.lib
    │   │   └── oop32.lib
    │   ├── oop-windows-test.vcxproj
    │   ├── oop-windows-test.vcxproj.filters
    │   ├── oop-windows-test.vcxproj.user
    │   └── x64
    │       ├── Debug
    │       │   .
    │       │   
    │       └── Release
    │           .
    │           
    ├── oop-windows-test.sln
    └── x64
        ├ .
        .
    
@taljacob2 taljacob2 added documentation Improvements or additions to documentation enhancement New feature or request release msvc Relates to Microsoft VC `cl.exe` compiler labels Jan 21, 2023
@taljacob2 taljacob2 self-assigned this Jan 21, 2023
@taljacob2 taljacob2 linked a pull request Jan 24, 2023 that will close this issue
@taljacob2 taljacob2 added the gcc Relates to the GNU GCC compiler label Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request gcc Relates to the GNU GCC compiler msvc Relates to Microsoft VC `cl.exe` compiler release
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant