diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-09-05 17:14:53 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-09-06 13:11:48 +0200 |
| commit | b7052e17a426b22c1c48b0d50bf169c3c3bbdda0 (patch) | |
| tree | 20f446e239856887f9c84dfd522acf4f5c14270f | |
| parent | 3d55352ca4e7fbe9c2e919696f85328433385235 (diff) | |
| download | prc-b7052e17a426b22c1c48b0d50bf169c3c3bbdda0.tar.gz | |
Move source to src/prc1
| -rw-r--r-- | CMakeLists.txt | 42 | ||||
| -rw-r--r-- | src/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/prc1/CMakeLists.txt | 39 | ||||
| -rw-r--r-- | src/prc1/call.c (renamed from call.c) | 0 | ||||
| -rw-r--r-- | src/prc1/call.h (renamed from call.h) | 0 | ||||
| -rw-r--r-- | src/prc1/cgen.c (renamed from cgen.c) | 0 | ||||
| -rw-r--r-- | src/prc1/cgen.h (renamed from cgen.h) | 0 | ||||
| -rw-r--r-- | src/prc1/display.c (renamed from display.c) | 0 | ||||
| -rw-r--r-- | src/prc1/display.h (renamed from display.h) | 0 | ||||
| -rw-r--r-- | src/prc1/div.c (renamed from div.c) | 0 | ||||
| -rw-r--r-- | src/prc1/div.h (renamed from div.h) | 0 | ||||
| -rw-r--r-- | src/prc1/end.c (renamed from end.c) | 0 | ||||
| -rw-r--r-- | src/prc1/end.h (renamed from end.h) | 0 | ||||
| -rw-r--r-- | src/prc1/errloc.c (renamed from errloc.c) | 0 | ||||
| -rw-r--r-- | src/prc1/errloc.h (renamed from errloc.h) | 0 | ||||
| -rw-r--r-- | src/prc1/exit.c (renamed from exit.c) | 0 | ||||
| -rw-r--r-- | src/prc1/exit.h (renamed from exit.h) | 0 | ||||
| -rw-r--r-- | src/prc1/fn.c (renamed from fn.c) | 0 | ||||
| -rw-r--r-- | src/prc1/fn.h (renamed from fn.h) | 0 | ||||
| -rw-r--r-- | src/prc1/from.c (renamed from from.c) | 0 | ||||
| -rw-r--r-- | src/prc1/from.h (renamed from from.h) | 0 | ||||
| -rw-r--r-- | src/prc1/gl.c (renamed from gl.c) | 0 | ||||
| -rw-r--r-- | src/prc1/gl.h (renamed from gl.h) | 0 | ||||
| -rw-r--r-- | src/prc1/im.c (renamed from im.c) | 0 | ||||
| -rw-r--r-- | src/prc1/im.h (renamed from im.h) | 0 | ||||
| -rw-r--r-- | src/prc1/kw.c (renamed from kw.c) | 0 | ||||
| -rw-r--r-- | src/prc1/lex.c (renamed from lex.c) | 0 | ||||
| -rw-r--r-- | src/prc1/lex.h (renamed from lex.h) | 0 | ||||
| -rw-r--r-- | src/prc1/lit.c (renamed from lit.c) | 0 | ||||
| -rw-r--r-- | src/prc1/lit.h (renamed from lit.h) | 0 | ||||
| -rw-r--r-- | src/prc1/lk.c (renamed from lk.c) | 0 | ||||
| -rw-r--r-- | src/prc1/lk.h (renamed from lk.h) | 0 | ||||
| -rw-r--r-- | src/prc1/parse.c (renamed from parse.c) | 0 | ||||
| -rw-r--r-- | src/prc1/parse.h (renamed from parse.h) | 0 | ||||
| -rw-r--r-- | src/prc1/pop.c (renamed from pop.c) | 0 | ||||
| -rw-r--r-- | src/prc1/pr.c (renamed from pr.c) | 0 | ||||
| -rw-r--r-- | src/prc1/pr.h (renamed from pr.h) | 0 | ||||
| -rw-r--r-- | src/prc1/prc1.c (renamed from main.c) | 0 | ||||
| -rw-r--r-- | src/prc1/print.c (renamed from print.c) | 0 | ||||
| -rw-r--r-- | src/prc1/print.h (renamed from print.h) | 0 | ||||
| -rw-r--r-- | src/prc1/prv.h (renamed from prv.h) | 0 | ||||
| -rw-r--r-- | src/prc1/push.c (renamed from push.c) | 0 | ||||
| -rw-r--r-- | src/prc1/sdup.c (renamed from sdup.c) | 0 | ||||
| -rw-r--r-- | src/prc1/set.c (renamed from set.c) | 0 | ||||
| -rw-r--r-- | src/prc1/set.h (renamed from set.h) | 0 | ||||
| -rw-r--r-- | src/prc1/stmt.c (renamed from stmt.c) | 0 | ||||
| -rw-r--r-- | src/prc1/stmt.h (renamed from stmt.h) | 0 | ||||
| -rw-r--r-- | src/prc1/storage.c (renamed from storage.c) | 0 | ||||
| -rw-r--r-- | src/prc1/storage.h (renamed from storage.h) | 0 | ||||
| -rw-r--r-- | src/prc1/td.c (renamed from td.c) | 0 | ||||
| -rw-r--r-- | src/prc1/td.h (renamed from td.h) | 0 | ||||
| -rw-r--r-- | src/prc1/tmp.c (renamed from tmp.c) | 0 | ||||
| -rw-r--r-- | src/prc1/tmp.h (renamed from tmp.h) | 0 | ||||
| -rw-r--r-- | src/prc1/type.c (renamed from type.c) | 0 | ||||
| -rw-r--r-- | src/prc1/type.h (renamed from type.h) | 0 | ||||
| -rw-r--r-- | src/prc1/warn.c (renamed from warn.c) | 0 | ||||
| -rw-r--r-- | src/prc1/warn.h (renamed from warn.h) | 0 | ||||
| -rw-r--r-- | src/prc1/ws.c (renamed from ws.c) | 0 | ||||
| -rw-r--r-- | src/prc1/ws.h (renamed from ws.h) | 0 |
59 files changed, 42 insertions, 41 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 899e223..8ff5c3c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,43 +1,3 @@ cmake_minimum_required(VERSION 3.5) project(prc C) -add_executable(${PROJECT_NAME} - call.c - cgen.c - display.c - div.c - end.c - errloc.c - exit.c - fn.c - from.c - gl.c - im.c - kw.c - lex.c - lit.c - lk.c - main.c - set.c - parse.c - pop.c - pr.c - print.c - push.c - sdup.c - stmt.c - storage.c - td.c - tmp.c - type.c - warn.c - ws.c -) - -target_compile_options(${PROJECT_NAME} PRIVATE -g -Wall -pedantic) -set_target_properties(${PROJECT_NAME} PROPERTIES C_STANDARD 99 C_EXTENSIONS OFF) - -if(CMAKE_BUILD_TYPE STREQUAL "Debug") - target_compile_options(${PROJECT_NAME} PRIVATE -Og) -endif() - -install(TARGETS ${PROJECT_NAME}) +add_subdirectory(src) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..e8df6c6 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory(prc) +add_subdirectory(prc1) diff --git a/src/prc1/CMakeLists.txt b/src/prc1/CMakeLists.txt new file mode 100644 index 0000000..3579ca6 --- /dev/null +++ b/src/prc1/CMakeLists.txt @@ -0,0 +1,39 @@ +add_executable(prc1 + call.c + cgen.c + display.c + div.c + end.c + errloc.c + exit.c + fn.c + from.c + gl.c + im.c + kw.c + lex.c + lit.c + lk.c + prc1.c + set.c + parse.c + pop.c + pr.c + print.c + push.c + sdup.c + stmt.c + storage.c + td.c + tmp.c + type.c + warn.c + ws.c +) + +target_compile_options(prc1 PRIVATE -g -Wall -pedantic) +set_target_properties(prc1 PROPERTIES C_STANDARD 99 C_EXTENSIONS OFF) +if(CMAKE_BUILD_TYPE STREQUAL "Debug") + target_compile_options(prc1 PRIVATE -Og) +endif() +# install(TARGETS prc1) diff --git a/display.c b/src/prc1/display.c index 885fbe7..885fbe7 100644 --- a/display.c +++ b/src/prc1/display.c diff --git a/display.h b/src/prc1/display.h index 9b073b1..9b073b1 100644 --- a/display.h +++ b/src/prc1/display.h diff --git a/errloc.c b/src/prc1/errloc.c index 1f3e224..1f3e224 100644 --- a/errloc.c +++ b/src/prc1/errloc.c diff --git a/errloc.h b/src/prc1/errloc.h index 127caa7..127caa7 100644 --- a/errloc.h +++ b/src/prc1/errloc.h diff --git a/parse.c b/src/prc1/parse.c index 1c3aba2..1c3aba2 100644 --- a/parse.c +++ b/src/prc1/parse.c diff --git a/parse.h b/src/prc1/parse.h index b85d618..b85d618 100644 --- a/parse.h +++ b/src/prc1/parse.h diff --git a/print.c b/src/prc1/print.c index abdb149..abdb149 100644 --- a/print.c +++ b/src/prc1/print.c diff --git a/print.h b/src/prc1/print.h index 950e0bc..950e0bc 100644 --- a/print.h +++ b/src/prc1/print.h diff --git a/storage.c b/src/prc1/storage.c index 62f3c1f..62f3c1f 100644 --- a/storage.c +++ b/src/prc1/storage.c diff --git a/storage.h b/src/prc1/storage.h index a3509c5..a3509c5 100644 --- a/storage.h +++ b/src/prc1/storage.h |
