This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu... I need some kind of spelling support in VI, which is my HTML editor, any suggestions?LutzQuote from: "Lutz"
Quote
typedef struct mystruc {
int number;
char * ptr;
} MYSTRUC;
MYSTRUC * foo3(char * ptr, int num )
{
MYSTRUC * astruc;
astruc = malloc(sizeof(MYSTRUC));
astruc->ptr = malloc(strlen(ptr) + 1);
strcpy(astruc->ptr, ptr);
astruc->number = num;
return(astruc);
}
> (set 'astruc (foo3 "hello world" 123))
4054280
> (get-string (get-integer (+ astruc 4))) <--- ??
"hello world"
> (get-integer astruc)
123
...Quote from: "newdep"
It could be an option though to have the choise in a "define/contstant/set"
to have a user defined "Comment" like (where it must be included in
every source file at the beginning, otherwise it wont work) -->>
(setq comment '( "[text]" "[/text"] )
(setq comment '( "{" "}" )
(setq comment '( "[text]n" "[/text]n" )
Norman.
(define-macro (dostuff! _str)
;; check for special case
(if (= (first (eval _str)) "n")
(nth-set 0 (eval _str) ""))
;; now we do stuff to the string
nil ;; dummy return
)
As I said, it's just a convenience thing :-)well, there you go! I completely missed the fact that newlisp had a sourceforge page.Quote
So basically the [text], [/text] tags would always be on a line by itself. I am not sure ... I have to think about this a little bit longer...Quote from: "Lutz"
Lutz