Comments (3)
Try
(define-cptr <git-repository> "git_repository*" "Git_RepositoryClass"
"GIT_REPOP" "GIT_REPO" "GIT_REPO_VALUE"
(print repo-print)
(cleanup repo-cleanup))
From: Nguyễn Thái Ngọc Duy [email protected]
Subject: [Gauche] optional arguments in cgen's define-cptr are not effective (#59)
Date: Thu, 30 Apr 2015 07:50:31 -0700
I have a declaration like this
(define-cptr <git-repository> "git_repository*" "Git_RepositoryClass" "GIT_REPOP" "GIT_REPO" "GIT_REPO_VALUE" :print repo-print :cleanup repo-cleanup)
but the generated code is
Git_RepositoryClass = Scm_MakeForeignPointerClass(Scm_CurrentModule(),"<git-repository>", NULL, NULL, 0);
cleanup-proc and print-proc are not passed to that call. Adding #?= at line 1665 in cgen/stub.scm i got
#?="/home/pclouds/opt/gauche/share/gauche-0.9/0.9.5_pre1/lib/gauche/cgen/stub.scm":1665:(assq-ref clauses 'print) #?- #f
Reply to this email directly or view it on GitHub:
#59
from gauche.
That seems to work. Thank you. I mistook it for keyword syntax. define-cptr should probably error out on unrecognized arguments though.
from gauche.
That's reasonable.
From: Nguyễn Thái Ngọc Duy [email protected]
Subject: Re: [Gauche] optional arguments in cgen's define-cptr are not effective (#59)
Date: Thu, 30 Apr 2015 16:39:59 -0700
That seems to work. Thank you. I mistook it for keyword syntax. define-cptr should probably error out on unrecognized arguments though.
Reply to this email directly or view it on GitHub:
#59 (comment)
from gauche.
Related Issues (20)
- Rounding error with base indentation used in write-controls
- mingw: Displaying #\u0100 and over causes an error HOT 5
- Allow switching default (assumed) CES HOT 1
- `~w` format control with shared printing switch
- Consolidate exit code translation
- Handle leak by open-output-string on Windows HOT 3
- Implement fastlock on Windows
- Revive `gauche.test.generative` HOT 5
- Lightweight immutable treemap
- `scheme.list` may shadow generic versions of `map`, `for-each` etc. HOT 2
- Accelerate method dispatch in special cases
- Behavior of format using slib HOT 4
- A few tls goodies HOT 1
- Better name for `global-variable-bound?` HOT 2
- pmap: Behavior of timeout in fully-concurrent-mapper HOT 7
- More type info of cproc
- UTF8 BOM handling HOT 4
- current-output-port is changed in substitution procedure of regexp-replace HOT 3
- process-output->string, :on-abnormal-exit does not work HOT 2
- Package repository collection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gauche.