- Timestamp:
- 05/21/08 08:35:30 (5 years ago)
- Location:
- lang/c/misc/mlisp
- Files:
-
- 3 modified
-
core/m_basic.cpp (modified) (2 diffs)
-
core/s_util.h (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/c/misc/mlisp/core/m_basic.cpp
r12093 r12094 51 51 rplacd(a, d); 52 52 return nil; 53 } 54 55 static SExp builtin_symbolp() { 56 SExp a = get_arg(0); 57 return symbolp(a) ? t : nil; 58 } 59 60 static SExp builtin_numberp() { 61 SExp a = get_arg(0); 62 return numberp(a) ? t : nil; 53 63 } 54 64 … … 291 301 { "set-car!", builtin_rplaca, 2, 2, }, 292 302 { "set-cdr!", builtin_rplacd, 2, 2, }, 303 304 { "symbol?", builtin_symbolp, 1, 1, }, 305 { "number?", builtin_numberp, 1, 1, }, 306 293 307 { "list", builtin_list, 0, -1, }, 294 308 { "append", builtin_append, 0, -1, }, -
lang/c/misc/mlisp/core/s_util.h
r11676 r12094 58 58 __inline int consp(SExp s) { return type_of(s) == tCell; } 59 59 __inline int symbolp(SExp s) { return type_of(s) == tSymb; } 60 __inline int numberp(SExp s) { return type_of(s) == tInt; } 60 61 __inline int zerop(SExp s) { return eq(s, int2s(0)); } 61 62 __inline SExp cadr(SExp s) { return car(cdr(s)); } -
lang/c/misc/mlisp/readme.txt
r12093 r12094 52 52 - ��s���ɕϐ�������������Ƃ��̎����� 53 53 - �������� 54 - �}�N�����g�����Ƃ��́A���R�ϐ���t!�̎g�p�̃`�F�b�N 55 54 56 55 57 - �R���p�C�����̃V���^�b�N�X�G���[
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)