Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Create pmc_func which will hold all the infomrational PMC functions.

  • Loading branch information...
commit ffd58ee60cc26caeda518ff940b7d8dd406b9190 1 parent b3656a9
@atrodo authored
Showing with 23 additions and 0 deletions.
  1. +14 −0 pmc_func.c
  2. +9 −0 pmc_func.h
  3. 0  pmc_func.pod
View
14 pmc_func.c
@@ -0,0 +1,14 @@
+// This will initalize and drive the pmc logic
+
+#include "lorito.h"
+#include "pmc.h"
+#include "pmc_func.h"
+#include "interp.h"
+
+void
+lorito_pmc_func_size(Lorito_Interp *interp, Lorito_Ctx *ctx)
+{
+ Lorito_PMC *source = lorito_pop_arg(ctx);
+ lorito_clr_arg(ctx);
+ lorit_push_arg(interp, ctx, source->size);
+}
View
9 pmc_func.h
@@ -0,0 +1,9 @@
+#include "lorito.h"
+
+#ifndef LORITO_PMC_FUNC_H_GUARD
+#define LORITO_PMC_FUNC_H_GUARD
+
+void
+lorito_pmc_func_size(Lorito_Interp *interp, Lorito_Ctx *ctx);
+
+#endif /* LORITO_PMC_FUNC_H_GUARD */
View
0  pmc_func.pod
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.