Skip to content

Commit

Permalink
Convert Code to C (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWiseNoob authored Apr 9, 2024
1 parent 1e37314 commit 4076aa3
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 12 deletions.
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.

0 comments on commit 4076aa3

Please sign in to comment.