back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/stack.c
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-04-02 02:03:57 +0300
committerscratko <m@scratko.xyz>2024-04-02 02:03:57 +0300
commit80749242cc6aa604c6ee3a7e3169df73c14e55d2 (patch)
treebfc4db5b1b209d81dca539588350ac7b8cfab13e /stack.c
parent8a704989e2d4733e6e847cb272a40dd85de4c9cd (diff)
downloadarithmetic-expression-computator-80749242cc6aa604c6ee3a7e3169df73c14e55d2.tar.gz
arithmetic-expression-computator-80749242cc6aa604c6ee3a7e3169df73c14e55d2.tar.bz2
arithmetic-expression-computator-80749242cc6aa604c6ee3a7e3169df73c14e55d2.zip
Minor changesHEADmaster
Corrected description. Fixed pointer symbol in some places.
Diffstat (limited to 'stack.c')
-rw-r--r--stack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stack.c b/stack.c
index 8aee3d7..bc03809 100644
--- a/stack.c
+++ b/stack.c
@@ -4,17 +4,17 @@
#define QUANTITY_ADDRESSES 5
enum address_control { get_address, set_address };
-void* heap_base;
+void *heap_base;
void init_stack(stack *st)
{
*st = 0;
}
-static void* address_management(void* address, enum address_control state)
+static void *address_management(void *address, enum address_control state)
{
enum { null = 0 };
- static void* available_addresses[QUANTITY_ADDRESSES];
+ static void *available_addresses[QUANTITY_ADDRESSES];
int i;
if(state == set_address) {
for(i = 0; i < QUANTITY_ADDRESSES; ++i) {