p2  0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
primitive.c File Reference

methods for the immediate primitive types PN_NIL, PNBoolean, PNAny More...

#include <stdio.h>
#include <stdlib.h>
#include "p2.h"
#include "internal.h"
+ Include dependency graph for primitive.c:

Go to the source code of this file.

Functions

static PN potion_nil_cmp (Potion *P, PN cl, PN self, PN value)
 memberof NilKind "cmp" method. More...
 
static PN potion_bool_cmp (Potion *P, PN cl, PN self, PN value)
 fw to num More...
 
void potion_primitive_init (Potion *P)
 

Detailed Description

methods for the immediate primitive types PN_NIL, PNBoolean, PNAny

Definition in file primitive.c.

Function Documentation

static PN potion_nil_cmp ( Potion P,
PN  cl,
PN  self,
PN  value 
)
static

memberof NilKind "cmp" method.

nil is 0 or "" or FALSE as cmp context otherwise it is always less.

Definition at line 46 of file primitive.c.

static PN potion_bool_cmp ( Potion P,
PN  cl,
PN  self,
PN  value 
)
static

fw to num

Definition at line 62 of file primitive.c.

void potion_primitive_init ( Potion P)

Definition at line 90 of file primitive.c.