Changeset 4725


Ignore:
Timestamp:
Feb 1, 2011, 2:22:55 PM (10 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added C++ stuff on top of gaycko.cpp (which must be compiled with g++)
Location:
gaycko/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gaycko/trunk/src/Makefile.am

    r4724 r4725  
    33bin_PROGRAMS = Gaycko
    44
    5 Gaycko_SOURCES = gaycko.c gaycko.h io/file.c io/file.h io/http.c io/http.h io/io.c io/io.h parsing/parse.c parsing/parse.h dom/dom.c dom/dom.h helpers/str.c helpers/str.h js/glue.cpp js/glue.h
     5Gaycko_SOURCES = gaycko.cpp       gaycko.h          \
     6                 io/file.c        io/file.h         \
     7                 io/http.c        io/http.h         \
     8                 io/io.c          io/io.h           \
     9                 parsing/parse.c  parsing/parse.h   \
     10                 dom/dom.c        dom/dom.h         \
     11                 helpers/str.c    helpers/str.h     \
     12                 js/glue.cpp      js/glue.h       
    613Gaycko_CFLAGS  = @CACA_INCLUDES@ @XML2_INCLUDES@ @CURL_INCLUDES@ @TIDY_INCLUDES@
    714Gaycko_CPPFLAGS=@CACA_INCLUDES@ @XML2_INCLUDES@ @CURL_INCLUDES@ @TIDY_INCLUDES@ @V8_INCLUDES@
  • gaycko/trunk/src/js/glue.cpp

    r4724 r4725  
    11#include <v8.h>
     2#include "js/glue.h"
    23
    34using namespace v8;
     
    2829        // Convert the result to an ASCII string and print it.
    2930        String::AsciiValue ascii(result);
    30         printf("%s\n", *ascii);
     31        printf("'%s'\n", *ascii);
    3132        return 0;
    3233
  • gaycko/trunk/src/js/glue.h

    r4722 r4725  
     1extern "C" {
     2        int testV8(void);
     3};
Note: See TracChangeset for help on using the changeset viewer.