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

Convert Code to C #48

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Language: Cpp
BasedOnStyle: GNU

AlignAfterOpenBracket: BlockIndent
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
run: sudo apt-get install clang-format
- name: Check For Formatting Errors
id: format_check
run: cd src && clang-format --dry-run --Werror *.cc *.h
run: cd src && clang-format --dry-run --Werror *.c *.h
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ OMP will only pass build checks if it passes the clang-format pipeline.
Run the below command ONLY in the src folder to cleanup automatically.

```
cd src && clang-format -i *.cc *.h
cd src && clang-format -i *.c *.h
```
3 changes: 1 addition & 2 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
project(
'OMP',
'cpp',
'c',
default_options: [
'cpp_std=c++17',
'warning_level=2',
],
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions src/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_project_arguments('-Wno-unused-parameter', language: 'cpp')
add_project_arguments('-Wno-unused-parameter', language: 'c')

gtk = dependency('gtk4', version: '>= 4.6.9')
libadwaita = dependency('libadwaita-1', version: '>= 1.4.alpha')
Expand Down Expand Up @@ -26,13 +26,13 @@ omp_style_resources = gnome.compile_resources(

executable(
program_name, [
'app.cc',
'sidebar.cc',
'content.cc',
'appwin.cc',
'main.cc',
omp_resources,
omp_style_resources
omp_style_resources,
'app.c',
'sidebar.c',
'content.c',
'appwin.c',
'main.c',
],
dependencies: [
gtk,
Expand Down
File renamed without changes.
Loading