Changeset 3137 for libcaca


Ignore:
Timestamp:
Oct 29, 2008, 2:48:57 PM (11 years ago)
Author:
nico
Message:
  • Add php binding for 3 caca charset conversion functions
  • Change php header for sample program "text.php"
Location:
libcaca/trunk/caca-php
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-php/examples/text.php

    r3135 r3137  
    11#!/usr/bin/php5
    2 <?
     2<?php
    33/*
    44 *  demo.php      demo for libcaca php binding
  • libcaca/trunk/caca-php/php_caca.c

    r3134 r3137  
    702702
    703703PHP_FUNCTION(caca_utf32_to_cp437) {
     704        long l;
     705        FETCH_LONG(l);
     706        RETURN_LONG(caca_utf32_to_cp437(l));
    704707}
    705708
    706709PHP_FUNCTION(caca_cp437_to_utf32) {
     710        long l;
     711        FETCH_LONG(l);
     712        RETURN_LONG(caca_cp437_to_utf32(l));
    707713}
    708714
    709715PHP_FUNCTION(caca_utf32_to_ascii) {
     716        long l;
     717        FETCH_LONG(l);
     718        RETURN_CHAR(caca_utf32_to_ascii(l));
    710719}
    711720
Note: See TracChangeset for help on using the changeset viewer.