Skip to content

Instantly share code, notes, and snippets.

View stesla's full-sized avatar

Samantha Tesla stesla

  • DRW
  • Chicago, Illinois, USA
View GitHub Profile
;;;
;;; This part is in ~/.emacs.local
;;;
;;; You can load it in your .emacs with this:
;;; (load "~/.emacs.local" t)
;; Erlang
(add-to-list 'load-path "/usr/local/lib/erlang/lib/tools-2.6.1/emacs")
(setq erlang-root-dir "/usr/local/lib/erlang")
static int *ir_init_temp()
{
static int ir_temp_ctr = 0;
return &ir_temp_ctr;
}
int ir_make_temp()
{
static int *ctr = NULL;
if (ctr = NULL)
(ASSIGN, 0, nil, temp:1)
(ASSIGN, temp:1, nil, temp:0)
(ASSIGN, temp:1, nil, id:a:0x1001c0)
(ASSIGN, id:a:0x1001c0, nil, temp:1)
(IF_EQ, temp:1, 0, 0)
(ASSIGN, 0, nil, temp:1)
(JUMP, 1, nil, nil)
(LABEL, 0, nil, nil)
(ASSIGN, 1, nil, temp:1)
(LABEL, 1, nil, nil)